How to set the position of any element? (for instance an accidental)
Speaking of the "new" plugin architecture, how can I set the position of an element? setting the element.pos.x
or element.pos.y
seems to have no effect. For instance:
var accidental = note.accidental();
var value = accidental.pos.x;
console.log(value);
accidental.pos.x = 1;
value = accidental.pos.x;
console.log(value);
I get exactly the same value before and after setting the "pos.x" property (and no error message)
The "pos" object itself seems to have no properties; at least none is listed by:
var pos = accidental.pos;
for(var key in pos)
console.log("" + key + ": " + pos[key]);
Any hint? Thanks,
M.