Skip to content

Instantly share code, notes, and snippets.

View munshkr's full-sized avatar
🌘

Damián Silvani munshkr

🌘
View GitHub Profile
@munshkr
munshkr / test03.js
Last active July 25, 2019 01:51
another test, by @flordefuego4 #hydra
// by @flordefuego4
osc(10,0.5,0.2).color(1,0.2,1).modulate(o0)
.modulate(osc(10).kaleid(100))
.modulateRotate(osc(10).kaleid(100))
.mult(shape(200,0,1.5).scale(0.7,0.5))
.add(src(o0).scale(0.8),0.5)
.modulate(src(o0).scrollX(()=>Math.tan(0.1*time)*2),0.1)
.modulate(o0)
.out()
@munshkr
munshkr / test02.js
Created July 24, 2019 20:19
#hydra test2
// by Zach Krall
// http://zachkrall.online/
osc( 215, 0.1, 2 )
.modulate(
osc( 2, -0.3, 100 )
.rotate(15)
)
.mult(
osc( 215, -0.1, 2)
@munshkr
munshkr / test01.js
Created July 24, 2019 20:01
test01 #hydra
// by Nelson Vera
// twitter: @nel_sonologia
osc(8,-0.5, 1).color(-1.5, -1.5, -1.5).blend(o0).rotate(-0.5, -0.5).modulate(shape(4).rotate(0.5, 0.5).scale(2).repeatX(2, 2).modulate(o0, () => mouse.x * 0.0005).repeatY(2, 2)).out(o0)
@munshkr
munshkr / README.md
Created March 2, 2019 14:38
SCRIPT-8
@munshkr
munshkr / orca_superdirt.scd
Last active August 7, 2021 22:59
orca superdirt example
// Orca + SuperDirt setup
(
// Add your scales here, to use with =S message
var myScales = [Scale.egyptian, Scale.dorian];
// Map your synths/samples here in (`sample_name`, `number`) pairs
// `sample_name` would be the name of the sample/synth in SuperDirt
// `number` is the number that you will use in ORCA
// e.g. `=A` is mapped to `klang` sample
@munshkr
munshkr / Dockerfile
Created June 9, 2018 12:45
Dockerfile to reproduce Poetry bug with python3-venv
FROM debian
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
python3-pip \
python3-setuptools
RUN pip3 install -U poetry
RUN poetry new /app
WORKDIR /app
ENTRYPOINT ["/bin/bash"]
@munshkr
munshkr / Pdefc.sc
Created June 16, 2017 23:41
Pdefc / Pbindefc / Pkeyc classes
// Same as Pdef, but it collects last event on global `allEvents` dictionary
Pdefc : Pdef {
classvar <>allEvents;
*initClass {
allEvents = IdentityDictionary.new;
}
*new { arg key, item;
// Replace Pbind source for a Pcollect that stores
@munshkr
munshkr / xi-03.rb
Last active February 19, 2017 14:51
xi-03
supermandolin.set degree: [1,4,7,8,9].p([1/4,1/8,1/8,1/8,1/16,1/16,1/8]).seq(2),
gate: :degree,
detune: [0.1, 0.4, 0.4],
sustain: [1,2,3,10],
accelerate: [0, 0, 0.1],
octave: [3,4,5,6].p(1/3),
scale: [Scale.iwato, Scale.jiao].p(1/2),
amp: P.new { |y| y << rand * 0.2 + 0.8 }.p(1/2)
fm.set degree: [1,4,7,8,9].p([4,1,2,1]),
@munshkr
munshkr / 04.tidal
Created February 19, 2017 14:25
xi-tidal-04
d1 $ every 3 (within (0.75, 1) (striate 2))
$ every 8 (jux rev . echo (7/8))
$ every 4 (within (0.5, 0.75) (stut 2 0.25 0.25))
$ sound "[kick:2(3, 8), ~ snare:2]"
# gain "1.3"
d2 $ every 4 (striate 2) $ sound "ae*8" # speed "5 8 4 0.5" # gain "0.7" # end "0.5"
@munshkr
munshkr / newrelic_sequel_test.rb
Created July 13, 2016 14:42
NewRelic Sequel test
require 'rubygems'
require 'sequel'
require 'newrelic_rpm'
# use NewRelic on DB
Sequel::Database.extension(:newrelic_instrumentation)
# connect to an in-memory database
DB = Sequel.sqlite
DB.logger = Logger.new(STDOUT)