Play held notes on Modwheel/CC like Omnichord
-
Hi Community,
What would be your approach to achieve an effect like the omnichord.
For anyone who doesn't know this:
I want to hold several notes and slide the modwheel up and down through all held notes and the same transposed/inversion notes.Is it possible to generate or trigger notes via the modwheel?
I found a midi cc to note generator module, but I don't know how to use it and the doc doesn't have anything about it.Thank you already and I am looking forward to helpful posts
Translated with DeepL.com (free version)
-
@StephanS use the onController callback, look for CC1 (the mod wheel) and use its value to decide which note to play in the held chord set...
-
Hi Lindon,
thank you for your idea. Do you have a snipped of it to help me with that.
it doesn't play any notes when I scroll through the modwheel.Thank you very much for your help
On Init var notes = []; var heldNotes = []; var modwheel = []; //Console.print(trace(modwheel)); inline function Omnichord() { for (i = 0; i < heldNotes.length; i++) { Synth.playNote(modwheel[i], 60); } } function onNoteOn() { var note = Message.getNoteNumber(); heldNotes.push(note); //Console.print(trace(heldNotes)); } function onController() { if(Message.getControllerNumber() == 1) // Modwheel { Console.print(Message.getControllerValue() / 127.0); modwheel.push(Message.getControllerValue() / 127.0); } }
-
@Lindon said in Play held notes on Modwheel/CC like Omnichord:
use the onController callback
I think in that case you can also do without the 'inline function' and just write the for loop.
Lindon will verify that if its wrong.