Sha256: 16eb944a550daa873ce2522871f3c6e3ed94a9c101bdeb0047f7803d2cb08973
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
module Music module Transcription # Defines a dynamic level # # @author James Tunnell # class Dynamic def ==(other) self.class == other.class end def clone self.class.new end [ :Piano, :Pianissimo, :Pianississimo, :MezzoPiano, :MezzoForte, :Forte, :Fortissimo, :Fortississimo ].each do |name| Dynamic.const_set(name, Class.new(Dynamic)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
music-transcription-0.7.1 | lib/music-transcription/dynamic.rb |
music-transcription-0.7.0 | lib/music-transcription/dynamic.rb |