Skip to content

Instantly share code, notes, and snippets.

Mauro lvm

Block or report user

Report or block lvm

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
@lvm
lvm / ddupe
Created Sep 2, 2019
find dupe directories, only 1 level.
View ddupe
#!/usr/bin/env python3
import argparse
from pathlib import Path
def get_dirs(path):
return dict([(x.name,x.as_posix())
for x in path.iterdir()
if x.is_dir()])
@lvm
lvm / ageis.scd
Created Apr 30, 2019
ageispolis midi.scd
View ageis.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
}
@lvm
lvm / SynthDefExtras.sc
Created Feb 1, 2019
synthdef general helpers
View SynthDefExtras.sc
+ Symbol {
args {
^SynthDescLib.global.at(this);
}
function {
^SynthDescLib.global.at(this).def.func;
}
View mate97c.scd
/*
// 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 Oct 8, 2018
conversesamplelibrary.com downloader
View force-dup-key.py
#!/usr/bin/env python3
import requests
import threading
url = "http://127.0.0.1:8001/o/token/"
client = {
'id': "abc",
'secret': "def"
}
View nodeproxies-with-synthdefs.scd
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 / ageispolis.scd
Created Aug 10, 2018
some weird version of ageispolis in Repetition.sc
View ageispolis.scd
(
~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,
View prange.sc
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;
You can’t perform that action at this time.