Method: HeadMusic::Content::Position#+

Defined in:
lib/head_music/content/position.rb

#+(other) ⇒ Object



55
56
57
58
# File 'lib/head_music/content/position.rb', line 55

def +(other)
  other = HeadMusic::Rudiment::RhythmicValue.new(other) if [HeadMusic::Rudiment::RhythmicUnit, Symbol, String].include?(other.class)
  self.class.new(composition, bar_number, count, tick + other.ticks)
end