[Csnd] Questions about fout duration.
Date | 2012-09-23 17:13 |
From | Roger Kelly |
Subject | [Csnd] Questions about fout duration. |
I am trying to build a small instr that takes audio routed into it from zar. I am taking the zar output and sending it to 'fout'. My problem is that the output of fout is always 3 secs, even if the the instrument that is playing is 10 secs. Basically I trigger fout on a control switch like this in the "record"
instrument something like below: instr "player" event_i "i", "recorder", 0, 0 outs al,ar endin
instr "recorder" if (karm_1 == 1.0 && iarm_1 == 0.0) then
printks "Writig track 1", .2 fout "/mnt/sdcard/testaudio/track1.wav", 14, a1_l, a1_r
iarm_1 = 1 endif endin ... i "player" 0 10
Is there something special about fout and its duration in another instrument? I do an event_i and turn on the recorder instrument indefinitely at start time. If I run fout in the instrument generating the sound it records the entire performance of the player instrument.
Basically I am wanting to turn on "fout" indefinitely to record a channel and stop it based on a control signal. |