Class: Stretto::Tokens::PolyphonicPressureToken
Overview
Token from parsing a polyphonic pressure element
Instance Method Summary collapse
-
#pitch ⇒ Value
Value of the pitch to apply pressure.
-
#to_stretto(pattern = nil) ⇒ MusicElements::PolyphonicPressure
The PolyphonicPressure element constructed.
-
#value ⇒ Value
Value of the pressure applied.
Methods inherited from HashToken
Instance Method Details
#pitch ⇒ Value
Returns 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.
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 |