Hey @Hypostatic,
Here is a (highly contrived) example of recording different sounds to separate files:
in_thread do
with_fx :record, buffer: :recordtest1 do
8.times do
play 60
sleep 0.5
end
end
end
with_fx :record, buffer: :recordtest2 do
8.times do
play 72
sleep 0.5
end
end
This results in two separate wav files, recordtest1.wav and recordtest2.wav, that end up in an area for cached samples in your .sonic-pi folder. (On my windows computer, this ends up at: C:\Users\Ethan\.sonic-pi\store\default\cached_samples.