Skip to content

Instantly share code, notes, and snippets.

tedthetrumpet

Block or report user

Report or block tedthetrumpet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View disquietjunto0368.scd
// archive of code used for disquiet junto 0368
// P is the same as Pbindef
// also needs buffer player synth \bf, and various other bits of initialisation not shown here
~dqjpath="/Users/jsimon/Dropbox/SuperCollider/disquiet junto 0368/Junto 367.aif"
~dqjbuf=Buffer.read(s, ~dqjpath)
// ~dqjbuf.play
t.tempo_(120/60)
@tedthetrumpet
tedthetrumpet / dsqj365-01.scd
Created Dec 29, 2018
source code for js2018 (disquiet0365)
View dsqj365-01.scd
// source code for js2018 (disquiet0365)
// https://disquiet.com/0365/
// randomly chosen five-second segments from 12 audio files, one for each month of the year
// SuperCollider 3.10.0
(
s.waitForBoot{
var path, files;
Buffer.freeAll;
View espgridfail02
jsimon@edgy:~/EspGrid/espgridd$ cd ~
jsimon@edgy:~$ ls
Desktop Music
Documents Pictures
Downloads Public
Dropbox qt-opensource-linux-x64-5.6.1.run
EspGrid sc3-plugins
examples.desktop sc_ide_conf.yaml
exchangecalendar supercollider
View gist:60f05bf4cffc9f754e3c597607761fb0
jsimon@edgy:~$ pwd
/home/jsimon
jsimon@edgy:~$ ls
Desktop kxstudio-repos_9.3.0~kxstudio1_all.deb sc3-plugins
Documents kxstudio-repos-gcc5_9.3.0~kxstudio1_all.deb sc_ide_conf.yaml
Downloads Music supercollider
Dropbox Pictures Templates
examples.desktop Public Videos
exchangecalendar qt-opensource-linux-x64-5.6.1.run
jsimon@edgy:~$ git clone https://github.com/d0kt0r0/EspGrid.git
View amsinit.scd
(
// reset
Pdef.all.clear; Pdefn.all.clear; Ndef.all.clear; Buffer.freeAll;
// quantize changes to four beats
Pbindef.defaultQuant = 4;
Pdefn.defaultQuant = 4;
s.waitForBoot{
// set tempo to 120
TempoClock.default.tempo = 120/60;
// setup sample path
View gmsnprep 14.scd
Ndef(\m).put(1, \filter -> {|x| JPverb.ar(x, t60:2, size:0.2)}).set(\wet1, 1.0)
Ndef(\m).put(2, \filter -> {|x| Decimator.ar(x, rate:1700, bits:7)}).set(\wet1, 0.1)
Ndef(\m).put(2, \filter -> {|x| Decimator.ar(x, rate: Ndef(\l).kr.range(250,3770), bits:5)}).set(\wet1, 0.5)
Ndef(\m).put(3, \filter -> {|x| Greyhole.ar(x, delayTime:t.tempo/8, feedback:0.6, size:0.1, diff:0.01, modDepth:0)}).set(\wet1, 0.6)
Ndef(\l, {LFNoise1.kr(t.tempo/4)})
Pbindef(\b, \instrument, \bform)
Pbindef(\b, \midinote, [24, 36, 48])
(a=[36!8, 34!8].flatten;
View soh_lazy.scd
t = TempoClock(60/60)
~changesamples.("soh")
d = ~bufs[0..18] // kendhang
e = ~bufs[19..32] // saron & demung
f = ~bufs[33..39] // gong
Pbindef(\x, \instrument, \bf, \dur, 1/4)
// keep coming up with 8 beat patterns, and repeat each one four times
View changesamples.scd
~changesamples = {
|x="hitz01"|
if ( ["hitz01","soh","hamburg", "iowa"].indexOfEqual(x) != nil,
{ var path = "/Users/jsimon/Music/SuperCollider Recordings/" ++ x ++ "/";
Buffer.freeAll;
~bufs = (path ++ "*.aiff").pathMatch.collect({ |i| Buffer.read(s, i)});},
{"that's not a sample folder".error; nil})
};
~changesamples.();
@tedthetrumpet
tedthetrumpet / lcode 04 gmsnprep 10 algodub.scd
Created Jun 19, 2016
Livecoding experiment, sounds a bit dub.
View lcode 04 gmsnprep 10 algodub.scd
(
Pdef.all.clear;
Ndef.all.clear;
s.waitForBoot{
// setup sample paths and \bf synth
~hitzpath="/Users/jsimon/Music/SuperCollider Recordings/hitzamples/"; // some hits
~bufs = (~hitzpath ++ "*.aiff").pathMatch.collect({ |i| Buffer.read(s, i)});
SynthDef(\bf, {|out=0 buf=0 amp=0.1 freq=261.6255653006|
var sig = PlayBuf.ar(2, buf, BufRateScale.kr(buf) * freq/60.midicps, doneAction:2);
Out.ar(out, sig * amp)
@tedthetrumpet
tedthetrumpet / sheffield jam.scd
Created Jun 17, 2016
For fun, layering this over the top of the Sheffield Algorave stream going on right now
View sheffield jam.scd
(
Ndef(\formant, { |freq = 261.6255653006, formfreq = 463, bwfreq = 200, gate = 1, amp = 0.1|
var env = EnvGen.kr(Env.adsr(), gate, doneAction:2);
var sig = Formant.ar(freq * ((-1..1)/500 + 1), formfreq * env.range(0.01,2), bwfreq);
sig = sig * env;
sig = Splay.ar(sig)
})
)
Ndef(\formant).play
You can’t perform that action at this time.