Class: Lydown::Rendering::Barline
- Defined in:
- lib/lydown/rendering/music.rb
Constant Summary collapse
- LILYPOND_BARLINES =
{ '|:' => '.|:', ':|' => ':|.', '|\''=> '\halfBarline', '?|' => '' }
Instance Method Summary collapse
Methods inherited from Base
#find_prev_event, #initialize, #next_event, #prev_event
Constructor Details
This class inherits a constructor from Lydown::Rendering::Base
Instance Method Details
#translate ⇒ Object
290 291 292 293 294 295 296 297 298 |
# File 'lib/lydown/rendering/music.rb', line 290 def translate = @event[:barline] = LILYPOND_BARLINES[] || if =~ /^\\/ @context.emit(:music, "#{} ") else @context.emit(:music, "\\bar \"#{}\" ") end end |