-
Hi, I try to find a way to set the the tempo (BPM) using the toolkit functions. Best guess so far is, I can somehow use the edit function: My best guess is, I can use it like this: toolkit.edit(`{"midi.bpm": 60}`); ( I tried different attribute names, with and without @ ... , also with attribute name data.MIDIBPM...) But the effect is, that my program just silently terminate on this line. From the documentation I am not able to find out, what I can exactly do with edit function Is it possible to somehow specify the tempo to be used? Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The You should edit your MEI data instead. |
Beta Was this translation helpful? Give feedback.
-
Thanks, that is working fine. <score xml:id="s1ge60ae">
<scoreDef xml:id="s181g2vw" midi.bpm="65"> |
Beta Was this translation helpful? Give feedback.
The
edit
function is experimental and broken in many aspect, so do not rely on it. I added a comment in the code, which will show up in the reference book in the next release.You should edit your MEI data instead.