I have a patch where I take polyphonic MIDI input (with [poly]) and I change it into different squares of different colours (in fact, I have 8 voices maximum with [poly], so 8 squares. The colours are 12, like the notes of a chromatic scale). The order MIDI note-colour should be precise. I did an abstraction for the voice (so that I have one abstraction and I use it 8 time) and inside the abstraction I have another one for selecting the colour (with the object [select]). But there's a problem! In fact, the patch shows the colours randomly! Where's the mistake?
-
Where is the mistake?
-
the abstraction, too
-
the abstraction, too [2]
And oh! I have 3 other patches that should work the same way, changing the couples note-colour. -
I think you should add [pack f f] between [notein] and [poly 8] and connect outlet of [pack f f] to left inlet of [poly 8] because [poly] accepts list(note velocity) from its left inlet and number of voices from its right inlet.
-
I don't understand what this patch does. Why do you use velocity to send a bang?
-
when you use [route], it cuts the first value from the list.
so if you have a list like [1 2 3], and you send it through [route 1], the output will just be [2 3]
it looks like you are expecting the first value to still be in place.
also, if you need to figure these things out for yourself, the best way is to use the [print] object and see what that sends to the console. In your patch, if you just connect [print] to the output of the [route] object, you should see clearly what is happening.
just make sure you delete the print object when you are finished, so your patch doesn't always send that info to the console.
-
I thank you all, after looking at the patch a bit of time, I saw that the mistake was -in fact- about [route]. I didn't understand very well the behaviour of this object, so I connected the [mod 12] to the velocity and not to the pitch. Now that I changed this it works much better!!!
Thank you by heart