Skip to content

Instantly share code, notes, and snippets.

View drart's full-sized avatar

Adam Tindale drart

View GitHub Profile
@drart
drart / oscreceiving.js
Last active August 28, 2019 21:13
OSC.js + Fluid Infusion working towards adding Flocking.js mappings
(function(){
fluid.defaults("adam.oscreceiver", {
gradeNames: "fluid.component",
oscPort: null,
listeners: {
onCreate: {
func: function(that){
that.options.oscPort.open();
console.log(that.options.oscPort);
<html>
<head>
<script src="lib/flocking/dist/flocking-all.js"></script>
<style>
body{
padding: 0;
margin: 0;
}
#meter{
box-sizing: border-box;
@drart
drart / mpeflockingexample.html
Created August 6, 2019 12:05
A demo of an MPE controller in Flocking.js
<html>
<head>
<script src="lib/flocking/dist/flocking-all.js"></script>
<style>
body{
padding: 0;
margin: 0;
}
#meter{
box-sizing: border-box;
@drart
drart / slide.html
Created December 23, 2017 00:48
First working version of SLIDE. Multiple audio tags have problems with staggered loading. Going to move to toggling the src attribute.
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>SLIDE - Adam Tindale</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/p5.min.js"></script>
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/addons/p5.sound.min.js"></script-->
<style>
html {
font-size: 10pt;
font-family:Georgia,Serif;
@drart
drart / flocking_isobel_nexus.html
Created November 26, 2017 03:01
Flocking panning example for the Iosbel speaker using the Pan2D object in Nexus.
<!DOCTYPE html>
<head>
<title>Nexus + Flocking</title>
<script src="../node_modules/nexusui/dist/NexusUI.js"></script>
<script src="../node_modules/flocking/dist/flocking-all.min.js"></script>
</head>
<body>
<div id="panner"></div>
@drart
drart / nexus_flocking.html
Created November 25, 2017 23:56
A quick demo with Flocking and Nexus to demo providing Flocking's audio context to Nexus for metering.
<!DOCTYPE html>
<head>
<title>Nexus + Flocking</title>
<script src="../node_modules/nexusui/dist/NexusUI.js"></script>
<script src="../node_modules/flocking/dist/flocking-all.min.js"></script>
</head>
<body>
<div id="meter"></div>
@drart
drart / feedly_export_saved_for_later.js
Last active November 22, 2017 18:41
Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string without JQuery or SSL
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// Inpired by :
// https://gist.github.com/bradcrawford/7288411
// https://gist.github.com/ShockwaveNN/a0baf2ca26d1711f10e2
// https://github.com/dotEsuS/Feedly-Export-Save4Later/blob/master/script
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
@drart
drart / deJonge-distortion-demo.js
Created October 17, 2017 17:41
Flocking.js demo for the deJonge distortion. Modulates the amount parameter.
var synth = flock.synth({
synthDef: {
ugen: "flock.ugen.distortion.deJonge",
amount: {
ugen: "flock.ugen.sin",
mul: 99,
add: 100,
freq: 0.1,
},
source: {
@drart
drart / stereo-distortion-phasing.js
Created October 17, 2017 17:40
Playing with offset distortions in Flocking.js
var synth = flock.synth({
synthDef: [{
ugen: "flock.ugen.distortion.deJonge",
amount: {
ugen: "flock.ugen.sin",
mul: 99,
add: 100,
freq: 0.1,
},
source: {
@drart
drart / flocking-dejonge-distortion-demo.js
Created October 15, 2017 22:40
Flocking DeJogne Distorion Demo (Frequency-modulated saw wave by ring-modulated square wave through modulated distortion)
var synth = flock.synth({
synthDef: {
ugen: "flock.ugen.distortion.tarrabiaDeJonge",
amount: {
ugen: "flock.ugen.sin",
rate: "control",
freq: 0.25
},
source: {
ugen: "flock.ugen.saw",