Skip to content

Instantly share code, notes, and snippets.

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@hiorws
hiorws / genetic_algo_find_circle.pyde
Created April 11, 2019 10:07 — forked from bened-h/genetic_algo_find_circle.pyde
Simple "genetic" algorithm for Processing (Python mode) showing a random point polpulation evolving to become a circle
"""
This demonstration evolves a random point
population (parent) to order its points into a
circular arrangement (target).
The fitness is computed by measuring each point's
distance to its destination.
Read an introduction to genetic algorithms with python here:
https://www.codeproject.com/articles/1104747/introduction-to-genetic-algorithms-with-python-hel
"""
urls:
http://mubert.com/
http://demo.mubert.com/
http://play.mubert.com/
http://play.mubert.com/pro/
http://play.mubert.com/en/
IDK (Chillstep?)
http://mubert.com:49994/
@hiorws
hiorws / PWindow.pde
Created June 18, 2019 12:04 — forked from atduskgreg/PWindow.pde
Example of creating a Processing sketch with multiple windows (works in Processing 3.0)
class PWindow extends PApplet {
PWindow() {
super();
PApplet.runSketch(new String[] {this.getClass().getSimpleName()}, this);
}
void settings() {
size(500, 200);
}
@hiorws
hiorws / highres.pde
Created August 3, 2019 10:54 — forked from mvanga/highres.pde
A skeleton Processing sketch that allows for exporting high-resolution versions of whatever is on screen.
import processing.pdf.*;
/*
* A complete tutorial can be found over at:
* http://sighack.com/post/exporting-high-resolution-images-in-processing
*/
int seed;
int CONFIG_SCALE_FACTOR = 5;
@hiorws
hiorws / index.html
Created August 18, 2019 15:18 — forked from KentaYamada/index.html
Python Flask + JavaScript XMLHttpRequest
<!DOCTYPE html>
<html>
<head>
<title>Practice AJAX</title>
<script type="text/javascript">
function do_ajax() {
var req = new XMLHttpRequest();
var result = document.getElementById('result');
req.onreadystatechange = function()
{
@hiorws
hiorws / PrintTemplate.pde
Created August 19, 2019 10:28
Processing High Resolution Output Generator Template
import processing.pdf.*;
/*
* Processing High Resolution Output Generator Template
* Taken from:
* http://sighack.com/post/exporting-high-resolution-images-in-processing
* Thanks to: @sighack
*/
int seed;
@hiorws
hiorws / index.html
Last active August 21, 2019 00:03
p5.js empty template
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>p5.js example</title>
<style> body {padding: 0; margin: 0;} </style>
<script src="p5.min.js"></script>
<!-- <script src="../addons/p5.dom.min.js"></script> -->
<!-- <script src="../addons/p5.sound.min.js"></script> -->
@hiorws
hiorws / README.md
Created October 2, 2019 17:21 — forked from HarryUPf/README.md
Raspberry Pi SunVox Headless Synth (in 10 easy steps)

Raspberry Pi SunVox Headless Synth Setup (in 10-easy-steps)

INSTRUCTIONS

STEP_01

STEP_02

  • write the extracted .img to sdcard with Etcher

STEP_03

#Program to drive Sonic Pi 3 visualiser written in "processing"
#by Robin Newman, September 2017
#see article at https://rbnrpi.wordpress.com
#set up OSC address of processing sketch
use_osc '127.0.0.1',5000
#select shapes to show
osc "/viz/shapes","e" #"s" "e" "r" Star,Ellipse, Rectangle or combination
sleep 0.1
live_loop :c do