-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable MIDI delay/latency #2159
Comments
In this case, you just need to set the "Delay" to 0. This wouldn't be necessary with my However, there are situations where you want to do DSP and still send MIDI messages as quick as possible.
I have the feeling this should rather be a method or flag for the various MIDI output objects ( |
Thanks for adding the label and the additional info.
Indeed, I'm doing something at the moment where I want to interact with pd patches, some of which are audio, while also sending plenty of midi messages as quickly as possible to set LEDs on a controller (the Linnstrument). I'm sure it is a common enough application. A flag for the midi objects could work, it is just I am not clear if the latency applies to all control data? Then we would also want to switch off latency for things like netsend, for sending OSC data for example - so perhaps encapsulating the patch and setting the status of it, as can be done with blocksize et al., would be a better solution in this case (applying as well to any midi objects instantiated within it). |
The latency only applies to outgoing MIDI messages. The relevant code is in |
Setting a minimal delay (only lets me go down to 2 ms) causes GUI slowdown even without DSP switched on, which seems strange. I will try running my MIDI headless in a separate instance but definitely would be nice to have some integrated options here! |
That is very strange indeed. Apart from the (accidental) MIDI delay, the "Delay" setting should not have any effect when DSP is off... |
Thanks that's good to know I will investigate further. I built it myself as using pdnext, and maybe I messed something up or there is some other issue with my system. My first year with Linux! Apologies for going a bit off topic. |
At the moment control data is artificially delayed to match the audio buffer, which is presumably useful for keeping them in sync. However there may be times, such as if one is developing a pure midi or an open sound control implementation, in which it is desirable to keep latency to an absolute minimum, and where we would prefer this delay not to be imposed.
Would it be possible to enable/disable this delay on a per-case basis?
It would be fantastic if it were possible to disable the artificial latency not just globally but on a per-object basis (perhaps adding an option to something like [switch~]?)
The text was updated successfully, but these errors were encountered: