Add Pedal to measure
Hi!
I'm trying to add a pedal element to a measure, but the application keeps crashing.
I created a Pedal element with var line = newElement(66);
I'm not sure where to go from there. The properties startElement and endElement are readonly.
I tried appending it to a measure (and also setting line.anchor = Element.MEASURE;
), but that also didn't work.
Are there any examples for adding pedals?