For example: A trumpet blast with velocity 120 becomes a wide, red banner. A soft piano note (velocity 20) becomes a thin, blue line.
const VF = VexFlow; const width = canvasElem.width; const ctx = canvasElem.getContext('2d'); ctx.clearRect(0, 0, width, 200); midi to thirty dollar website