Replies: 4 comments 1 reply
-
|
Hi, thanks for the interest in the app. Good to hear, that you managed to get it working even though the callback was not called often enough. Currently, the callbacks are triggered in the part of the code, where the sound stream is generated. Without having double-checked it, I would think, that the best way is to have an additional callback, which handles the trigger for midi signals. I will try to have a look within the next days, and at least give some hints, where this could be added. It is definitely a good question, whether it is worth to have such a feature in the main version. From perspective of user interface, it seems to me, as it would need a new option in the settings, to enable this. Not sure, how much it increases the size of the binary. Do you know, where this factor of 24 comes from? Maybe you could also share your code, I would be interested to see, how this midi trigger works. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for sharing the info and sharing your code. I had a look, whether there is a easy way to implement the 24 callbacks per quarter note. Unfortunately it seems not super-easy, but I have a second look :-). Problem is to keep everything nicely in sync with the actually played notes, especially while changing the speed. But there are ways, question is how easy it can be implemented. As for bringing changes to the main version, a big uncertainty is the need for extra permissions. I think it is good to keep the required permissions at the minimum. But sometimes features just need them. I don't say, this would be a blocker, but it would need a second thought :-). |
Beta Was this translation helpful? Give feedback.
-
|
So ... in case you are still interested, I did now publish a successor app: https://codeberg.org/thetwom/metronome. Here, I did at least allow to use callbacks based on subbeats, so exactly the basis, what you need. A lot changed there, but in case you are interested you could try to get midi working there in a much more consistent way ... and maybe at some time mainline it ... |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, first of all: really loving the app (+ your tuner app), thanks!
I hope this is the right place to suggest this feature/ask for help.
For my band we need a midi clock signal to e.g. sync a delay pedal with the current bpm automatically.
I was able to add all the required midi device code, open a port and send the clock pulse byte on every quarter note.
However, the clock pulse has to be sent 24 times for every quarter note.
My quick and dirty workaround was creating a scene with 1 loud and 23 muted quarter notes and multiplying the quarter bpm value by 24 (in the code). Of course the visuals were now broken (as they were triggered 24 times as fast) but this "works" for now.
I am not sure if such a midi clock feature would be useful to the average user (since this also requires a midi usb cable most people don't have lying around), so I am not really expecting you to add this feature. It would most likely just clutter the otherwise minimalistic app unnecessarily?
I would however be grateful for any help or hints on how I would implement this properly. I haven't dug through all of the code yet and am therefore not sure where I could create an additional callback which then gets triggered more often than the audio/visual events. Maybe there is a simple solution?
Beta Was this translation helpful? Give feedback.
All reactions