Skip to content

Instantly share code, notes, and snippets.

@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

@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 / 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
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 / 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 / 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);
}
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 / 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
"""

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@hiorws
hiorws / OSC_C_01.rb
Created April 8, 2019 10:31 — forked from AlexandreRangel/OSC_C_01.rb
Controling Sonic Pi from Processing OSC
# reading OSC from Processing, Alexandre Enkerli
# full screen, fulltime mouse, Alexandre Rangel
# 24-Nov-2016
# Sonic Pi 2.11
use_bpm 120
set_sched_ahead_time! 0 # Setting that one to a negative value makes Sonic Pi complain, it sounds like.
live_loop :osc do # The loop is inside the fx as this is where the action will be.
osc=sync "/osc" # The OSC message which Processing sends, based on mouse coordinates.