If I do a new artist.render(renderer); I get a new tabstave on the page. Is there a way to replace the one that it already there or to clear the signature and notes from the existing stave and reuse it? I want to replace the existing signature and chord shown with a new signature and chord.--
--
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.
It seems to work the same with or without the resets:
function render(string) {
try {
// vextab.reset();
// artist.reset();
vextab.parse(string);
artist.render(renderer);
} catch (e) {
console.log(e);
$("#error").html(e.message.replace(/[\n]/g, '<br/>'));
}