Hey hey,
I have two ftables containing monaural audio. They are exactly the same length. I want to write them to a stereo audiofile. I tried GEN52, but it apparently doesn't like the size of the new table (twice the size of one input table). Perhaps because it isn't a power-of-two.
Is there another way to do it, except playing the tables and using something like fout to write them?
Never used GEN53, but why not just bounce them to disk in a single k-rate loop: while kSomething is less than length of table, sum samples and call fout. Below is an instrument I shared with a Cabbage user that write the contents of one file to another in a single k-rate loop:
instr 1 prints(“Writing copy of file…\n”) lenght:i = filelen(“C:\Users\roryw\sourcecode\cabbage3-recipes\samples/cleanGuitar.wav”)*sr index:k = 0 while index < lenght do sig:a = diskin2(“C:\Users\roryw\sourcecode\cabbage3-recipes\samples/cleanGuitar.wav”, 1, 0, 1) fout(“C:\Users\roryw\sourcecode\cabbage3-recipes\copy1.wav”, 4, sig:a) index += 1 od if(release() ==1) then prints(“Finished writing file…\n”) ficlose(“C:\Users\roryw\sourcecode\cabbage3-recipes\copy2.wav”) endif endin