Hi, Nic very useful script for tuning pitchebnd but I am thinking if is possible to get notes from pitchbend messiges like works steeped option in midi pickup.
I FOUND FORMULA ON LOGICPRO X FORUM - user Audiogrocery:
www.logicprohelp.com/forum/viewtopic.php?t=79993-----
I have developed a formula some time ago - you can try it:
14-bit Formula (the 14-bit value is shown as Lenth/Info in the Event List or in the Event float)
8192 : PB range x Transp value =
Where 8192 is half way PB ranging,
PB range is the custom range amount you set in the synth,
Transp value is the amount (in cents) 1, 2 , 3 etc or cents & semi 1.5, 2.4 etc
Example: To bend up use the formula result with "+" values ! To bend down use the formula result with "-" values!
8-bit Formula
To bend down 64 - (64 : PB range x Transp value)=
or
To bend up 64 + (64 : PB range x Transp value)=
Where 64 is half way ranging,
PB range is the custom range amount you set in the synth,
Transp value is the amount (in cents) 1, 2 , 3 etc or cents & semi 1.5, 2.4 etc
Examples:
In example 1 below I show your scenario.
Example 1
Conditions
PB range = 24
Target Transposition = - 4 cents
--------------------------------------------------
8192 : 24 x 4 = 1365.3 (close it to1365, regarding the 0.5 mid factor)
So you have to draw - 1365.3 in the Event list (length) column.
or
64 - (64 : 5 x 4) =53.4 (closed it to 53, regarding the 0.5 mid factor).
So you have to draw - 53 in the Hyper draw or event list (val) column.
=============================
Example 2. This example is more complicated cause I have set the synth bender range to 5 !
Conditions
PB range = 5
Target Transposition = 4 cents
--------------------------------------------------
8192 : 5 x 4 = 6553.6 (close it to 6554, regarding the 0.5 mid factor)
or
to bend down
64 - (64 : 5 x 4) =12.8 (closed to 13, regarding the 0.5 mid factor).
============================
Example 3. This is the most complicated cause I have set the synth bender range to 5 and I want to calculate some Semi value to use as Ethnic scale note for instance !
Conditions
PB range = 7
Target Semi Transposition = 1.5 cents (here I want to set some Arabic scale note where I need to bend down the second note of the scale with 0.5...
--------------------------------------------------
8192 : 7 x 1.5 = 1755.42 (close it to 1755, regarding the 0.5 mid factor)
or
64 + (64 : 7 x 1.5) =77.7 (closed to 78, regarding the 0.5 mid factor).
------
So If I understand formula I need this:
PB RANGE:12 and that stays Transposition somehow or "little add" that I can change in code if need.