lib/music-transcription/part.rb in music-transcription-0.7.3 vs lib/music-transcription/part.rb in music-transcription-0.8.0

- old
+ new

@@ -39,17 +39,9 @@ def ensure_start_dynamic unless @start_dynamic.between?(0,1) raise RangeError, "start dynamic #{@start_dynamic} is not between 0 and 1" end end - - #def ensure_dynamic_change_offsets - # d = self.duration - # outofrange = @dynamic_changes.keys.select {|k| !k.between?(0,d) } - # if outofrange.any? - # raise RangeError, "dynamic change offsets #{outofrange} are not between 0 and #{d}" - # end - #end def ensure_dynamic_change_values_range outofrange = @dynamic_changes.values.select {|v| !v.value.between?(0,1) } if outofrange.any? raise RangeError, "dynamic change values #{outofrange} are not between 0 and 1"