Hi Fabien,
Try putting %i in the name string:
>coeffa(i) = hslider("coeff a(%i)", 0, -1, 1, 0.01);
Cheers,
Julius
At 03:03 PM 2/23/2015, Fabien Lamarche-Filion wrote:
>Hi everyone,
>
>I have a little trouble with the following code:
>
>
>coeffa(i) = hslider("coeff a", 0, -1, 1, 0.01);
>...
>memInt = _ <: par(i, order, coeffa(i)*@(i)) :> _;
>
>Which should, I believe, generate i delays in parallel, each
>multiplied by a coefficient determined by a slider.
>
>However, after compiling, I only get 1 slider. As you can see from
>the joined diagram, the delays are correctly generated, but all the
>sliders are declared to be coeffa(0).
>
>My guess is that since each slider is exactly identical, the
>compiler considers them to be all the same. If that is the case, I
>think that changing the string in each slider would solve the
>problem (and also help the GUI make more sense). The practical thing
>would be to do something like
>
>coeffa(i) = hslider("coeff a" + i, 0, -1, 1, 0.01);
>
>But, of course, string + int makes no sense. Is there a way to
>convert an int to a string, and can two strings be concatenated ? If so, how ?
>
>Thank you !
>
>Fabien
>------------------------------------------------------------------------------
>Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>with Interactivity, Sharing, Native Excel Exports, App Integration & more
>Get technology previously reserved for billion-dollar corporations, FREE
>http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
>_______________________________________________
>Faudiostream-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/faudiostream-users
Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users