Class: Fixnum

Inherits:
Object show all
Defined in:
lib/scruby/core_ext/fixnum.rb

Overview

Musical math

Instance Method Summary collapse

Instance Method Details

#freqObject



3
4
5
# File 'lib/scruby/core_ext/fixnum.rb', line 3

def freq
  440 * (2 ** ((self - 69) * 0.083333333333) )
end