I get an error message : “ Error: float () argument must be a string or a number, not ’Nontype.’

Hi all,

I am a beginner to TD. I copy the “Switch” Chop example from Operator Snippets.

And I was trying to modify the example in order to switch different references for the “displace weight” in Displace TOP.

The first is the LFO Chop ( work well)

The second one is constant ( work well)

The third one is midi in Chop + select Chop + math Chop + null !!

However, the displace reacts with the 1st and 2nd, but the 3rd it mentioned “ Error: float () argument must be a string or a number, not ’Nontype.’

What should I do?

chop reference already is : op(‘null14’)[‘chan1’]

The channel coming from you midi CHOP is not called “chan1” but from what I see in your screenshot its name starts with “ch1…”

so to always pick the first channel from a CHOP use channel index instead of channel name;

op("null14")[0]

Amazing!!! It solved!
Thank you