Skip to content

Instantly share code, notes, and snippets.

View RFullum's full-sized avatar

Robert Fullum RFullum

View GitHub Profile
@RFullum
RFullum / controllerInterface.pde
Last active July 6, 2020 19:06
Touchscreen XY Controller over Serial/Bluetooth: Processing Sketch (Raspberry Pi)
// Processing 3 sketch: Used on Raspberry Pi with 7" touchscreen.
// Touchscreen tracks XY position of finger and sends as serial data over
// bluetooth. That data is received by MaxMSP patch and used to control
// cutoff frequency and resonance of audio filters, real time.
import processing.serial.*;
Serial port;
int val = 0;
int valueScale = 128;
@RFullum
RFullum / MIDINoteToColorOctaveConverter.py
Last active August 19, 2023 12:31
MIDI Note to Color Octave Converter
'''
opens midi connection
takes midi notes from source (for example, your DAW)
finds the octaves of those notes beyond the range of human hearing until octave of note is within visible light range
converts frequency of the color octave to wavelength
approximates RGB value for color of note
displays color of note in window
'''
import rtmidi