[Faudiostream-devel] GUI design
Hi, I'm experimenting with GUI design with the JACK GTK architecture and I need to display numerical values in the GUI as in the following minimal example: //- //in real life this is a room acoustic calculation: floatnum = nentry("roomsize",0,0.,4.,0.01); label(x) = attach(x, button("numb %floatnum")); process = label ; //- // ERROR : the node of the tree is not an int nor a float:SigNumEntry[cons[test,nil],cons[0,cons[0,cons[4,cons[0.01,nil] What is the correct way (if any) of doing it ?! greetings, Urban -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ Faudiostream-devel mailing list Faudiostream-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
Re: [Faudiostream-devel] GUI design
On Mon, Jan 13, 2014 at 1:20 PM, urban wrote: > What is the correct way (if any) of doing it ?! > Yep, and its simpler than you thought :) floatnum = nentry("valueName",0 ,0., 4., 0.01); // using floatnum ensures it exists as a UI element: // faust optimizes away inputs that are not used! label(x) = x * floatnum; process = label ; -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk___ Faudiostream-devel mailing list Faudiostream-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
Re: [Faudiostream-devel] GUI design
Hi Urban, Button's label can contain a variable part, like in your example "numb %floatnum", but this value must be known at compile time. The only way to really "display" values is to use (h|v)bargraphs. Cheers Yann Le 13/01/2014 14:20, urban a écrit : > Hi, > > I'm experimenting with GUI design with the JACK GTK architecture and I > need to display numerical values in the GUI as in the following minimal > example: > > //- > > //in real life this is a room acoustic calculation: > floatnum = nentry("roomsize",0,0.,4.,0.01); > > label(x) = attach(x, button("numb %floatnum")); > > process = label ; > > > //- > // ERROR : the node of the tree is not an int nor a > float:SigNumEntry[cons[test,nil],cons[0,cons[0,cons[4,cons[0.01,nil] > > What is the correct way (if any) of doing it ?! > > greetings, > Urban > > > > -- > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > ___ > Faudiostream-devel mailing list > Faudiostream-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-devel > > -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ Faudiostream-devel mailing list Faudiostream-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
Re: [Faudiostream-devel] GUI design
Thanx for the quick reply guys! C'est dommage, quand même! -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ Faudiostream-devel mailing list Faudiostream-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-devel