Old 05-25-2020, 03:45 AM   #1
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 1,071
Default JSFX+Lua scripts Set item pitch from JSFX MIDI input

Hi all,
2 scripts involved... you need both installed for this to function.
JSFX Midi note values are passed to the main lua script via gmem to set item pitch values.
The items slider in the jsfx corresponds to the selectd items in arrange page.

JSFX -- run the JSFX from any fx slot
Lua -- Ideally run the Lua script from a toolbar button to remember the terminate instance pop up as this uses defer, this way you can stop and start it easily. Thanks to nofish for the toolbar code
Scripts attached.
Will upload to ReaPack at some stage as I have a bundle of similar stuff to package up when completed.

J.

Note: I created a new thread for this in response to https://forum.cockos.com/showthread.php?t=236857 by Dragonetti
J Reverb is offline   Reply With Quote
Old 05-25-2020, 03:51 AM   #2
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,776
Default

What exactly is this supposed to be used for ?

I doubt that creating a kind of synth in this way will work reliably, as scripts are not handled as "realtime" in Reaper (but JSFXes are).

In such cases ReaPitch seems more appropriate.

-Michael
mschnell is offline   Reply With Quote
Old 05-25-2020, 03:59 AM   #3
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 1,071
Default

@mschnell
Thanks for your reply it's not supposed to be a synth of any sort.
It's a way to set selected items pitches to incoming midi notes.
https://forum.cockos.com/showthread....96#post2293496
J Reverb is offline   Reply With Quote
Old 05-25-2020, 08:41 AM   #4
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 974
Default

Thank you very much, that was a big help.
It works perfectly for me.
I use selected for #Notes in chord / items
always "1". I get mixed up with a higher number.
And the reasynth before that to check the pitch.

edit
Little thing:
When activating the lua script, data is sent to selected items. It would be better to send data only after the first midi entry.
if it's too complicated to change, it doesn't matter

Last edited by Dragonetti; 05-25-2020 at 09:19 AM.
Dragonetti is offline   Reply With Quote
Old 05-25-2020, 12:50 PM   #5
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 1,071
Default

Quote:
I use selected for #Notes in chord / items
always "1". I get mixed up with a higher number.
In your original post you have 4 items so if you set the slider to 4 then it will eat 4 midi notes to make the chord.
J Reverb is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.