Commit a3c08b8d authored by Michael Natterer's avatar Michael Natterer
Browse files

oops, should save before committing...

parent 3d48bbd0
...@@ -270,14 +270,14 @@ static const gchar * ...@@ -270,14 +270,14 @@ static const gchar *
midi_get_event_name (GimpController *controller, midi_get_event_name (GimpController *controller,
gint event_id) gint event_id)
{ {
if (event_id <= 383) if (event_id < (128 + 128 + 128))
{ {
if (! midi_events[event_id].name) if (! midi_events[event_id].name)
{ {
if (event_id < 128) if (event_id < 128)
midi_events[event_id].name = g_strdup_printf ("note-on-%02x", midi_events[event_id].name = g_strdup_printf ("note-on-%02x",
event_id); event_id);
else if (event_id < (128 + 128) else if (event_id < (128 + 128))
midi_events[event_id].name = g_strdup_printf ("note-off-%02x", midi_events[event_id].name = g_strdup_printf ("note-off-%02x",
event_id - 128); event_id - 128);
else if (event_id < (128 + 128 + 128)) else if (event_id < (128 + 128 + 128))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment