Combining diskin and external audio in one channel.csd (2.8 KB)
Here is the code in question. I have included as much of it that I think might be relevant to solving the buzzing issue.
It is basically one channel of a Cabbage mixer I’m working on.
The feedback was stopped for the time being using the if statement on line 76:
if gkPlayStop1==0 then
gaDiskinPlusExternalIn = 0
endif
When the above code is absent the loud buzzing is always on.
Also, while I’m at it, I’m trying to implement a combo box (I’m using a checkbox for the time being to simplify things) to select whether the channel allows in audio from either the diskin file player or the external input (coming from soundflower in this case) before going to the EQ . When one box is ticked I want the other to be switched off. I have tried many variations of if/else/skip/goto etc etc but nothing has worked.
At the minute I have summed both the diskin player input and the external input on line 74, which makes things even more awkward, though if only one or the other was allowed in at any one time this summing would be fine was my thinking. I was purely trying to get audio in from both somehow, so I’m sure there’s a better way.
On line 23 you can see one such example of an attempt to switch off the diskin instrument if the check box is checked. This has no effect. I have tried many more conditions within the ‘channel 1’ instrument also that I have since deleted.
I hope I have made some sense here. Any tips here would be much appreciated.
Thanks!
M