Class: Stretto::Tokens::PolyphonicPressureToken

Inherits:
HashToken
  • Object
show all
Defined in:
lib/stretto/grammar/tokens/polyphonic_pressure_token.rb

Overview

Token from parsing a polyphonic pressure element

Examples:

“*80,100”

Instance Method Summary collapse

Methods inherited from HashToken

#[]

Instance Method Details

#pitchValue

Returns Value of the pitch to apply pressure.

Returns:

  • (Value)

    Value of the pitch to apply pressure



17
18
19
# File 'lib/stretto/grammar/tokens/polyphonic_pressure_token.rb', line 17

def pitch
  Stretto::Value.new(__pitch.wrap)
end

#to_stretto(pattern = nil) ⇒ MusicElements::PolyphonicPressure

Returns The PolyphonicPressure element constructed.

Returns:



12
13
14
# File 'lib/stretto/grammar/tokens/polyphonic_pressure_token.rb', line 12

def to_stretto(pattern = nil)
  Stretto::MusicElements::PolyphonicPressure.new(self, pattern)
end

#valueValue

Returns Value of the pressure applied.

Returns:

  • (Value)

    Value of the pressure applied



22
23
24
# File 'lib/stretto/grammar/tokens/polyphonic_pressure_token.rb', line 22

def value
  Stretto::Value.new(__value.wrap)
end