Add Pedal to measure

• Jul 26, 2019 - 14:50

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?

Do you still have an unanswered question? Please log in first to post your question.