Class: Stretto::Tokens::ModifierToken
Overview
Token result from parsing a modifier token. This encloses all elements that are constructed by a single character and a value. Refer to individual class to see the MusicElement generated from this token
Direct Known Subclasses
ChannelPressureToken, InstrumentToken, LayerChangeToken, PitchBendToken, TempoToken, TimingToken, VoiceChangeToken
Instance Method Summary collapse
-
#to_stretto(pattern = nil) ⇒ MusicElements::MusicElement
abstract
Returns an element of class KLASS.
-
#value ⇒ Value
A Value object wrapping the value of the modifier.
Methods inherited from HashToken
Instance Method Details
#to_stretto(pattern = nil) ⇒ MusicElements::MusicElement
This method is abstract.
Returns an element of class KLASS
24 25 26 |
# File 'lib/stretto/grammar/tokens/modifier_token.rb', line 24 def to_stretto(pattern = nil) self.class::KLASS.new(self, pattern) end |