MIDI actions with Program Changes Issue #1690
jmalon
started this conversation in
Hydrogen on Windows
Replies: 3 comments 6 replies
-
Could you check the latest development version? I did a lot of changes in the MIDI tab and IIRC there was also a problem with PC messages in general which I fixed along the way. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hi,
I have to read your explanation more carefully but I don't understand very
well the difficulty in using the Data Byte 1 of the Program Change MIDI
message.
Voice Message Status Byte Data Byte1 Data Byte2
------------- ----------- ----------------- -----------------
Note on 9x Key number Note on velocity
Control Change Bx Controller number Controller value
Program Change Cx Program number None
Effectively, Program Change doesn't use the 2nd Data Byte, but in Note
On I think that value (velocity) is not of much interest.
to launch an action.
El vie, 16 dic 2022 a las 9:45, theGreatWhiteShark (<
***@***.***>) escribió:
… Okay, wait. There is a reason can not assign an action to a specific PC
value.
A CC or NoteOn message consists of a (note)parameter and a value. The
former we use for mapping to specific actions and the latter as input
variable for the action itself. The PC event, however, does only provide a
single value. While it triggering toggling actions, like PLAY or STOP,
using specific PC values would make sense, other actions expecting a
numerical value as input would not be usable anymore. I'm afraid supporting
event parameters in the MIDI table is not possible for PC events.
I created two events one for Play and the other for Stop. If I send
whatever program change number the song plays, and then whatever number I
send the song stops.
Yes, it is registered to the PC event in general and the actions run one
after another. You could use PLAY/STOP_TOGGLE to switch between play and
stop using one and the same event.
—
Reply to this email directly, view it on GitHub
<#1690 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGINLOCXXT4QYMN5CVBFXTWNQT3RANCNFSM6AAAAAAS64Q3MA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Thanks theGreatWhiteShark,
I'm very busy these days but when I have a little free time I'll check it.
Happy New Year
El jue, 22 dic 2022 a las 12:34, theGreatWhiteShark (<
***@***.***>) escribió:
… If you can give me some indication where to start looking I would
appreciate it but without any commitment. I have already taken up enough of
your time.
Sure.
Main entry point is here:
https://github.com/hydrogen-music/hydrogen/blob/master/src/gui/src/main.cpp
The MIDI table you can interact with in the preferences is here:
https://github.com/hydrogen-music/hydrogen/blob/master/src/gui/src/Widgets/MidiTable.cpp
But main MIDI handling is done within the core:
https://github.com/hydrogen-music/hydrogen/blob/master/src/core/MidiMap.h
and
https://github.com/hydrogen-music/hydrogen/blob/master/src/core/MidiAction.h
Incoming MIDI is handled here:
https://github.com/hydrogen-music/hydrogen/blob/master/src/core/IO/MidiInput.cpp
—
Reply to this email directly, view it on GitHub
<#1690 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGINLIQX57AVW4ADDIANVTWOQ4EXANCNFSM6AAAAAAS64Q3MA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to set up several MIDI events associated with Program Change messages but I can't get it to work. When I enter a program number in the first parameter it is not saved, only it is saved with I enter it in the second parameter of the MIDI System Tab. In any case, it doesn't matter the number entered. The action is executed with any program change and I can't set up more than one event associated to a program change.
With the events associated to Control Changes it works perfectly but unfortunately the 4 CC# that I have available in my MIDI controller are already dedicated to other tasks.
I'm using the last stable version 1.1.1 and my OS is Windows 10
Any idea?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions