Skip to content

Instantly share code, notes, and snippets.

@colinbdclark
Last active April 29, 2016 04:35
Show Gist options
  • Save colinbdclark/2d3f9db4d387f115f5c0f4680d7ed266 to your computer and use it in GitHub Desktop.
Save colinbdclark/2d3f9db4d387f115f5c0f4680d7ed266 to your computer and use it in GitHub Desktop.
window.s = flock.synth({
synthDef: {
ugen: "flock.ugen.sum",
sources: [
{
ugen: "flock.ugen.filter.moog",
cutoff: {
ugen: "flock.ugen.lfNoise",
mul: 10000,
add: 10000,
freq: 1/4
},
resonance: {
ugen: "flock.ugen.lfNoise",
options: {
interpolation: "linear"
},
mul: 1.5,
add: 1.5
},
source: {
id: "carrier",
ugen: "flock.ugen.dust",
density: {
ugen: "flock.ugen.lfNoise",
options: {
interpolation: "linear"
},
mul: 2,
add: 2,
},
rate: "audio"
}
},
{
ugen: "flock.ugen.saw",
freq: {
ugen: "flock.ugen.sequence",
values: [480, 350, 440, 300, 90, 240, 60, 390],
freq: {
ugen: "flock.ugen.lfNoise",
options: {
interpolation: "linear"
},
freq: 1/3,
mul: 2,
add: 2
},
loop: 1.0
},
mul: {
ugen: "flock.ugen.envGen",
envelope: {
levels: [0, 1, 0],
times: [0.02, 0.01],
curves: "sin"
},
gate: {
ugen: "flock.ugen.lfPulse",
freq: {
ugen: "flock.ugen.lfNoise",
freq: 1/6,
mul: 0.075,
add: 0.075
},
width: 0.01
},
mul: 0.1
}
},
{
ugen: "flock.ugen.filter.moog",
resonance: {
ugen: "flock.ugen.lfNoise",
options: {
interpolation: "linear"
},
freq: 1,
mul: 0.1,
add: 0.4
},
cutoff: {
ugen: "flock.ugen.lfNoise",
options: {
interpolation: "linear"
},
freq: 1/3,
mul: 400,
add: 800
},
source: {
ugen: "flock.ugen.sinOsc",
freq: {
ugen: "flock.ugen.lfNoise",
freq: {
ugen: "flock.ugen.sinOsc",
freq: 1/20,
mul: 1.5,
add: 1.5
},
mul: 120,
add: {
ugen: "flock.ugen.lfNoise",
options: {
interpolation: "linear"
},
freq: 1/12,
mul: 120,
add: 120
}
},
mul: {
ugen: "flock.ugen.envGen",
gate: {
ugen: "flock.ugen.lfPulse",
freq: {
ugen: "flock.ugen.lfNoise",
freq: {
ugen: "flock.ugen.lfNoise",
freq: 1/2,
mul: 0.05,
add: 0.06
},
mul: 0.05,
add: 0.075
},
width: {
ugen: "flock.ugen.lfNoise",
options: {
interpolation: "linear"
},
freq: 1/3,
mul: 0.02,
add: 0.03
}
},
envelope: {
levels: [0, 1, 0.8, 0.9, 0],
times: [0.06, 0.03, 0.45, 0.25],
sustainPoint: 2
},
mul: 0.1
}
}
}
]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment