Skip to content

Instantly share code, notes, and snippets.

@dmorgan-github
dmorgan-github / Pdv.sc
Last active March 2, 2023 04:00
SuperCollider mini dsl for durations and values
/*
NOTE: There is a Quark for this - https://github.com/dmorgan-github/Pdv
Copy to Extensions folder and re-compile
Ryhthmically sequences numeric values which can then be used with any event key, e.g. degree or midinote.
operators:
" " - empty space separates beats/values
~ - rest
call plug#begin()
Plug 'davidgranstrom/scnvim'
Plug 'preservim/nerdtree'
Plug 'jnurmine/Zenburn'
Plug 'itchyny/lightline.vim'
Plug 'L3MON4D3/LuaSnip'
" Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/cmp-nvim-lsp'
(
~drec.fx(200, {|sig_in|
var updateFreq = 15;
var replyid = \bufposreplyid.kr(-1);
var buf = \buf.kr(0);
var in = sig_in.asArray.sum;//In.ar(\in.kr(0), 2).asArray.sum;
var frames = BufFrames.kr(buf);
var rate = \rate.kr(1);
var start = \startPos.kr(0) * frames;
var end = \endPos.kr(1) * frames;
(
Plazy({
Pbind(
\dur, Pseed(123, Prand([1, 0.5, 0.25], inf))
)
.finDur(8) // 8 beat measure
})
.repeat // repeat each measure
1) Exploring sounds
SynthDescLib.global.at(\mysynth).makeWindow;
@dmorgan-github
dmorgan-github / supercollider-pseudo-object
Last active January 1, 2025 16:11
SuperCollider pseudo-object cheatsheet
(
/*
Collection
|
|-- Set
|
|-- Dictionary
|
|-- IdentityDictionary
|