Sha256: 92add2857139670da5016d26209be720e57e56c32df8a88de54858d395ac1987

Contents?: true

Size: 523 Bytes

Versions: 3

Compression:

Stored size: 523 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 Martellato < Accent
    def to_s
      return "^"
    end
  end

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

end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
music-transcription-0.4.2 lib/music-transcription/accent.rb
music-transcription-0.4.1 lib/music-transcription/accent.rb
music-transcription-0.4.0 lib/music-transcription/accent.rb