[JW Lua] JW Lua to change pitch wheel value

Undoaudio undoaudio at gmail.com
Tue Dec 10 11:38:34 CET 2019


Thanks for your help. This is getting me closer although I still can't get
it to work.

Actually I'm trying to write a pitch wheel value and not necessarily change
it (change only if there was a value written before running the script). So
I'm trying to set a certain value that either writes new pitch wheel data
or overrides the data that was there before.

Regards

ti 10. jouluk. 2019 klo 10.30 Chris (marcel.denio at gmail.com) kirjoitti:

> Hello Undoaudio
>
> Here is an idea that could serve you as a basis
>
> ---------------
> local musicregion = finale.FCMusicRegion()
> musicregion:SetCurrentSelection()
> if musicregion:IsEmpty() then return end
> local midiexpressions = finale.FCMidiExpressions()
> midiexpressions:LoadAllForRegion(musicregion)
>
> for me in each(midiexpressions) do
>     if me:IsPitchWheel() then
>         -- Do something with 'me' here
>     end
> end
> ---------------
>
> best regards
>
> Chris
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20191210/6f83b857/attachment.html>


More information about the JWLua mailing list