<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Jari,<br>
<br>
after experimenting a little bit, I found out that it's probably<br>
the FCTempoElements:LoadAll() that may be buggy.<br>
<br>
While the following code gives tempoelements.Count==0<br>
<br>
local tempoelements=finale.FCTempoElements()<br>
tempoelements:LoadAll() --loading all measures<br>
print(tempoelements.Count)<br>
<br>
this code works fine:<br>
<br>
local tempoelements=finale.FCTempoElements()<br>
tempoelements:LoadAllForItem(1) --loading measure 1 only<br>
print(tempoelements.Count)<br>
<br>
So if do a loop on all measures I get the same results<br>
with LoadAllForItem as I would expect with LoadAll.<br>
Problem solved: reading the MIDI tempo graph is possible,<br>
but currently only with LoadAllForItem. <br>
<br>
Best regards,<br>
Jan<br>
<br>
<br>
Am 20.11.2014 14:40, schrieb Jan Angermüller:<br>
</div>
<blockquote cite="mid:546DEF4E.6060806@angermueller.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Jari,<br>
<br>
how can I read the output of the MIDI tempo graph<br>
(i.e. what Finale shows me when I select "MIDI Tool / Edit
Tempo"<br>
in the attached screen shot) ?<br>
<br>
Is this the FCTempoElement class ? But that one tells me in the
example above:<br>
FCTempoElements.Count = 0<br>
Then I thought it may be the FCMidiExpression class, but that<br>
one doesn't hold tempo elements either.<br>
<br>
Or is this feature not implemented yet ?<br>
<br>
Reading this tempo graph will probably be the only way to<br>
get a good elapsed time approximation.<br>
I think it's not possible (or extremely difficult) to get good
results by <br>
evaluating at the same time:<br>
- text expressions<br>
- shape expressions <br>
- MIDI expressions<br>
- HP tempo variations<br>
- Elements from the tempo tool<br>
<br>
BTW, as there is this an "Apply Human Playback" plugin which may
be<br>
required here before calling my lua script:<br>
is this function ("apply human playback") also available through
the PDK ?<br>
So that I don't have to call it manually before calling the Lua
script.<br>
<br>
Jan<br>
<br>
<br>
Am 12.11.2014 09:07, schrieb Jari Williamsson:<br>
</div>
<blockquote cite="mid:54631528.2060505@mailbox.swipnet.se"
type="cite">Jan, <br>
<br>
The PDK doesn't provide any such feature. You have to load the
initial tempo in FCPlaybackPrefs, and then browse the
expressions and FCTempoElement(s) separately. <br>
<br>
<br>
Best regards, <br>
<br>
Jari Williamsson <br>
<br>
<br>
On 2014-11-08 17:18, Jan Angermüller wrote: <br>
<blockquote type="cite">Jari, <br>
<br>
does the FInale PDK offer a CheckElapsedTime function <br>
to calculate the playback duration of a certain measure or <br>
the duration of the piece until measure x ? <br>
<br>
Best regards, <br>
Jan <br>
<br>
_______________________________________________ <br>
JWLua mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a> <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
<br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
_______________________________________________ <br>
JWLua mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a> <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
<br>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.angermueller.com">www.angermueller.com</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
</body>
</html>