This file contains hidden or 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
| // 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; |
This file contains hidden or 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
| ''' | |
| 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 |
NewerOlder