Class: Stretto::Tokens::NoteToken
- Inherits:
- HashToken show all
- Includes:
- WithAttackDecayToken, WithDurationToken, WithNoteStringToken
- Defined in:
- lib/stretto/grammar/tokens/note_token.rb
Overview
Token result from parsing a note element. It includes the note string, attack, decay and duration
Instance Method Summary (collapse)
-
- (MusicElements::Note) to_stretto(pattern = nil)
The constructed Note element.
Methods included from WithAttackDecayToken
Methods included from WithNoteStringToken
#accidental, #key, #octave, #pitch
Methods included from WithDurationToken
Methods inherited from HashToken
Instance Method Details
- (MusicElements::Note) to_stretto(pattern = nil)
The constructed Note element
19 20 21 |
# File 'lib/stretto/grammar/tokens/note_token.rb', line 19 def to_stretto(pattern = nil) Stretto::MusicElements::Note.new(self, pattern) end |