Skip to content

Instantly share code, notes, and snippets.

View munshkr's full-sized avatar

Damián Silvani munshkr

  • Buenos Aires, Argentina
  • 19:53 (UTC -03:00)
  • X @munshkr
View GitHub Profile
@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)
@munshkr
munshkr / image.asm
Last active July 2, 2016 16:52
Programa autoejecutable para C64 Studio, imágenes en modo texto
;screen char data
!byte $f9,$f9,$e4,$a0,$a0,$a0,$e8,$e8,$e8,$e2,$e8,$e3,$f7,$c5,$c4,$c5,$20,$20,$20,$3d,$20,$e4,$f9,$e2,$e2,$78,$e2,$f9,$7b,$68,$e6,$68,$68,$20,$e4,$f9,$e2,$f9,$d2,$d2
!byte $62,$f8,$f8,$f7,$c4,$7e,$27,$3a,$22,$68,$20,$7c,$a0,$a0,$a0,$3a,$20,$20,$20,$3d,$20,$64,$6f,$79,$62,$f7,$f9,$f8,$f7,$6c,$6c,$20,$20,$5c,$f7,$f7,$e3,$e4,$e4,$a0
!byte $42,$7c,$a0,$a0,$69,$20,$20,$5c,$20,$27,$5c,$20,$4d,$20,$21,$3a,$20,$20,$20,$20,$20,$6c,$6c,$a0,$69,$20,$27,$20,$66,$6c,$6c,$6c,$20,$20,$5c,$e6,$f8,$62,$79,$79
!byte $21,$20,$a0,$e6,$20,$20,$20,$79,$4c,$20,$66,$64,$20,$2c,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6a,$20,$20,$20,$20,$20,$20,$20,$20,$20,$5c,$20,$e6,$e6,$68,$68,$20
!byte $3a,$20,$20,$5c,$27,$6c,$e4,$ef,$e4,$a2,$ca,$e4,$65,$5c,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$68,$68,$68,$68
!byte $20,$20,$20,$3e,$2e,$69,$62,$20,$7b,$e1,$7b,$6c,$7e,$29,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$5c,$20,$20,$20,$20,$20,$20,$20,$68,$e6,$e6,$ec,$a0,$fb
!byt