- Adafruit PiOLED - 128x32 Monochrome OLED for Raspberry Pi (or similar)
- Python3, a general purpose, high-level programming language:
sudo apt-get install python3
sudo apt-get install python3| #!/usr/bin/env python3 | |
| # display IP Address on OLED Display | |
| # by Casey Anderson | |
| # Based on stats.py by Tony DiCola & James DeVito | |
| import time | |
| import subprocess | |
| import Adafruit_SSD1306 |
| #!/bin/sh | |
| # simple video looper | |
| # Casey Anderson, 2018 | |
| # $1 is filepath to the video | |
| # $2 sets sound: null for silent, hdmi for hdmi output, usb for alsa (usb audio adapter, assumes stereo) | |
| # example: ./videolooper.sh /home/pi/nyan_cat.mp4 usb |
| #!/usr/bin/python3 | |
| ''' | |
| simple countdown timer in python | |
| TO RUN: python simple_timer.py -h 1 -m 23 45 | |
| sourced from https://codereview.stackexchange.com/questions/199743/countdown-timer-in-python | |
| ''' |
| // setup buffer and busses | |
| ( | |
| var thePath, bufList; | |
| thePath = "/Users/cta/Desktop/haiti_baptism.wav"; | |
| ~buffer = Buffer.readChannel(s, thePath, channels: 0 ); // this is a hack to eliminate accidental stereo buffers | |
| ~vol = Bus.control(s, 1).set(0.0); | |
| ~dur = Bus.control(s, 1).set(1); |
| DummyMIDI { | |
| var dummy = 0; | |
| *new { | |
| ^super.newCopyArgs(); | |
| } | |
| noteOn {} | |
| noteOff {} | |
| control {} |
| /* | |
| midi controls gui | |
| written for midifighter twister | |
| HT Scott Cazan for line 40 | |
| */ | |
| s.boot; | |
| MIDIIn.connectAll; |
| // route + mix | |
| s.options.memSize = 2097152; | |
| s.options.numInputBusChannels = 8; | |
| s.options.numOutputBusChannels = 8; | |
| s.boot; |