Sha256: 68970806c42e43269b5d35c931ca11b1c112d662ff4dc814523785ccb5eda867
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
module Music module Transcription class Meter attr_reader :measure_duration, :beat_duration, :beats_per_measure def initialize beats_per_measure, beat_duration @beats_per_measure = beats_per_measure @beat_duration = beat_duration @measure_duration = beats_per_measure * beat_duration end def ==(other) return (@beats_per_measure == other.beats_per_measure && @beat_duration == other.beat_duration) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
music-transcription-0.7.1 | lib/music-transcription/meter.rb |