DSPRelated.com
Forums

understanding arguements in gel file????????????????

Started by waji...@hotmail.com December 4, 2006
Hi everyone, i was running example 1.1 from rulph chassaing's book .It

included a gel file to create a slider for amplitude.

It is shown below

/*gain.gel Create slider and vary amplitude (gain) of sinewave*/
menuitem "Sine Gain"
slider Gain(10,35,5,1,gain_parameter) /*incr by 5,up to 35*/
{
gain = gain_parameter; /*vary gain of sine*/
}
FIGURE 1.6. GEL file to slide through different gain values in the sine generation program
(gain.gel).
What i want to know is what do the arguements represent in (slider Gain(10,35,5,1,gain_parameter)).

How to create a gel file of my own.

For what purpose this file is used.

Any response in this regard would be helpful.

Thanks

wajahat
wajahat,

You can find a lot of useful information from CCS by selecting Help-->Contents-->Index and entering the subject. I entered slider and received the following:

slider param_definition( minVal, maxVal, increment, pageIncrement, paramName )
{
statements
}
param_definition - Parameters description that is printed on the slider object.
minVal - An integer constant specifying the value to be passed to the function when the position of the slider is at its lowest level.
maxVal - An integer constant specifying the value to be passed to the function when the position of the slider is at its highest level.
increment - An integer constant specifying the increment added to the value each time the slider is moved one position.
pageIncrement - An integer constant specifying the increment added to the value each time the slider is moved by one page.
paramName - Parameters definition that is used inside the function.

mikedunn
----- Original Message ----
From: "w...@hotmail.com"
To: c...
Sent: Saturday, December 2, 2006 6:52:06 AM
Subject: [c6x] understanding arguements in gel file????????????????
Hi everyone, i was running example 1.1 from rulph chassaing's book .It

included a gel file to create a slider for amplitude.

It is shown below

/*gain.gel Create slider and vary amplitude (gain) of sinewave*/
menuitem "Sine Gain"
slider Gain(10,35,5, 1,gain_parameter ) /*incr by 5,up to 35*/
{
gain = gain_parameter; /*vary gain of sine*/
}
FIGURE 1.6. GEL file to slide through different gain values in the sine generation program
(gain.gel).

What i want to know is what do the arguements represent in (slider Gain(10,35,5, 1,gain_parameter )).

How to create a gel file of my own.

For what purpose this file is used.

Any response in this regard would be helpful.

Thanks

wajahat