Method: ColtraneSynth::Synth#phase

Defined in:
lib/coltrane/synth/synth.rb

#phase(freq) ⇒ Object



22
23
24
# File 'lib/coltrane/synth/synth.rb', line 22

def phase(freq)
  Math::PI * 2.0 * freq / nominal_rate
end