Sha256: 8b29f880205bf80acbd0d2fb65202e386181533e4ce4cb1443ca32625b7bfad8

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

module Music
module Transcription

# Defines a note accent (stacatto, tenuto, etc.)
#
# @author James Tunnell
#
class Accent
  def ==(other)
    self.class == other.class
  end
  
  def clone
    self.class.new
  end
  
  class Stacatto < Accent
    def to_s
      return "."
    end
  end
  
  class Stacattissimo < Accent
    def to_s
      return "'"
    end
  end
  
  class Marcato < Accent
    def to_s
      return ">"
    end
  end

  class Martellato < Accent
    def to_s
      return "^"
    end
  end

  class Tenuto < Accent
    def to_s
      return "_"
    end
  end
end

end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
music-transcription-0.4.3 lib/music-transcription/accent.rb