Skip to content

Instantly share code, notes, and snippets.

View pixelpusher's full-sized avatar

pixelpusher pixelpusher

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<script src="http://snapsvg.io/assets/js/snap.svg-min.js"></script>
<script src="http://snapsvg.io/assets/js/prism.js"></script>
</head>
<body>
<div id="svg" width="400" height="400"></div>
@lvm
lvm / lazy-helpers.tidal
Last active March 23, 2016 18:19
Tidal lazy helpers
cps 1
-- for `espeak`
import System.Cmd
-- lazy helpers
let wf0 n = within(0, n)
sw f = sometimes(wf0 0.5 f)
sw' d h f = sometimes(within (d, h) f)
nm p = note $ toMIDI p
@lvm
lvm / interes-hau.tidal
Last active March 1, 2017 12:03
interestidal
cps 0.5
solo $
do
let runnow d p = do now <- getNow
d $ (nextSam now) ~> p
adsr = grp [attack_p, decay_p, sustain_p, release_p]
hctf = (# hcutoff "100")
sctf = (# cutoff (scale 400 1500 (slow 16 $ sine1)))
@Marzogh
Marzogh / arduino_serial.py
Last active January 25, 2023 16:32 — forked from ttmarek/arduino_serial.py
Python script to read serial data from the Arduino. Second file from (https://electronics.stackexchange.com/questions/54/saving-arduino-sensor-data-to-a-text-file)
import serial
import csv
import re
import matplotlib.pyplot as plt
import pandas as pd
portPath = "/dev/ttyACM0" # Must match value shown on Arduino IDE
baud = 115200 # Must match Arduino baud rate
timeout = 5 # Seconds
filename = "data.csv"