Skip to content

Instantly share code, notes, and snippets.

@ffd8
ffd8 / p5live_osc_setup
Last active October 13, 2019 19:58
Processing sketch for P5LIVE osc_setup demo
/*
p5live_osc_setup // cc teddavis.org 2019
Requires offline nodejs/npm installation of P5LIVE
Requires oscP5 library
*/
int tc = 10, rate = 5;
int mx = 0, my = 0, px = 0, py = 0;
PGraphics pg;
@ffd8
ffd8 / mp3dir
Last active May 18, 2020 21:38
mp3dir - simple mp3 dir player for CLI
#!/bin/bash
# mp3dir
# cc teddavis.org 2020
# play dir of mp3's using afplay in MacOS terminal.
#
# install:
# `cd /usr/local/bin`
# `touch mp3dir`
# `open mp3dir`
@ffd8
ffd8 / index.html
Created November 15, 2023 22:01
Websockets - Processing websocket server, web browser client
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>websocket client</title>
<style>
body{
background:#000;
color:#fff;
font-size:100pt;