VexFlow Sandbox

Experiment with VexFlow

HTML

<script src="https://npmcdn.com/vexflow/releases/vexflow-debug.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
<div id="score"></div>

JavaScript

var vf = new Vex.Flow.Factory({
  renderer: {
    selector: 'score',
    width: 800,
    height: 200
  }
});

var score = vf.EasyScore();
var system = vf.System();

var noteSequence = "F4, G4, A4, B4, C5, D5, E5, F5";

system.addStave({
  voices: [score.voice((score.notes(noteSequence)))]
});

vf.draw();