Writes a Channel-wide pressure (mono aftertouch) event. The pressure is in the range 0..127.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(MIDI_file), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | channel | |||
integer, | intent(in) | :: | pressure |
subroutine mono_aftertouch(self, channel, pressure) class(MIDI_file), intent(inout) :: self integer, intent(in) :: channel, pressure ! 8 bits integer(int8) :: octets(0:1) call self%delta_time(0) octets(0) = int(z'D0', int8) + checked_int8(channel, upper=15) octets(1) = checked_int8(pressure) write(self%unit, iostat=self%status) octets end subroutine mono_aftertouch