First time here? Check out the FAQ!
x

How can I set the Left and Right parameters for a replicated Oscilloscope?

0 votes
429 views

I'm using a ParameterTransformer to set the parameters of a replicated oscilloscope like so:

But setting the Left or Right parameters to true / false throws an error:

 

How would I set the Oscilloscope so VoiceNumber 1 displays only the left channel and VoiceNumber 2 displays the right?

 


 

I tried using ?VoiceNumber <= 1 etc, and I get the same error message. 

So I tried starting with a very simple flow with just a constant and oscilloscope replicated:

And with this flow it works fine using:

snd
    left: ?VoiceNumber == 1
    right: ?VoiceNumber == 2

As well as using <= etc.

I'm wondering if there's a Sound in my original Flow that has a hidden Left and Right parameter that's conflicting with the Oscilloscope's. (Most Left and Right parameters expect a number not a boolean, I guess). 

My original flow:

 

...and if that is the case it leads me to my next exciting question, how do you cancel a ParameterTransformer?


 

Banahaha! (As evil fruit masterminds say). The plot thickens (They don't say that so much)...

IF I set the Oscilloscope's Level parameter to 1, the problem goes away. Any other value and the problem comes back seemingly irrespective of what Sounds I'm feeding in to the 'scope. Does that suggest that setting the 'scopes Level to anything other than 1 creates hidden Left and Right parameters that are clashing with its existing ones? 

 

(Time flies like clocks made of fruit)

 

asked Nov 29, 2019 in Capytalk & Smalltalk by alan-jackson (Virtuoso) (15,840 points)
edited Nov 30, 2019 by alan-jackson

1 Answer

0 votes
This should work:

left: ?VoiceNumber <= 1
right: ?VoiceNumber >= 2

(Sorry, that is kind of ugly but the reason is that equals can not be a defered evaluation; whereas <= and >= can).
answered Nov 30, 2019 by ssc (Savant) (127,060 points)
I get the same error using <= and >=.

I have investigated more... I'll add more to my original question so I can post up some files.
...