MIDI Pitch List to Pitch class List
hey, I did this function to transform a list of MIDI Pitches into Pitchclasses (from 0 - 11)
I have some doubts if this is the best way to do it. Some questions:
Is there a way to reset a [value]? Like send a "clean" message.
Also side question is there a way to send a message "set" to [join] without it using it internally like join this two lists "set hey" + "25 26 fish reaper" ?
why don't you use this :
vexpr $i1%12 @scalarmode 1
to the questions
there is no way I know off to reset value object, that's why I don't like to use it.
uzi can count form any number which is set as second argument.
like uzi 8 0
I don't really understand that "set hey" + "25 26 fish reaper" question.
do you mean to join the lists without output ?
can be done in many different ways.
set message looses it's function if used as a symbol.
join object would accept set message to populate inlet without output.
use bang to output joined items
Hey thanks for the vexpr I didn't know the scalarmode of it NICE!
Yeah it seems value cant be reseted, :/ Is there other object you use as a variable and can be reseted? I am seting a nill message in the value object and then when I need to restore I check if the output is not nill to continue.
the join question is not about sending a set to [join] but having a list that the first item is "set" and joining with another list like this two lists :
"set hey" + "25 26 fish reaper" = "set hey 25 26 fish reaper"
Thanks a lot!!
set is a special case in that it sets a value without triggering it's output for
many objects. One has to taks care about that if on takes it out of symbol list
You can use combine to do that

if final list allways needs to have set at the beginning,
one could remove it from the input if that is an option

-----
I use different objects instead of value depending on what needs to be stored / reseted
and if it is only local or shared within patch - patches.
ranging from int right inlet, zl reg (zlclear) to named coll for more complex things.
Anything that can store a value and get cleared.
one can also use grab to get values of remote objects
thanks for the info Source! This was really helpful !