This file contains hidden or 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
--- when starting a timeline, there is the ability to quantize the 0 beat | |
-- this lauch-quantization is essentially just called `clock.sync(quant)` before beginning | |
-- here is a standard timeline loop with default quantization | |
t1{ duration, action | |
, duration, action | |
} | |
-- note that the above is just sugar for this (ie tl() => tl.loop() ) | |
t1.loop{ duration, action |
This file contains hidden or 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
--- new elements for sequencing fun! | |
---------------------------------------------------------------------- | |
---------------------------------------------------------------------- | |
s = sequins | |
-- table call with a string is treated as a table of chars | |
cs = s"abcd" -- equivalent to s{'a','b','c','d'} |
This file contains hidden or 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
function quantize( volt, scale, divs, range ) | |
-- defaults | |
chrom = {0,1,2,3,4,5,6,7,8,9,10,11} | |
if scale == nil then scale = chrom end | |
local notes = #scale | |
if notes == 0 then | |
scale = chrom | |
notes = #scale | |
end |
This file contains hidden or 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
void process(const ProcessArgs& args) override { | |
// setup macro and macro cv | |
float macro = params[MACRO_PARAM].getValue(); | |
float macrovolts = (macro * 10) - 5; | |
float macro_cvin = 0.f; | |
if ( inputs[MACRO_INPUT].isConnected() ) { | |
macro_cvin = inputs[MACRO_INPUT].getVoltage(); | |
} | |
This file contains hidden or 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
--- maps: S2E4 dynamic mutation | |
-- just friends emulator in ASL | |
function init() | |
output[1](oscillate( dyn{freq=800}:mul(0.8) + 120, dyn{lev=5}:mul(0.98))) | |
end | |
HLUT = {1,2,3,4} -- list of harmonics to 'Intone' toward | |
-- v (0..1): 0 == all at f, 1 == all at HLUT multiples of f. | |
function intone(f, v) |
This file contains hidden or 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
--- maps: S2E4 dynamic mutation | |
-- using ASL's new dyn{} variables for self-modifying signals | |
-- aliases | |
s = sequins | |
ws = ii.wsyn | |
wd = ii.wdel | |
cr = clock.run |
This file contains hidden or 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
--- maps: S2E3 long distance | |
-- using i2c to communicate to external devices | |
-- ??? | |
s = sequins | |
ws = ii.wsyn | |
wd = ii.wdel | |
cr = clock.run |
This file contains hidden or 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
--- bouncy | |
-- tiny demo of ASL's dyn, generating a stream of bass notes from crow | |
-- little sequins of frequencies | |
PIT = sequins{ 110 | |
, 110*1.5 | |
, 110*1.25 | |
, 110*1.666 | |
, 110*1.333 | |
} |
This file contains hidden or 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
-- found shapes | |
-- setup | |
mys = sequins{0,2,4,7,9} | |
myt = sequins{1,1,1,1/2,1/2} | |
function time_fn() | |
while true do | |
clock.sync(myt()) | |
nn() | |
end |
This file contains hidden or 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
-- feels different if you separate the ASL structure from the data | |
function modulator(height, risetime, falltime) | |
return loop{ to( height, risetime ) | |
, to( 0, falltime) | |
} | |
end | |
function init() | |
starting_rise = 1 |