Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dndrks
dndrks / 240218.scd
Created February 18, 2024 18:34
240218
// Quarks.install("Ease")
{SinOsc.kr(3)}.plot(1);
{EaseOutInBounce.kr(SinOsc.kr(3))}.plot(1);
{Line.kr(0,1,1)}.plot(1)
{SinOsc.ar(3)}.plot(1)
{EaseInCirc.ar(SinOsc.ar(300))!2}.play
@dndrks
dndrks / user_script.lua
Created May 14, 2022 01:12
cheat codes user script boilerplate
-- required container, do not change this:
local user_script = {}
-- this function is called whenever a loaded collection
-- has a 'user_script.lua' file in the collection:
function user_script.init()
print("hello from the user script")
end
-- this function is called whenever the transport starts:
@dndrks
dndrks / user_script.lua
Last active May 14, 2022 01:46
cheat codes user script: pad sequencer example
-- cheat codes user script: pad sequencer example
-- required container, do not change this:
local user_script = {}
my_pads = {} -- use unique variables to reduce conflicts with the rest of cheat codes
-- this function is called whenever a loaded collection has a 'user_script.lua' file in the collection:
function user_script.init()
@dndrks
dndrks / user_script.lua
Last active May 14, 2022 01:46
cheat codes user script: delay sequencer example
-- cheat codes user script: delay sequencer example
-- required container, do not change this:
local user_script = {}
my_delays = {} -- use unique variables to reduce conflicts with the rest of cheat codes
-- this function is called whenever a loaded collection has a 'user_script.lua' file in the collection:
function user_script.init()
@dndrks
dndrks / Engine_BloopDrum.sc
Last active November 17, 2021 21:45
a simple drum synth
Engine_BloopDrum : CroneEngine {
var pg; // pg is a "parallel group", see the alloc ~20 lines down
*new { arg context, doneCallback;
^super.new(context, doneCallback);
}
alloc {
pg = ParGroup.tail(context.xg);
@dndrks
dndrks / usb-tape-copy.lua
Last active November 26, 2021 14:24
norns USB TAPE copy
-- USB tape copy
--
-- * attach a USB drive
-- * choose a TAPE, press K3:
-- * copy
-- * copy+delete
-- * delete
--
-- if you see "NO USB DETECTED",
-- reconnect and wait a minute
@dndrks
dndrks / midimatrix.lua
Last active November 3, 2020 08:33
example midi matrix
box = {} -- a table of boxes
msg =
{
["cc"] = {"cc","val","ch"}
, ["note_on"] = {"note","vel","ch"}
, ["note_off"] = {"note","vel","ch"}
, ["key_pressure"] = {"note","val","ch"}
, ["pitchbend"] = {"val","ch",nil}
, ["channel_pressure"] = {"val","ch",nil}
@dndrks
dndrks / cranes-200823.lua
Last active August 24, 2020 21:39
cranes-refactor
-- cranes
-- dual looper / delay
-- (grid optional)
-- v2.14 @dan_derks
-- https://llllllll.co/t/21207
-- ---------------------
-- to start:
-- press key 2 to rec.
-- sounds are written to
-- two buffers.
--
-- PATCHWORK (v2.0)
--
-- Dual sequencer for
-- norns, grid + crow
-- @olivier
-- llllllll.co/t/patchwork/28800
--
-- See full documentation
-- in library post on lines
@dndrks
dndrks / patchwork-midi.lua
Last active July 15, 2020 14:33
patchwork-midi
--
-- PATCHWORK (v1.0.1)
--
-- Dual sequencer for
-- norns, grid + crow
-- @olivier
-- llllllll.co/t/patchwork/28800
--
-- See full documentation
-- in library post on lines