Skip to content

Instantly share code, notes, and snippets.

@carltesta
carltesta / genmdm.lua
Last active September 1, 2018 14:40
GENMDM Genesis MIDI Sequencer using Norns (10-track MIDI Sequencer)
-- GENMDM
--
-- step sequencing the genesis
--
-- enc 1 = hp volume
-- enc 2 = select step
-- enc 3 = tune step
-- key 2 = random/linear seq toggle
-- key 3 = clear sequence
@carltesta
carltesta / FourteenBitCC.sc
Last active January 23, 2023 17:15
14-bit MIDI Handler for SuperCollider
FourteenBitCC {
/*
//Use Case:
MIDIIn.connectAll;
~x = FourteenBitCC.new("x", 72, 104);
~x.func = {|val| ("x: "++val).postln};
//MPE Example with Sensel Morph
MIDIIn.connectAll
@carltesta
carltesta / readme.md
Last active September 19, 2018 18:29
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

@carltesta
carltesta / Engine_Sway.sc
Last active November 16, 2018 20:31
Sway for monome norns
Engine_Sway : CroneEngine {
*new { arg context, doneCallback;
^super.new(context, doneCallback);
}
alloc {
NornsSway(\sway);
NornsSway(\sway).input.set(\chan, context.in_b[0].index);
NornsSway(\sway).analysis_input.set(\chan, context.in_b[0].index);
@carltesta
carltesta / M1_MNTR_CTRL_headtracker.scd
Created September 28, 2020 04:19
Using the Mach 1 MNTR CTRL app with SuperCollider
//Carl Testa
//requries SuperCollider Ambisonic ToolKit: http://www.ambisonictoolkit.net/documentation/supercollider/
//requires Mach1 M1 MNTR CTRL App: https://apps.apple.com/us/app/m1-mntr-ctrl/id1486961476#?platform=iphone
//headtracker
//Using M1 MNTR CTRL App on iPhone, place the iphone on top of your headphones if you can (or use AirPods Pro)
~ht = Bus.control(s, 1);
(
OSCdef(\tracker,
@carltesta
carltesta / sonic_pi_commands.rb
Last active October 13, 2020 14:26
Sonic Pi Cheat Sheet (Command List)
#Sonic Pi Command List
#Copy and Paste from this command list into your sonic pi file
#Use the command play to play a note using the default synth
#play note (symbol_or_number)
#Usage:
play 60 #midinote 60 or middle c
play :c4 #create a symbol by typing colon then the note name and an octave designation
play :e5, release: 2, amp: 0.5 #you can add parameters as well
@carltesta
carltesta / jacktrip_vm_on_digitalocean.md
Last active February 5, 2024 21:13
Creating a JackTrip Hub Virtual Server with Ubuntu Desktop environment

Creating a JackTrip HUB Virtual Server with Ubuntu Desktop environment and RDP access

This short guide explains how to create a JackTrip Virtual Machine using DigitalOcean, an easy to use cloud server platform. The goal here is to create a server with a desktop interface that you can login to and start JACK and QJackTrip for rehearsals, performances, etc. You can also install audio processing software like SuperCollider but I will save that for another tutorial. The benefit of creating this on a virtual machine is that using DigitalOcean's snapshot feature you can save this configuration and spin it up as needed and save money. You don't need this running 24/7 if you're only using it for rehearsals and performances. This configuration costs about $0.35/month to store on DigitalOcean as a snapshot. The minimal configuration described at the very bottom (without the desktop interface) is about $0.11/month to store on DigitalOcean using their snapshot feature.

Create your

@carltesta
carltesta / hydra_commands.js
Last active November 14, 2020 18:12
Hydra Command Cheat Sheet
//List of Hydra Commands
//Sources
//Oscillator
//osc(frequency, sync, offset)
osc(10,0.1,5).out()
//Noise
//noise(density, sync)
//Run Aalto in SuperCollider
//with VSTPlugin
//https://git.iem.at/pd/vstplugin/-/releases
(
SynthDef(\aalto, { arg bus;
ReplaceOut.ar(bus, VSTPlugin.ar(nil, 2, id: \aalto));
}).add;
)
@carltesta
carltesta / minitidal.md
Last active March 3, 2024 20:31
MiniTidal Cheat Sheet for Estuary

//Use Estuary here: https://estuary.mcmaster.ca

//playing sounds (samples)

//play bass drum sample
sound "bd"

//same as above but shorter to write
s "bd"