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)
-
- (MusicElements::MusicElement) to_stretto(pattern = nil)
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
- (MusicElements::MusicElement) to_stretto(pattern = nil)
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 |
- (Value) value
A Value object wrapping the value of the modifier
29 30 31 |
# File 'lib/stretto/grammar/tokens/modifier_token.rb', line 29 def value Value.new(__value.wrap) end |