Testing VexFlow publishing using Mike Bostock's Blocks system. https://bl.ocks.org/infojunkie/e7843b812fe720b9e6025e55379d6b34
Last active
December 18, 2016 00:14
-
-
Save infojunkie/e7843b812fe720b9e6025e55379d6b34 to your computer and use it in GitHub Desktop.
VexFlow test #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
license: gpl-3.0 | |
height: 300 |
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> | |
<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