Julusian / node-midi

A node.js wrapper for RtMidi providing MIDI I/O
https://www.npmjs.com/package/@julusian/midi
MIT License
22 stars 7 forks source link

Set MIDI Input buffer size in Windows #15

Closed lozjackson closed 3 months ago

lozjackson commented 5 months ago

We would like to use this library, however we have a specific requirement to be able to send large MIDI message packets up to 16384 bytes in size.

I can see there is an option to set the buffer size in RT MIDI here: https://github.com/thestk/rtmidi/blob/master/RtMidi.cpp#L864

The buffer size is currently limited to 2048 here: https://github.com/Julusian/node-midi/blob/master/src/input.cpp#L48

Is there any easy way to override that from our app when consuming node-midi?.. if thats not currently possible would you be willing to add an option to configure it?

lozjackson commented 4 months ago

@Julusian any chance of looking into this? it would really help us out.

lozjackson commented 3 months ago

@Julusian I've opened a PR to implement the setBufferSize() method. Hoping you'd be willing to merge and release this

Julusian commented 3 months ago

Thanks, this is published in v3.3.0