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
--- emulating Three Sisters' SPAN control | |
-- input 1 == frequency | |
-- input 2 == span | |
-- output (1,2,3) == low, centre, high | |
function init() | |
input[1].mode( 'stream', 0.01 ) | |
for i=1,3 do output[i].slew = 0.01 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
--- emulating a small subset of Cold Mac | |
-- bank of functions | |
-- args: input | |
-- output: transformed version of input | |
last_integral = 0 | |
last_input = 0 | |
function clamp(v,min,max) | |
return math.max( math.min(v,max), min ) | |
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
--- timeline sequencer | |
-- aka 'function tracker' | |
-- out1: pitch | |
-- out2: volume | |
-- out3: filter cf | |
scale = {0,6,11,-12,-1,4,0,0,7,6,4,1} | |
scaleIX = 1 | |
function next_note() |
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
--- subharmonic pitch source | |
magic = 1/math.log(2) | |
function init() | |
output[1].volts = 0 | |
metro[1].time = 1.0 | |
metro[1].event = next_step | |
metro[1]:start() | |
--input[1].mode( 'stream', 0.002) |
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
--- subharmonic pitch source | |
magic = 1/math.log(2) | |
function init() | |
output[1].volts = 0 | |
metro[1].time = 1.0 | |
metro[1].event = next_step | |
metro[1]:start() | |
--input[1].mode( 'stream', 0.002) |
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
--- Exploring crow's input modes | |
function init() | |
input[1].mode( 'volume', 0.001 ) | |
output[4].slew = 3 | |
end | |
new_base = false | |
input[1].volume = function( level ) |
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
--- An exploration of Just Friends' Geode | |
j = ii.jf -- alias used throughout | |
function init() | |
j.mode(1) | |
input[1]{ mode = 'change' | |
, direction = 'rising' | |
} |
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
--- An exploration of Just Friends' Geode | |
j = ii.jf -- alias used throughout | |
function init() | |
j.mode(1) | |
input[1]{ mode = 'change' | |
, direction = 'rising' | |
} |
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
#define NUM_OSCS 6 | |
void ii_vox( uint8_t* d ) | |
{ | |
if( !jt_state.smode ){ return; } // ignore if *not* in syn mode | |
int8_t voice = (int8_t)d[0] -1; | |
if( voice >= NUM_OSCS ){ return; } // voice out of range | |
int16_t note = (d[1] << 8) + d[2]; |
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
--- clocky -- a demo of norns' clock library on crow | |
-- NB: requires experimental crow beta | |
-- available from https://github.com/monome/crow/pull/352 | |
myarp = {} | |
myarp2 = {} | |
mylfo = {} | |
--myskal = {0,2,4,7,9,12,14,16,19,24} |