portmidi-rs icon indicating copy to clipboard operation
portmidi-rs copied to clipboard

Basic SysEx support

Open smosher opened this issue 9 years ago • 6 comments

I'm trying to do some SysEx stuff, but it requires a binding for Pm_WriteSysEx and needs to be able to read the full 32 bits that is written to the buffer by the portmidi C library. Is this possible?

smosher avatar Feb 05 '15 22:02 smosher

Sorry, there has been so much std lib churn that I've put this on the back burner until it settles down a bit. In the medium term I'm going to integrate this with the midi library I've been working on: midi-rs.

Give me a week or so, and I'll get something working for you.

samdoshi avatar Feb 06 '15 08:02 samdoshi

Sure, thanks! No rush, I've got other blockers too. I'm happy just knowing its in the pipeline.

smosher avatar Feb 06 '15 16:02 smosher

Status of this issue?

suhr avatar Nov 14 '17 15:11 suhr

Nothing new. Perhaps you want to work on it?

musitdev avatar Nov 15 '17 14:11 musitdev

I'd like to, but I don't know what is PmTimestamp.

suhr avatar Nov 15 '17 14:11 suhr

It's the binding for portmidi PmEvent: typedef struct { PmMessage message; PmTimestamp timestamp; } PmEvent; In portmidi doc there is this description: The timestamp field is observed when the output port is opened with a non-zero latency. A timestamp of zero means "use the current time", which in turn means to deliver the message with a delay of latency (the latency parameter used when opening the output port.) Do not expect PortMidi to sort data according to timestamps -- messages should be sent in the correct order, and timestamps MUST be non-decreasing. See also "Example" for Pm_OpenOutput() above.

musitdev avatar Nov 16 '17 17:11 musitdev