Skip to content

Instantly share code, notes, and snippets.

@ypxk
ypxk / lofi-oB4.lua
Last active January 11, 2022 01:14
-- lofi OB4
-- holds the input in softcut in case you need it
-- enc 2 = scrub buffer
-- key 2 = rewind??
-- key 3 = jump to real time
-- arc 1 = scrub buffer
-- arc 2 = not interactive, graphics only
rate = 1 --longer values increase buffer but cost fidelity
-- cranes
-- dual looper / delay
-- (grid optional)
-- v2.12 @dan_derks
-- https://llllllll.co/t/21207
-- ---------------------
-- to start:
-- press key 2 to rec.
-- sounds are written to
-- two buffers.
@ypxk
ypxk / traffic.lua
Last active January 15, 2019 04:31
-- los angeles traffic
--
-- enc 1: circle of 5ths
-- enc 2: jump notes
-- enc 3: add/remove
-- key 2 (tap): major/minor
-- key 2 (hold) + enc 2:
-- jump amount
-- key 2 (hold) + enc 3:
-- amount of traffic
-- LA Drivers
-- thanks to mark
--enc 1: move key center by 5th
--enc 2: move key center by 4th
--key 2: walk through current scale
--enc 3: add random/remove last
--key 2: parallel modulation
--key 3: random scale
MusicUtil = require "mark_eats/musicutil"
-- EXPENSIVE ARPEGGIATOR
-- based on norns study 4
-- grid controls arpeggio
-- midi selects notes
-- button 2 = start/stop
-- button 3 = random arp
-- encoder 1 = bpm
-- encoder 2 = skim arp/note length
-- encoder 3 = probability of note on (thanks @burn)
-- TODO:
music = require 'mark_eats/musicutil'
chordsList = {}
timeSet = 0
timeDone = 0
--midi function
m = midi.connect()
m.event = function(data)
local d = midi.to_msg(data)