You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for writing this. I am playing around and have a question. I can send output using WriteShort, and then sleep until sending the next event.
But, what I really have is a []portmidi.Event, which already include timestamp information. It seems like I should be able to just call:
out, err := portmidi.NewOutputStream(output, 1024, 0)
out.Write(events) # events is []portmidi.Event recorded just before this call.
and have it play. But the timing isn't respected, so everything goes very quickly.
I tried setting the latency in the NewOutputStream call to various values (based on the C code, that's the only time that timestamps are actually used), but that doesn't seem to work. (I thought that setting it to portmidi.Time() would offset it correctly from the reads I did just before...)
Do you know how I can pass in a list of Events and just have them played with the timing information honored? It seems silly that I would have to do that in my code :)
Thank you
Dan
The text was updated successfully, but these errors were encountered:
Hi.
Thank you for writing this. I am playing around and have a question. I can send output using WriteShort, and then sleep until sending the next event.
But, what I really have is a []portmidi.Event, which already include timestamp information. It seems like I should be able to just call:
out, err := portmidi.NewOutputStream(output, 1024, 0)
out.Write(events) # events is []portmidi.Event recorded just before this call.
and have it play. But the timing isn't respected, so everything goes very quickly.
I tried setting the latency in the NewOutputStream call to various values (based on the C code, that's the only time that timestamps are actually used), but that doesn't seem to work. (I thought that setting it to portmidi.Time() would offset it correctly from the reads I did just before...)
Do you know how I can pass in a list of Events and just have them played with the timing information honored? It seems silly that I would have to do that in my code :)
Thank you
Dan
The text was updated successfully, but these errors were encountered: