lib/beeps/beeps.rb in beeps-0.1.32 vs lib/beeps/beeps.rb in beeps-0.1.33

- old
+ new

@@ -33,13 +33,18 @@ def beeeeep() beep_sound(2).play end + def beep_processor=(processor) + @beep_processor = processor + end + private def beep_sound(time) - Sound.new SquareWave.new, time + @beep_processor ||= Oscillator.new(:square) + Sound.new @beep_processor, time end self end# ClassMethods