Skip to content

Instantly share code, notes, and snippets.

View millxing's full-sized avatar

Rob Schoen millxing

View GitHub Profile
@millxing
millxing / cerealgrid.m
Created June 5, 2019 13:45
simple matlab script to communicate with a monome grid usingf serial port functions
% get a list of devices connected to serial ports
% create a serial port object (s) -- on my computer it was the 6th device
a = seriallist;
s = serial(a{6});
s.Terminator = 'CR';
% open serial port object
fopen(s)
% FREAD: 3 bytes for the input buffer
music = require 'mark_eats/musicutil' -- super useful. Thanks Mark!
beatclock = require 'beatclock'
-- midi code
m1 = midi.connect(1)
m2 = midi.connect(2)
--[[
m1.event = function(data)
local d = midi.to_msg(data)
music = require 'mark_eats/musicutil' -- super useful. Thanks Mark!
beatclock = require 'beatclock'
-- midi code
m = midi.connect(1)
function init()
math.randomseed(os.time())
-- initalize variables
music = require 'mark_eats/musicutil' -- super useful. Thanks Mark!
beatclock = require 'beatclock'
-- midi code
m = midi.connect(1)
function init()
math.randomseed(os.time())
-- initalize variables
@millxing
millxing / ISOKB.lua
Last active December 12, 2022 21:16
ISOKB is a 2-channel MIDI keyboard for Norns and Grid. It uses an isomorphic "in key" note layout similar to Ableton Push.
-- ISOKB
--
-- 2-channel MIDI keyboard for Norns and Grid
-- Isomorphic "in key" note layout (similar to Ableton Push)
-- Select a tonic note and one of nine 7-note scales (default C Major)
-- Two independent keyboards, each sends MIDI to a different MIDI channel
-- Left hand notes go to MIDI 1
-- Right hand notes go to MIDI 2
-- There will be multiple buttons for each note and all buttons corresponding to a pressed note will light up
--
@millxing
millxing / quence01.lua
Last active February 8, 2020 18:49
This is the latest version (as of 11/4/2018) of QUENCE, a probabilistic MIDI sequencer for norns and grid (monome.org)
-- Q * U * E * N * C * E
--
-- a probababilistic
-- 4-track MIDI sequencer
-- for norns and grid
--
-- Rob Schoen
-- millxing at gmail
-- inspired by Turing Machine, Fugue Machine, and Physical (Norns Study #4)