Old 04-17-2018, 10:59 AM   #1
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default How to convert MIDI messages

I am trying to simply convert sustain pedal'ed notes into durations for a MIDI item. Clean it up nicely.

Logic can do it.
Cubase too.

Sustain Pedal to Note Length functions exist in other DAWs but I can't find any way in Reaper to do it.

Is there no way currently to convert pedal to note durations in Reaper?
__________________
47.8% of statistics are made up.

Last edited by lowellben; 04-17-2018 at 12:16 PM.
lowellben is offline   Reply With Quote
Old 04-17-2018, 12:54 PM   #2
azslow3
Human being with feelings
 
Join Date: Nov 2017
Location: Heidelberg, Germany
Posts: 797
Default

The first link in Google has returned: https://forum.cockos.com/showpost.ph...23&postcount=8



PS. in practice Reaper can convenient do ANY MIDI manipulations someone can imagine, thanks to the powerful scripting engine and "Input FX" chain.
azslow3 is offline   Reply With Quote
Old 04-17-2018, 01:08 PM   #3
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by azslow3 View Post
The first link in Google has returned: https://forum.cockos.com/showpost.ph...23&postcount=8



PS. in practice Reaper can convenient do ANY MIDI manipulations someone can imagine, thanks to the powerful scripting engine and "Input FX" chain.
I've tried that script.
I have used it as a Item FX. But it does not work.

I tried glue and render to new.

Can you please tell me how to use it? I have the JSFX installed fine it just won't do anything to my MIDI item.

Thank you.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-17-2018, 03:37 PM   #4
azslow3
Human being with feelings
 
Join Date: Nov 2017
Location: Heidelberg, Germany
Posts: 797
Default

Have you configured it correctly? I mean MIDI channel and Controller? It is really working (have you copied it correctly)?

I have just checked that it works all possible ways (as Item FX, Input FX, normal FX) and prolongs all notes till sustain is released.
azslow3 is offline   Reply With Quote
Old 04-17-2018, 03:49 PM   #5
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by azslow3 View Post
Have you configured it correctly? I mean MIDI channel and Controller? It is really working (have you copied it correctly)?

I have just checked that it works all possible ways (as Item FX, Input FX, normal FX) and prolongs all notes till sustain is released.
As the other thread says, I also want to convert sustain pedal to actual new duration NOTES in the midi item.

Others say it works. I cannot get it to work.

I would like to take a MIDI item and apply this FX to it and convert sustain pedal messages to new duration-notes in said item.

Please advise. Thank you kindly.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-17-2018, 11:55 PM   #6
azslow3
Human being with feelings
 
Join Date: Nov 2017
Location: Heidelberg, Germany
Posts: 797
Default

Quote:
Originally Posted by lowellben View Post
I would like to take a MIDI item and apply this FX to it and convert sustain pedal messages to new duration-notes in said item.
Yes, that is how this script works (when it works).

So the only question is why it does not work for you.

I propose you check/set one more time:
1) check that all Notes are on MIDI channel 1 and sustain is really sustain (CC 64) and also on MIDI channel 1 (easy in the event view of MIDI editor)
2) check that MIDI channel 1 and CC 64 are selected in the script options
3) may be re-create the script copy/pasting into some programmers editor (like Notepad++)

There can be no magic here...
azslow3 is offline   Reply With Quote
Old 04-18-2018, 03:27 AM   #7
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by azslow3 View Post
Yes, that is how this script works (when it works).

So the only question is why it does not work for you.

I propose you check/set one more time:
1) check that all Notes are on MIDI channel 1 and sustain is really sustain (CC 64) and also on MIDI channel 1 (easy in the event view of MIDI editor)
2) check that MIDI channel 1 and CC 64 are selected in the script options
3) may be re-create the script copy/pasting into some programmers editor (like Notepad++)

There can be no magic here...
Thanks for your help, but I can assure you.

Yes, the MIDI information is only on Channel 1, and the JSFX plugin sustain is configured correctly. I just inserted it as you always do.

It just doesn't work. I've used the plugin as both insert and item FX.

Can you show me how it's working for you? Do you have a project you can share with a simple example? Or a video licecap?

Thank you.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-18-2018, 04:16 AM   #8
LugNut
Human being with feelings
 
Join Date: Jun 2013
Location: So Florida
Posts: 1,427
Default

Hi,
Sorry don't have time for a lice cap but I just used it 2 days ago. Worked fine. As item fx, then glued. Are you sure these are normal cc64 events? Not hold 2?
LugNut is online now   Reply With Quote
Old 04-18-2018, 05:04 AM   #9
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by LugNut View Post
Hi,
Sorry don't have time for a lice cap but I just used it 2 days ago. Worked fine. As item fx, then glued. Are you sure these are normal cc64 events? Not hold 2?
What does that mean, hold 2?

I recorded a simple MIDI keyboard passage, using a MIDI sustain pedal for CC64.
The lane data is correct.
The channels are correct.

I applied the item fx to MIDI item after I stopped recording.
Then hit glue.

No durations in MIDI editor changed at all.

Are you doing it live or just on any MIDI item after?
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-18-2018, 08:53 AM   #10
azslow3
Human being with feelings
 
Join Date: Nov 2017
Location: Heidelberg, Germany
Posts: 797
Default

I guess that does not help you, but since you have asked...


In the FX window, press "Edit..." button. Start play.
Do you see any errors in the status bar of JS editor?
azslow3 is offline   Reply With Quote
Old 04-18-2018, 10:12 AM   #11
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by azslow3 View Post
I guess that does not help you, but since you have asked...


In the FX window, press "Edit..." button. Start play.
Do you see any errors in the status bar of JS editor?
Wow, that shows exactly what I want to have happen, yet no change for me in my MIDI item. Will check the JS edit errors now. Thank you so much for all this.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-18-2018, 10:18 AM   #12
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Son of a gun. There was an error, somehow there was a funky character in the script.

But I just downloaded it so I can't believe that could have happened.

But it's working now. Thank you. Big, big thank you.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-18-2018, 01:12 PM   #13
azslow3
Human being with feelings
 
Join Date: Nov 2017
Location: Heidelberg, Germany
Posts: 797
Default

Quote:
Originally Posted by lowellben View Post
Son of a gun. There was an error, somehow there was a funky character in the script.

But I just downloaded it so I can't believe that could have happened.

But it's working now. Thank you. Big, big thank you.
I am glad you have got it working.

Note there is a separate board with many interesting tools: https://forums.cockos.com/forumdisplay.php?f=3
azslow3 is offline   Reply With Quote
Old 04-20-2018, 04:01 PM   #14
snooks
Banned
 
Join Date: Sep 2015
Posts: 1,650
Default

In case you're interested, I've rustled up a script to do this, you can use it from the MIDI editor or the arrange view on multiple selected items (active, MIDI takes) at the same time. It's attached here...
Attached Files
File Type: lua sustain-to-note-length.lua (8.5 KB, 106 views)
snooks is offline   Reply With Quote
Old 04-21-2018, 05:58 AM   #15
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by snooks View Post
In case you're interested, I've rustled up a script to do this, you can use it from the MIDI editor or the arrange view on multiple selected items (active, MIDI takes) at the same time. It's attached here...
Thank you kindly. I will try it now!
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-21-2018, 08:30 AM   #16
LugNut
Human being with feelings
 
Join Date: Jun 2013
Location: So Florida
Posts: 1,427
Default

Hi,
Glad you got it sorted. Hold 2 is that third pedal on an acoustic piano. Ofc in midi spec terms.

And thank you snooks, it looks to be an improvement as far as one fx for multiple items and use from midi editor. Grazie mille!
LugNut is online now   Reply With Quote
Old 04-24-2018, 08:56 AM   #17
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by snooks View Post
In case you're interested, I've rustled up a script to do this, you can use it from the MIDI editor or the arrange view on multiple selected items (active, MIDI takes) at the same time. It's attached here...
This script is not working for me. Like, at all.

Can you tell me how to use it correctly?

The other way worked fine but your lua does nothing. I've selected items in the arrange view even too and tried it. CC64 data disappears from CC lane, yes. But no note durations are changed. It just removes CC64 values.

Help?
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 04-25-2018, 05:43 PM   #18
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

any ideas?
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 05-21-2018, 04:05 AM   #19
Mike Bell
Human being with feelings
 
Join Date: May 2018
Posts: 2
Default

Quote:
Originally Posted by azslow3 View Post
Yes, that is how this script works (when it works).

So the only question is why it does not work for you.

I propose you check/set one more time:
1) check that all Notes are on MIDI channel 1 and sustain is really sustain (CC 64) and also on MIDI channel 1 (easy in the event view of MIDI editor)
2) check that MIDI channel 1 and CC 64 are selected in the script options
3) may be re-create the script copy/pasting into some programmers editor (like Notepad++)

There can be no magic here...
It really worked for me. Many thanks
Mike Bell 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 06:33 AM.


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