How is it possible to send multiple notes at once?
I have bundles setup in my application, and I'm able to send them along to OSCulator. I only have one message defined in OSCulator which is:
PrtsOhG.png
I was hoping to use this to trigger multiple pitches in a bundle, but it doesn't seem to work. Do I have to define enough messages in OSCulator to handle the bundles? For example if I defined: /osc/note/1, /osc/note/2, /osc/note/3 etc ...
I'm using the code below to send chords if it's any help:
I have bundles setup in my application, and I'm able to send them along to OSCulator. I only have one message defined in OSCulator which is:
PrtsOhG.png
I was hoping to use this to trigger multiple pitches in a bundle, but it doesn't seem to work. Do I have to define enough messages in OSCulator to handle the bundles? For example if I defined: /osc/note/1, /osc/note/2, /osc/note/3 etc ...
I'm using the code below to send chords if it's any help:
Code:
OSC.prototype.chordOn = function(notes) { let self = this; // Use fat arrows to do away with this const bundleNotes = _.map(notes, function(note) { return new a2rOSC.Message(`/${self.app}/note`, [note.pitch, note.velocity, 1]); }); this.send(new a2rOSC.Bundle(new Date, bundleNotes).toBuffer()); }
Comment