On 11/13, Karl Schultheisz wrote:
>
> Nevertheless, I also encounter difficulties when using variable indices.
> Consider the case of using gate signals to control recording and playback.
> This example alternately records and then plays back repeatedly.
I am already sleeping, perhaps I misunderstood. And let me repeat I can be
easily wrong, I never used rdtable/rwtable.
but afaics this is another thing.
> import ("stdfaust.lib");
>
> ramp = * ~ + (1);
>
> sampler(tableSize, play, record) =
> rwtable(tableSize, 0, play : ramp, _, record : ramp);
^
I have no idea if this is documented or not, but when I tried to investigate
the problem with the constant ridx I noticed that faust infers the type from
"init".
could you try
rwtable(tableSize, 0.0, ...);
?
Oleg.
> process = x : sampler(tableSize, play, record)
> with {
> tableSize = 1024;
> gate = ba.pulsen(512, 2048);
> record = gate;
> play = gate @ 1024;
> x = os.osc(55);
> };
>
>
>
> The output is mostly zero with some very short, sparse pulses.
>
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users