This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~nfftpoints = 2048; | |
~nfftbands = (~nfftpoints / 2) + 1; | |
s = Server.default; | |
s.waitForBoot { | |
SynthDef.new(\freeze_smear_magbands_stereo, { | |
var input = In.ar(\in.kr, 2); | |
var chain = FFT(LocalBuf(~nfftpoints.dup, 1), input); | |
var frozen = PV_MagFreeze(chain, \freeze.kr(0)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local cc_desc = {} | |
describe_midi_cc = function(num) return cc_desc[num] end | |
cc_desc[. 0] = "Bank Select (MSB)" | |
cc_desc[ 1] = "Modulation Wheel" | |
cc_desc[ 2] = "Breath controller" | |
cc_desc[ 3] = "Undefined" | |
cc_desc[ 4] = "Foot Pedal (MSB)" | |
cc_desc[ 5] = "Portamento Time (MSB)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------- | |
// describe one thing | |
/* | |
first difficulty: classes | |
SC has a flexible and heterogenous class system, with innumerable classes inherited from `Object`, compared to the limited number of data types in MATLAB. there is no concept of primitive or literal types. | |
so, our "describe" function needs to explicitly handle types of objects for which numerical description makes sense. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, *::before, *::after { | |
box-sizing: inherit; | |
} | |
html, body { | |
position: relative; | |
box-sizing: border-box; | |
height: 100%; | |
padding: 0; | |
margin: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This effect Copyright (C) 2024 Ezra Buchla | |
// License: CC BY-SA 4.0 - https://creativecommons.org/licenses/by-sa/4.0/deed.en | |
desc: micro delay | |
// tags: delay | |
// author: a moth object | |
slider1:0<0,1000,1>Integer Sample Delay | |
slider2:0<0,1,0.001>Sub-sample Interpolation | |
slider3:0<0,2,1>Interpolation Mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postln("stereoize hello"); | |
s = Server.default; | |
s.waitForBoot { | |
r = Routine { | |
// note that the bands here are not phase-corrected... | |
SynthDef.new(\splitDelay, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Engine_AmpPollTest : CroneEngine { | |
var <synth; | |
*new { arg context, doneCallback; | |
^super.new(context, doneCallback); | |
} | |
alloc { | |
synth = SynthDef.new(\amp_poll_test, { | |
arg out=0, amp=0.125, which = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = Server.default; | |
s.waitForBoot { | |
r = Routine { | |
SynthDef.new(\sine_pair_perc, { | |
var hz = \hz.kr(200); | |
var beatrate = \beatrate.kr(2); | |
var beatrate_2 = beatrate/2; | |
var amp = \amp.kr(-30.dbamp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local timber = include("timber/lib/timber_engine") | |
engine.name = "Timber" | |
local sample_paths = { | |
_path.audio .. "/common/808/808-BD.wav", | |
_path.audio .. "/common/808/808-SD.wav" | |
} | |
function init() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = 1000; | |
m = 20; | |
d = 0.1; | |
a = 0.1 / n; | |
h = Array.newClear(m); | |
s.waitForBoot { Routine { | |
i = 0; |
NewerOlder