Skip to content
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

Convert event to value and vice-versa #147

Open
dronus opened this issue Dec 19, 2024 · 0 comments
Open

Convert event to value and vice-versa #147

dronus opened this issue Dec 19, 2024 · 0 comments

Comments

@dronus
Copy link

dronus commented Dec 19, 2024

When converting MIDI notes into OSC commands for example, it would be useful to know if / how to convert the event id (that is the note id in this case) into a value that can be used in the OSC packet.

For example:

midi_in.ch0.note{1..64} > osc_out./note

would just trigger /note, but loose the information which note was played. Same goes for all value outputs, like midi CC or evdev messages. Same, the other way round, goes for playing MIDI notes with mouse coordinates for example.

Of course, the notes may be converted to different OSC paths with ease, like

midi_in.ch0.note{1..64} > osc_out./note{1..64}

but that would require the receiving device to read the note pitch from the path instead of an integer note number value, as it is sometimes the case.

So basically, translating event path wildcard ids into values and vice-versa would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant