Skip to content

Instantly share code, notes, and snippets.

@khoin
khoin / jams-dirtysynth.json
Created September 10, 2016 01:36
jams-dirty
[{"id":1,"type":"JAMSOutput","x":1414,"y":150,"inputs":[{"id":15,"index":0}],"params":[],"name":""},{"id":2,"type":"JAMSmidiNote","x":601,"y":187,"inputs":[],"params":[{"name":"mididata","type":"Array","value":{"0":128,"1":33,"2":64}},{"name":"channel","type":"number","value":1}],"name":""},{"id":4,"type":"JAMSSineGenerator","x":927,"y":262,"inputs":[{"id":9,"index":0},{"id":7,"index":0}],"params":[],"name":"sineosc"},{"id":5,"type":"JAMSSimpleDecay","x":839,"y":142,"inputs":[{"id":2,"index":0},{"id":6,"index":0}],"params":[],"name":"simpledecay"},{"id":6,"type":"JAMSNumber","x":723,"y":165,"inputs":[],"params":[{"name":"Value","type":"number","value":0.00001},{"name":"DragSensitivity","type":"number","value":5}],"name":"number"},{"id":7,"type":"JAMSMultiplier","x":1005,"y":179,"inputs":[{"id":5,"index":0},{"id":8,"index":0}],"params":[],"name":"multiplier"},{"id":8,"type":"JAMSSineGenerator","x":974,"y":101,"inputs":[{"id":10,"index":0}],"params":[],"name":"sineosc"},{"id":9,"type":"JAMSNote2Freq","x":758,"y

Keybase proof

I hereby claim:

  • I am khoin on github.
  • I am khoin (https://keybase.io/khoin) on keybase.
  • I have a public key whose fingerprint is 4B5A 9763 0F7B 2967 DF72 E29D 02FA C839 2632 7594

To claim this, I am signing this object:

@khoin
khoin / player.js
Created January 3, 2015 15:41
Here's a working HTML5 player.
/**
var data = [
{
src : "http://path/to/audio/play.mp3",
meta : {
artist: "Inexistence",
title: "UndeFINEd",
bpm: 120.0
}
},
@khoin
khoin / beat2.js
Created October 6, 2014 14:39 — forked from cheery/beat2.js
a moombah fork :)
var bpm = 124;
var tuning = 440;
var transpose = 12;
// constants
var tau = 2 * Math.PI;
// adjust tuning to bpm
tuning *= 120 / bpm;
@khoin
khoin / oct3-wvp
Created October 3, 2014 15:21
Some wavepot fiddling
function dsp(t) {
var si = 0.5 * sin(t, 880 * t%2);
var sq = sqr(t,445 + 10 * sin(t, 0.1) ) * (0.5 + si);
return 1*saw(t,sampleRate/(41 + 20 * sin(t, 0.01 )) ) * si + 0.3 * sq;
}
function saw(t,freq) {
return (0.5-((t*sampleRate)%freq)/freq)*1.5 ;
}
@khoin
khoin / gist:5c0ea68ddb167de99bdf
Created August 11, 2014 14:27
Wavepot - Afternoon Walk (refiddle)
/*!
*
* potasmic - afternoon walk (remix)
*
*/
var transpose = 2;
var bpm = 314; // Beats per minute
var spb = 60/bpm; // Second per beat
@khoin
khoin / dubstep.js
Last active August 29, 2015 14:04
Dubstep Dawn for Wavepot
/**
* potasmic - dubstep dawn
* (because all other wavepot loops' names are part of the day hehehe)
**/
var bpm = 148;
var tuning = 440;
var transpose = 0;
// constants
var tau = 2 * Math.PI;
@khoin
khoin / filtermadlibs
Created May 24, 2014 13:47
Filter for Madlibs (backend)
//Profanity Filtering
$profanities = array(
'cum','cumming','shit','fuck','ass','bitch','cunt','slut','sh!t','sh1t','fuk','b1tch','b!tch','fucking','fuking','fuckin','fukin','shitty','shitass','asshole','whore','rape','raped'
);
$schunks = array("");
function expand($item) {
global $schunks;
foreach(explode(" ",$item) as $i) {
array_push($schunks,$i);
}
@khoin
khoin / Audiotool Discovered APIs
Last active April 27, 2023 17:08
Audiotool has some undocumented APIs. Here is a list of it, in class you wanna build some kewl apps :>
Discovered Audiotool API URIs:
--Login: http://api.audiotool.com/users/login/
** Method : GET
** Parameters : username, password
** Return Type : XML
<session>
<key> ... </key>
<created> {Epoch} </created> <modified> {Epoch} </modified>
<user>