class Musicality::Link

Connect one note pitch to the target pitch of the next note, via slur, legato, etc.

@!attribute [rw] target_pitch

@return [Pitch] The pitch of the note which is being connected to.

Public Instance Methods

==(other) click to toggle source
# File lib/musicality/notation/model/link.rb, line 23
def ==(other)
  self.class == other.class
end
clone() click to toggle source
# File lib/musicality/notation/model/link.rb, line 11
def clone
  Marshal.load(Marshal.dump(self))
end
to_s() click to toggle source
# File lib/musicality/notation/model/link.rb, line 27
def to_s
  LINK_SYMBOLS[self.class]
end
transpose(diff) click to toggle source
# File lib/musicality/notation/model/link.rb, line 15
def transpose diff
  self.clone.transpose! diff
end
transpose!(diff) click to toggle source
# File lib/musicality/notation/model/link.rb, line 19
def transpose! diff
  return self
end