Skip to content

Instantly share code, notes, and snippets.

s.boot;
(
SynthDef(\simple, { |freq=440, pos=0, amp=0.5|
Pan2.ar(SinOsc.ar(freq), pos, amp);
}).add
;
SynthDef(\simple_rev, { |sig, mix=0.5, room=0.5, damp=0.1|
FreeVerb.ar(sig, mix, room, damp);
}).add
@lvm
lvm / ageis.scd
Created April 30, 2019 22:57
ageispolis midi.scd
z = SimpleMIDIFile.read("/home/mauro/Downloads/General MIDIMan - Ageispolis.mid")
(
x = { |smf, channel, track|
var pending = IdentitySet.new, buf = MIDIRecBuf(\seq).absoluteOnsets_(true),
events = smf.noteEvents(channel, track).sort { |a, b|
if(a[1] == b[1]) {
a[2] > b[2] // equal time, put noteOn first
} {
a[1] < b[1] // earlier time first
}
#!/usr/bin/env python3
import requests
import threading
url = "http://127.0.0.1:8001/o/token/"
client = {
'id': "abc",
'secret': "def"
}
@lvm
lvm / SynthDefExtras.sc
Created February 1, 2019 17:03
synthdef general helpers
+ Symbol {
args {
^SynthDescLib.global.at(this);
}
function {
^SynthDescLib.global.at(this).def.func;
}
[
{
"caption": "SublimeREPL: Tidal",
"command": "run_existing_window_command", "args":
{
"id": "repl_tidal",
"file": "config/Tidal/Main.sublime-menu"
}
}
]
@lvm
lvm / mate97c.scd
Created October 15, 2018 00:17
mate ab97

/* // discarded \fwot <+ "bd r r bd sn r bd sn".pbind(\chan, 8, \dur, 1/4, \amp, 0.8, \stut, [1,[2,4].pshufn(1)].pwrand([0.9,0.1])); \fwot <+ ("0:10|1:011" << "bd cp cp|ch bd".bjorklund([3,5],8)).pbind(\chan, 8, \dur, 1/4, \amp, 0.8); \fwot <+ ("0:1001|1:0012|2:0021" <<< "ch*4 rm rm".bjorklund([3,4,7],8,1)).pbind(\chan, 8, \dur, 1/4, \amp, 0.8); \fwot <+ ("0:1001|1:0012|2:0021" <<< "ch oh").pbind(\chan, 8, \dur, 1/4, \amp, 0.8); */

// silence \piano >> nil;

@lvm
lvm / README.md
Last active October 8, 2018 15:23
conversesamplelibrary.com downloader
@lvm
lvm / ageispolis.scd
Created August 10, 2018 22:44
some weird version of ageispolis in Repetition.sc

( ~percs = "r cl rs|ma r / r ch r r / r r r r / r|rs rs r r / r rs r cp|r / r r r r / r r cl r / r cl r r / r cl rs r|cl / r r r r / r r r r / r r r r / r ma ch r / r|r ch ma rs / r r|ma ch|r rs / r|r ch r|ma rs / r r r r / r cl rs r / r ch r r / r r r r / r|rs rs r r / r rs r cp|r / r r r r / r r cl r / r cl r r / r cl rs r|cl / r r r r / r r r r / r r r r / rs rs rs rs/ rs rs rs rs/ r rs rs r/ rs rs r rs / r rs ch|rs r/ rs ch|rs r|r rs / r rs r rs/ cp rs rs rs / r rs ch ch/ r cp ma ch / r r rs r / r r rs|ch r / r cl rs r / r ch r r / r r r r / r|rs rs r r / r rs r cp|r / r r r r / r r cl r / r cl r r / r cl rs r|cl / r r r r / r r r r / r r r r / rs rs rs rs/ rs rs rs rs " .sometimes{ |evt| evt++"@" } .asRepetitionStream .player( \chan, 9, \sustain, 1, \amp, 0.5, \dur, 1/4,

Psoftclip : FilterPattern {
var <>lo, <>hi;
*new { arg pattern,lo,hi;
^super.new(pattern).lo_(lo).hi_(hi)
}
storeArgs { ^[pattern,lo,hi] }
embedInStream { arg event;
var next;