Class: Lydown::Rendering::Note
- Includes:
- Notes
- Defined in:
- lib/lydown/rendering/music.rb
Constant Summary
Constants included from Notes
Lydown::Rendering::Notes::ADD_LINK_COMMAND, Lydown::Rendering::Notes::LILYPOND_EXPRESSIONS, Lydown::Rendering::Notes::TEXTMATE_URL
Constants included from Figures
Figures::ALTERATION, Figures::ALTERATION_RE, Figures::EXTENDERS_OFF, Figures::EXTENDERS_ON, Figures::HIDDEN_FORMAT
Instance Method Summary collapse
Methods included from Notes
#add_chord, #add_macro_event, #add_macro_note, #add_note, cleanup_duration_macro, #lilypond_chord, #lilypond_note, #lilypond_phrasing, #lydown_phrasing_close, #lydown_phrasing_open, #note_event_url_link, #translate_expressions, #translate_string_expression
Methods included from Figures
#add_figures, #add_stand_alone_figures, #check_tenues, #lilypond_figures, #next_figures_event, #translate_figures
Methods inherited from Base
Constructor Details
This class inherits a constructor from Lydown::Rendering::Base
Instance Method Details
#translate ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/lydown/rendering/music.rb', line 92 def translate translate_expressions # look ahead and see if any beam or slur closing after note look_ahead_idx = @idx + 1 while event = @stream[look_ahead_idx] case event[:type] when :beam_close @event[:beam_close] = true when :slur_close @event[:slur_close] = true else break end look_ahead_idx += 1 end add_note(@event) end |