[JW Lua] JW Lua to change pitch wheel value

Undoaudio undoaudio at gmail.com
Wed Dec 11 22:18:00 CET 2019


Okay, this is getting me quite close! The only thing I think is missing
from what I need is the possibility to write/change the pitch wheel data
for the selected region only, not necessarily for whole measures.
Sometimes I need to bend eg. one 16th note a 1/3 tone down and the next one
a quarter tone up. I tried to figure this out but didn't get it to work. If
you can steer me in the right direction I'd be most grateful. Actually I
already am.

Thanks so much!

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

> This script creates a pitch wheel event for each measure in the selection
> (it's just to show you how to create an event)
>
> ------------
> local musicregion = finale.FCMusicRegion()
> musicregion:SetCurrentSelection()
> if musicregion:IsEmpty() then return end
>
> for m, s in eachcell(musicregion) do
>     -- 'm' is the measure number, 's' is the staff number/ID
>     local cell = finale.FCCell(m, s)
>     local me = finale.FCMidiExpression()
>     me:ConnectCell(cell)
>     me:SetUsePitchWheel()
>     me.PitchWheelValue = 1000
>     me:SaveNew()
> end
> ------------
>
> 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/20191211/cd5ab8c9/attachment.html>


More information about the JWLua mailing list