Thank you, Raino. The reason I am doing that way, because I want to use the DNF (https://en.wikipedia.org/wiki/Disjunctive_normal_form). Unfortunately cubase LE doesn’t allow us to have a variable in preset. So my preset in the upper pane would look like the DNF format:
(type is Note AND no of note in Chord =10 AND note number = 9) OR
(type is Note AND no of note in Chord =9 AND note number = 8) OR
(type is Note AND no of note in Chord =8 AND note number = 7) OR
(type is Note AND no of note in Chord =7 AND note number = 6) OR
(type is Note AND no of note in Chord =6 AND note number = 5) OR
(type is Note AND no of note in Chord =5 AND note number = 4) OR
(type is Note AND no of note in Chord =4 AND note number = 3) OR
(type is Note AND no of note in Chord =3 AND note number = 2) OR
(type is Note AND no of note in Chord =2 AND note number = 1)
Now we can refactor it as follows:
(type is Note) AND
( no of note in Chord =10 AND note number = 9) OR
(no of note in Chord =9 AND note number = 8) OR
(no of note in Chord =8 AND note number = 7) OR
(no of note in Chord =7 AND note number = 6) OR
(no of note in Chord =6 AND note number = 5) OR
(no of note in Chord =5 AND note number = 4) OR
no of note in Chord =4 AND note number = 3) OR
(no of note in Chord =3 AND note number = 2) OR
(no of note in Chord =2 AND note number = 1)
These will select the highest note regardless of the number of the notes in the chord from 2 to 10! Don’t you think they should work? But neither of them work on my end.
PS. If variable say X was introduce in LE, would could have done above preset in one line as follows:
(type is Note AND no of note in Chord =X AND note number = X-1 AND X in range 1 to 1000). It would simplify many other LE presets. But I guess the programmers are afraid of LE throwing lost of Exceptions that need to be handled
https://en.wikipedia.org/wiki/Exception_handling
that otherwise, they cause Cubase to crash right away.