This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fluid.defaults("bncfi.bufferLoader", { | |
gradeNames: "flock.bufferLoader", | |
sounds: ['MaxV - Conga Hi.wav', 'MaxV - Conga Lo.wav', 'MaxV - Conga Mi.wav', | |
'MaxV - Tom Hi.wav', 'MaxV - Tom Lo.wav', 'MaxV - Tom Mi.wav', 'MaxV - Kick2.wav', 'MaxV - Kick1.wav'] | |
bufferDefs: { | |
expander: { | |
funcName: "bncfi.bufferLoader.mapSoundFileURLs", | |
args: ["{that}.options.sounds)"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var incomingUDPPort = new osc.UDPPort({...}); | |
var outgoingUDPPortToSuperCollider = new osc.UDPPort({...}); | |
wss.on("connection", function (socket) { | |
console.log("A Web Socket connection has been established!"); | |
var socketPort = new osc.WebSocketPort({ | |
socket: socket | |
}); | |
// Whenever we get an incoming OSC message, forward it on to SuperCollider and the Web Socket. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From https://github.com/colinbdclark/phet-osc-bridge | |
/* | |
* PhET-OSC Bridge OSC Port | |
* http://github.com/fluid-studios/phet-osc-bridge | |
* | |
* Copyright 2017, OCAD University | |
* Licensed under the New BSD license. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="node_modules/flocking/dist/flocking-all.js"></script> | |
<script src="seaboard-block-instrument.js"></script> | |
<script src="mpe-voice.js"></script> | |
<script src="mpe-synth.js"></script> | |
<style> | |
body { | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>AudioContext Clock Example</title> | |
<style> | |
#blinky { | |
width: 2em; | |
height: 2em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="node_modules/infusion/dist/infusion-all.js"></script> | |
<script src="test.js"></script> | |
<style> | |
.model-updates { | |
font-family: monospace; | |
} | |
.old { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fluid.defaults("adam.noiseSynth", { | |
gradeNames: "flock.synth", | |
freq: 300, | |
synthDef: { | |
ugen: "flock.ugen.sum", | |
sources: { | |
ugen: "flock.ugen.filter.biquad.bp", | |
freq: "{that}.options.freq", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fluid.defaults("adam.bandednoise", | |
gradeNames: "flock.synth", | |
numBands: 10, | |
bandFreqMul: 100, | |
noizDefTemplate: { | |
ugen: "flock.ugen.filter.biquad.bp", | |
freq: 300, | |
q: 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Multichannel USB Audio Interfaces Only Report Two Output Channels on macOS</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
text-align: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flock.synth({ | |
synthDef: [ | |
{ | |
ugen: "flock.ugen.out", | |
bus: 4, | |
expand: 1, | |
sources: [ | |
{ | |
ugen: "flock.ugen.sinOsc", | |
freq: 60, |
NewerOlder