Goal: Saving two arrays (left and right channel) in a (stereo) wave file with a specific filename e.g. sound1.wav. Then overwritting the arrays and save again with different filename e.g. sound2.wav.
So far, I am able to save the arrays using
|bang(
|
[savepanel] (Bang->savepanel gives "save as menu")
|
[write(
|
[soundfiler]
I tried to get rid of the "save as" by sending the specified file name e.g. sound1(.wav) to [savepanel]. However this results in:
error: savepanel: no such method for 'sound1(.wav)'
I tried changing various things (writesf~, no savepanel etc), but so far I haven't found the mistake...
Edit: I do have a counter available, so I can use something like "sound$1" as filename (where $1 is the counter value) or use [select].