Sha256: b47d272c928978bbfea169212e18819a6874961a1e67af7ad9b8beca6c2df00f

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

module Vissen
  module Input
    module Message
      # From the MIDI Association:
      #   Polyphonic Key Pressure (Aftertouch). This message is most often sent
      #   by pressing down on the key after it "bottoms out".
      class Aftertouch < Base
        STATUS = 0xA0

        # @return [Integer] the note value.
        def note
          data[1]
        end

        # @return [Integer] the preassure value.
        def preassure
          data[2]
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vissen-input-0.2.2 lib/vissen/input/message/aftertouch.rb