Skip to content

Instantly share code, notes, and snippets.

View aimxhaisse's full-sized avatar
🏠
Working from home

Sébastien Rannou aimxhaisse

🏠
Working from home
View GitHub Profile
@r618
r618 / OSCclient.rb
Last active December 10, 2018 18:46
#SonicPi #OSC #Reaktion
# 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}
@xavriley
xavriley / wobwob.rb
Created June 10, 2014 21:30
Standalone Sonic Pi wobble bass
# 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