Commit f9e48aec authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

fluidsynth: implement channel aftertouch event

(cherry picked from commit f749d30ba2541702a1b601d85a714a6fc1d085e6)
(cherry picked from commit dc07f6a00abff488c9e8a9eaefcd26c6569ca2a2)
parent af970f60
...@@ -198,12 +198,16 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block) ...@@ -198,12 +198,16 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
case 0x90: case 0x90:
fluid_synth_noteon (p_sys->synth, channel, p1, p2); fluid_synth_noteon (p_sys->synth, channel, p1, p2);
break; break;
/*case 0xA0: note aftertouch not implemented */
case 0xB0: case 0xB0:
fluid_synth_cc (p_sys->synth, channel, p1, p2); fluid_synth_cc (p_sys->synth, channel, p1, p2);
break; break;
case 0xC0: case 0xC0:
fluid_synth_program_change (p_sys->synth, channel, p1); fluid_synth_program_change (p_sys->synth, channel, p1);
break; break;
case 0xD0:
fluid_synth_channel_pressure (p_sys->synth, channel, p1);
break;
case 0xE0: case 0xE0:
fluid_synth_pitch_bend (p_sys->synth, channel, (p2 << 7) | p1); fluid_synth_pitch_bend (p_sys->synth, channel, (p2 << 7) | p1);
break; break;
......
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