Skip to content

Instantly share code, notes, and snippets.

@okyeron
okyeron / cranes_midi_trigger.lua
Created December 14, 2019 05:01
cranes w/ midi trigger record
-- 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.
### Baudot TTY/TDD Message Transmitter
### The 5-bit mode is defined in ANSI TIA/EIA-825 (2000)
### "A Frequency Shift Keyed Modem for use on the Public Switched Telephone Network"
import audiocore
from audiocore import RawSample
from audioio import AudioOut
from audiomixer import Mixer
import adafruit_trellism4
-- softcut study 3: cut
--
-- E2 fade time
-- E3 metro time (random cut)
file = _path.dust.."/code/softcut-studies/lib/whirl1.aif"
fade_time = 0.01
metro_time = 1.0
positions = {0,0,0,0}