module EasyAudioSequencer
Constants
- VERSION
Public Class Methods
freq_for_note(note)
click to toggle source
# File lib/easy_audio_sequencer.rb, line 8 def self.freq_for_note(note) 2.0 ** ((note-49.0)/12.0) * 440.0 end
sn(fn, note)
click to toggle source
# File lib/easy_audio_sequencer.rb, line 12 def self.sn(fn, note) Sound.new(freq: freq_for_note(note), &fn) end