Skip to content

Instantly share code, notes, and snippets.

James Halliday substack

Block or report user

Report or block substack

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.js
var master = new (webkitAudioContext || AudioContext)
var jsynth = require('jsynth')
var tune = require('tune')
var teoria = require('teoria')
var tones = []
var notes = ['first', 'second', 'third', 'fourth', 'fifth']
notes.map(function(i) {
var scale = teoria.note('a').scale('lydian')
var scaleNote = scale.get(i)
View beepstep.js
var baudio = require('baudio');
var player = require('plucky');
var b = baudio({ rate : 44100 });
var tau = 2 * Math.PI;
b.addChannel(function (t_) {
if (t_ >= 32 * 4) b.end();
var t = t_ % 0.5;
You can’t perform that action at this time.