Skip to content

Instantly share code, notes, and snippets.

@infojunkie
Last active December 18, 2016 00:14
Show Gist options
  • Save infojunkie/e7843b812fe720b9e6025e55379d6b34 to your computer and use it in GitHub Desktop.
Save infojunkie/e7843b812fe720b9e6025e55379d6b34 to your computer and use it in GitHub Desktop.
VexFlow test #1
license: gpl-3.0
height: 300
<!DOCTYPE html>
<meta charset="utf-8">
<div id="boo"></div>
<script src="//npmcdn.com/vexflow/releases/vexflow-debug.js"></script>
<script>
const VF = Vex.Flow;
// Create an SVG renderer and attach it to the DIV element named "boo".
var vf = new VF.Factory({renderer: {selector: 'boo'}});
var score = vf.EasyScore();
var system = vf.System();
system.addStave({
voices: [score.voice(score.notes('C#5/q, B4, A4, G#4'))]
}).addClef('treble').addTimeSignature('4/4');
vf.draw();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment