Module: Lydown::Parsing::Note::Head

Defined in:
lib/lydown/parsing/nodes.rb

Instance Method Summary collapse

Instance Method Details

#to_stream(note, opts) ⇒ Object



163
164
165
166
167
168
# File 'lib/lydown/parsing/nodes.rb', line 163

def to_stream(note, opts)
  # remove octave marks from note head (this is only in case the order
  # accidental-octave was reversed)
  head = text_value.gsub(/[',]+/) {|m| note[:octave] = m; ''}
  note[:head] = head
end