First time here? Check out the FAQ!
x

How can I pass a variable to a Feedback Loop output?

0 votes
273 views
I've run into a problem with FeedbackLoop output in conjunction with UniqueMemoryWriters

I want to pass a conditional variable depending on which ?ChannelNumber is being constructed.

I have tried putting a green variable in the Connection field. But the Status window reports it is looking for ?fb_umwrn0  or such like when my variable is ?fb and is being passed from a script

I have tried putting  (( ?ChannelNumber-1) of: #( {'sharedL'} {'sharedR'}))  for example directly into the Connection field, but the compiler doesn't resolve it, it seems to think the whole expression is the Connection name
asked Aug 5, 2017 in Capytalk & Smalltalk by cristian-vogel (Master) (8,410 points)

1 Answer

0 votes

You could use:

{(?ChannelNumber - 1) of: #('sharedL' 'sharedR')}

 Here's an example Sound with two feedback loops, one per channel.

answered Aug 6, 2017 by ssc (Savant) (126,620 points)
Thanks.... If I wanted to encapsulate a FeedbackLoopOut , and then I need to rewrite the name with a green variable from a script... Will that work?
...