This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adopted from https://github.com/repl-electric/live-coding-space | |
require 'osc-ruby' | |
def reaktion(endpoint, *args) | |
args = [endpoint] + args | |
endpoint = :reaktion | |
endpoint = "/#{endpoint}" | |
@client ||= OSC::Client.new('localhost', 9000) | |
begin | |
args = args.map{|a| a.is_a?(Symbol) ? a.to_s : a} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defining standalone wobble | |
# WOBBLE BASS | |
define :wob do |note, no_of_wobs, duration| | |
# using in_thread so we don't block everything | |
in_thread do | |
use_synth :dsaw | |
lowcut = note(:E1) # ~ 40Hz | |
highcut = note(:G8) # ~ 3000Hz | |