Sha256: 6dd4047c436bd21fb9433a2e0f7fe550ae2a98e27a5467a3db6ab0217bedac1b
Contents?: true
Size: 291 Bytes
Versions: 42
Compression:
Stored size: 291 Bytes
Contents
class Numeric # # +ftom+: frequency converter to MIDI note # # interprets its receiver as a frequency and returns its corresponing MIDI note # def ftom raise Mext::NegativeNumeric if self < 0.0 MIDI_PITCH_FORK + (12.0*Math::log2(self/self.class.pitch_fork)) end end
Version data entries
42 entries across 42 versions & 1 rubygems