Class: Stretto::Tokens::NoteToken
- 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
-
#to_stretto(pattern = nil) ⇒ MusicElements::Note
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
#to_stretto(pattern = nil) ⇒ MusicElements::Note
Returns 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 |