This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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) |