peterschussheim
8/25/2016 - 2:01 AM

Tiny Music

Tiny Music

import TinyMusic from 'tinymusic';
import ac from './ac.js'

// set the playback tempo (120 beats per minute)
var tempo = 120;

// create a new sequence
var sequence = new TinyMusic.Sequence( ac, tempo, [
  'g2 q',
  'E4 q',
  'C4 h'
]);

// disable looping
sequence.loop = true;

sequence
export default new AudioContext();

Tiny Music

This Gist was automatically created by Carbide, a free online programming environment.

You can view a live, interactive version of this Gist here.