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
# REQUIRED: The credentials for creating/accessong your app's database | |
# | |
db_user: "#{app_name[0,16]}" | |
db_pass: | |
db_name: "#{app_name}_#{RUBBER_ENV}" | |
db_slave_user: "#{('slave_' + db_user)[0,16]}" | |
db_replicator_user: "#{('replicator_' + db_user)[0,16]}" |
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
# REQUIRED: The credentials for creating/accessong your app's database | |
# | |
db_user: "#{app_name[0,16]}" | |
db_pass: | |
db_name: "#{app_name}_#{RUBBER_ENV}" | |
db_slave_user: "#{('slave_' + db_user)[0,16]}" | |
db_replicator_user: "#{('replicator_' + db_user)[0,16]}" | |
# REQUIRED: The command to use to do a full backup of your database using |
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
( | |
p = Pbind( | |
[\degree, \dur], | |
Pseq([[0, 0.1], [2, 0.1], [3, 0.1], [4, 0.1], [5, 1]], 1), | |
\amp, 0.08, | |
\octave, 6, | |
\instrument, \cfstring1 | |
); | |
) |
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
( | |
SynthDef(\cfstring1.postln, { arg i_out, freq = 360, gate = 1, pan, amp=0.1; | |
var out, eg, fc, osc, a, b, w; | |
fc = LinExp.kr(LFNoise1.kr(Rand(0.25, 0.4)), -1, 1, 500, 2000); | |
osc = Mix.fill(8, {LFSaw.ar(freq * [Rand(0.99, 1.01), Rand(0.99, 1.01)], 0, amp) }).distort * 0.2; | |
eg = EnvGen.kr(Env.asr(1, 1, 1), gate, doneAction:2); | |
out = eg * RLPF.ar(osc, fc, 0.1); | |
#a, b = out; | |
Out.ar(i_out, Mix.ar(PanAz.ar(4, [a, b], [pan, pan+0.3]))); | |
}).store; |
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
// This SynthDef does Granular Synthesis | |
( | |
SynthDef(\granularish, {arg speed = 1, sndbuf ; | |
var b = 10, trate, dur, clk, pos, pan; | |
trate = MouseY.kr(8,120,1); | |
dur = 12 / trate; | |
clk = Impulse.kr(trate); | |
pos = MouseX.kr(0,BufDur.kr(b)) + TRand.kr(0, 0.01, clk); | |
pan = WhiteNoise.kr(0.6); | |
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
( | |
SynthDef("LoopSound", { arg out = 0, soundFile, speed = 1, triggerEvery = 1, startPos = 0, vol = 1, duration = 1; | |
var signal = GrainBuf.ar(1, | |
Impulse.kr(1 / triggerEvery), // trigger rate | |
duration, // duration | |
soundFile, // must be pre-loaded | |
speed, // or speed | |
startPos, // where to start playing | |
4); |
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
( | |
SynthDef("auditory_s_s", { arg in, out, // input sound, output sound | |
mix = 0.5, room = 0.1, damp = 0.5, // reverb params (all between 0 and 1) | |
hp_cutoff_freq = 10, // hi pass params (anything) | |
lp_cutoff_freq = 40000, // low pass params (anything) | |
pan = 0; // pan left or right (-1 to 1) | |
var reverbed, lo_passed, hi_passed, panned; | |
hi_passed = HPF.ar(In.ar(in), hp_cutoff_freq); // this line applies the Hi pass |
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
( | |
SynthDef("auditory_s_s", { arg in, out, // input sound, output sound | |
mix = 0.5, room = 0.1, damp = 0.5, // reverb params (all between 0 and 1) | |
hp_cutoff_freq = 10, // hi pass params (anything) | |
lp_cutoff_freq = 40000, // low pass params (anything) | |
pan = 0, // pan left or right (-1 to 1) | |
stereoWidthVol = 0, // 0 - 1 (try 0.7) | |
stereoWidthAmount = 0.0; // 0.0001 - 0.1 (try 0.002) (time delay between 2 channels) | |
var reverbed, lo_passed, hi_passed, panned1, panned2; |
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
// Use this file as a template for Assignment 1 | |
// | |
// Vimeo tutorial of everything: http://vimeo.com/user2299201 | |
// Synthesiser definitions | |
// LoopSound: https://gist.github.com/1138857 | |
// Auditory_s_s: https://gist.github.com/1153861 | |
// | |
// This file: https://gist.github.com/1153864 | |
// | |
// To get everything playing, all you need to do is hit 'enter' once for each line |
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
( | |
SynthDef("Xenakish", { arg out = 0, soundFile, t_ramp = 0, | |
triggerGrainEvery = 1, // how often to trigger the grains. Start with 0.05 (every 50 msec). | |
goTo = 0, // position in file 0 to 1. | |
goIn = 0, // time to get to the position (in seconds). | |
randomPosSpread = 0, // random spread in seconds. Start with 0.01. | |
grainLength = 1, // length of grain in seconds. typically 10-50msec. Start with 0.05 (50 msec). | |
speed = 1, // how fast to play the grain. Affects pitch. | |
vol = 1; // volume. |
OlderNewer