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
MIDIClient.init; | |
MIDIIn.connectAll; | |
~midiOut = MIDIOut.newByName("Elektron Digitakt", "Elektron Digitakt").latency_(Server.default.latency); | |
( | |
MIDIdef.cc(\controlChange, { | |
| val, num, chan, src | | |
var digitaktUID, nanoCtrlUID; | |
digitaktUID = MIDIIn.findPort("Elektron Digitakt", "Elektron Digitakt").uid; |
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
--- coordinates cv generator | |
-- vinc 230124 | |
-- in1-2: x-axis, y-axis | |
-- out1-4: magnitude in corresponding quadrants | |
function quadrants() | |
local x = math.min(math.max(input[1].volts, -5), 5) | |
local y = math.min(math.max(input[2].volts, -5), 5) | |
local h = math.sqrt(math.pow(x, 2)+math.pow(y, 2)) -- hypotenuse | |
local r = math.atan2(y, x) -- radian |
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
--- pitch quantizer | |
-- vinc 240211 | |
-- in1: freq | |
-- in2: amp | |
-- out1: pitch quantized sine osc | |
-- out2: pitch quantized cv | |
-- out3: trig | |
-- out4: amp env follower | |
lasf_f = 0 |