Writes a polyphonic key pressure (poly 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) | :: | note | |||
integer, | intent(in) | :: | pressure |
subroutine poly_aftertouch(self, channel, note, pressure) class(MIDI_file), intent(inout) :: self integer, intent(in) :: channel, note, pressure ! 8 bits integer(int8) :: octets(0:2) call self%delta_time(0) octets(0) = int(z'A0', int8) + checked_int8(channel, upper=15) octets(1) = checked_int8(note) octets(2) = checked_int8(pressure) write(self%unit, iostat=self%status) octets end subroutine poly_aftertouch