-
Notifications
You must be signed in to change notification settings - Fork 51
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
Help with slow communication #53
Comments
Thanks for your reply, Geert Reported times for sendmidi list:
And reported times for two sendmidi cc that plays/pauses Cubase:
The delay I am experiencing from executing the order in Terminal and hear the order executed is noticeable. I guess that it should be around half second, but maybe I am wrong and it is lower than that. Anyway, it is a noticeable latency for the ears. It has sense what you say regarding Bome: it is always running. The same happens with other apps: there is no noticeable latency if I send the same cc from Pocket Midi, Stream Deck or other hardware devices. I wonder if it would be possible to keep sendmidi running to reduce the latency. What do you think? I suppose that keeping sendmidi running wouldn't cause any problem for the performace of the computer. If you think it would be a good improvement, we could have new commands for that, something like: -k or --keep -> keep sendmidi running after executing any command |
I'm questioning the usefulness of keeping it running since you'll still have to type in commands. There no buttons with predefined behavior to press. Typing commands takes a lot of time. |
I don't type sendmidi commands in terminal very often. On the contrary, I type sendmidi commands in terminal only for testing the command-line works correctly. Once I know the command-line does what I want, I copy it and paste it on:
From my point of view, in my use case, the best of sendmidi is the freedom to send any midi message from any app that can run terminal commands. So, IMO, it would be very useful to keep sendmidi running if we can reduce latency for all users that want to use sendmidi as I do. |
None of those things would work with keeping sendmidi running, the flow would be sendmidi listening for user input on the terminal when it's running, which is typically done with the keyboard. Any of those ways of running you describe would still have to load sendmidi and provide the arguments to execute. I'm still not seeing what the advantages would be. Sendmidi is not a GUI application, it's a terminal one. |
I'm sorry Geert, I don't understand what you mean. I've lost your train of thought. Let's say I run this applescript:
Would Cubase receive this cc message faster if sendmidi is running? |
That script still runs sendmidi as a command line tool, it still has to load it from disk: |
If sendmidi was always running in the background, it would be not necessary to load it, isn't it? In that scenario it would send the midi commands faster than now. It makes sense or I am missing something? |
It would, that's what |
I am using SendMIDI since version 1.2.0
I have always got a small delay (around half second) when I hit ENTER in the command-line and the midi command is received by the DAW.
The same midi command is received immediately by the DAW if I send it using Bome Midi Translator Pro, so I assume that this delay is not caused by the "receiver", and it is caused by the sender.
Today I have seen again Geert's youtube tutorial, and the LinnStrument receives the midi commands immediately, so I wonder what is wrong in my setup. I am not an expert with Terminal, so maybe I am doing something wrong with the command-line?
As example, this line plays/pauses Cubase:
sendmidi dev 'IAC Everybody > CubaseMidi' channel 1 cc 31 127
If I type it in Terminal and I hit Enter, Cubase takes half second to play/pause. If I send the same cc with a shortcut via Bome Midi Translator Pro, Cubase plays/pauses immediately.
I want to use SendMIDI without any delay!! I will appreciate any help!!
The text was updated successfully, but these errors were encountered: