var canvas = $("div.two div.a canvas")[0];
var renderer = new Vex.Flow.Renderer(canvas,
Vex.Flow.Renderer.Backends.CANVAS);
Take a look at the attached image above. For some odd reason, the canvas version is stretching out the music beyond the size of the canvas itself, and compressing the look of things. Weird.
Any ideas why this may be happening? The musical snippet should be familiar to anyone who has gone through the vexflow tutorial (as that's where I got it from).
I have a desire to fully harness vexflow for a responsive web app, so I have to start somewhere.
Also, another question...
In order to get this to render at all, with either canvas or svg, I had to alter a line of code found in the tutorial.
The original snippet opened with these lines:var canvas = $("div.two div.a canvas")[0];
var renderer = new Vex.Flow.Renderer(canvas,
Vex.Flow.Renderer.Backends.CANVAS);
That gave me a blank screen.... so I changed it to this:
var canvas = document.getElementById("score1")
var renderer = new Vex.Flow.Renderer(canvas,
Vex.Flow.Renderer.Backends.RAPHAEL);
--
--
You received this message because you are subscribed to the Google
Groups "vexflow" group.
To post to this group, send email to vex...@googlegroups.com
To unsubscribe from this group, send email to
vexflow+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/vexflow?hl=en
---
You received this message because you are subscribed to the Google Groups "vexflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vexflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Google
Groups "vexflow" group.
To post to this group, send email to vex...@googlegroups.com
To unsubscribe from this group, send email to
vexflow+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/vexflow?hl=en
---
You received this message because you are subscribed to the Google Groups "vexflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vexflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, Mohit Muthanna!
var canvas = $("div.two div.a canvas")[0];
var renderer = new Vex.Flow.Renderer(canvas,
Vex.Flow.Renderer.Backends.CANVAS);