I’m trying to allow Cabbage/Csound to take in stereo audio from either external in (soundflower) or from an external wav audio file via diskin2.
I want to assign a checkbox within Cabbage to flip between one or the other, with only one being on at any given time.
I am having no luck with if/else statements so far. My latest attempt is included in the section of code below. It is probably the wrong way to go about it.
(‘gaFilePlayer1Out’ is the output from the sound file from earlier in code)
If statement attempt.csd (2.6 KB)
I may just leave this option out altogether, but any suggestions here would be much appreciated:)
Thanks!
M