[Csnd] Midi to OSC and polyphony
Date | 2019-11-16 08:34 |
From | zappfinger |
Subject | [Csnd] Midi to OSC and polyphony |
I am trying to convert midi to OSC. It works well with single notes, but not with chords. The receiving end (a Pyo Python program) could receive OSC lists, but how do I generate these? My idea is to store the first note in an array, and add subsequent notes that arrive within a short time interval. Then send the array over OSC... Here's my code so far: |
Date | 2019-11-16 16:17 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Midi to OSC and polyphony |
Hi, You oculd simplify it by sending all the parameters in one OSC message, like: OSCsend 1, "localhost",8000, "/midi/note", "ii", inote, ivel and you can keep on adding more values if you want. There is a slight overhead on sending OSC messages, so for large amounts of data, you could also bundle them Oeyvind lør. 16. nov. 2019 kl. 09:20 skrev zappfinger <zappfinger@gmail.com>: I am trying to convert midi to OSC. It works well with single notes, but not |