Hi it’s a simple question.
Is there any python Class for math CHOP to tell which input number is adopted for maximum (or minimum)?
I can figure out with math CHOPs like this, but just wonder.
Thanks.
Hi @ats_1004,
while there is no python member for this, you can solve it with some CHOPs:
- subtract the max value from the merged input channels
- use a Logic CHOP to set the channel to on that has a 0 value
- Fan CHOP with
Fan In
option to get the index.
cheers
Markus
base_maxChanIndex.tox (870 Bytes)
Hi @ats_1004,
another nice way is actually sequencing all the channels with a Shuffle CHOP and then using the Analyze TOP’s Index of Highest Peak
function.
cheers
Markus
1 Like