Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 02-20-2019, 10:27 AM   #1
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default Convert CC lane data to envelope lane data and vice versa

We need this.

Sometimes you start because drawing it into CC data is so much easier to make shapes in. Then you want to convert it to an envelop lane data to affect other items with the same curves or the same item with other effects.

Likewise, you may have some envelope lane data that you want to put on a midi item.

I am aware of the Reacontrol Midi workaround but it's a workaround.

I'm asking for a single button to move the same data inside a midi item to track envelope or media item envelope.

This data should be able to be moved between midi item, to track envelope, to media item envelope in any order.
Swi is offline   Reply With Quote
Old 02-20-2019, 01:07 PM   #2
EvilDragon
Human being with feelings
 
EvilDragon's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 24,790
Default

This exists in SWS (actions work both for track and media item envs):

(Main context)
SWS/BR: Convert selected envelope's curve in time selection to CC events in last clicked CC lane in last active MIDI editor
SWS/BR: Convert selected envelope's curve in time selection to CC events in last clicked CC lane in last active MIDI editor (clear existing events)
SWS/BR: Convert selected points in selected envelope to CC events in last clicked CC lane in last active MIDI editor
SWS/BR: Convert selected points in selected envelope to CC events in last clicked CC lane in last active MIDI editor (clear existing events)

(MIDI editor context)
SWS/BR: Convert selected CC events in active item to linear envelope points in selected envelope
SWS/BR: Convert selected CC events in active item to linear envelope points in selected envelope (clear existing envelope points)
SWS/BR: Convert selected CC events in active item to square envelope points in selected envelope
SWS/BR: Convert selected CC events in active item to square envelope points in selected envelope (clear existing envelope points)
EvilDragon is offline   Reply With Quote
Old 02-20-2019, 11:19 PM   #3
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default Thank you Evil Dragon!

Thanks for this.
both of the actions that move or copy envelope data to CC lane data work.

However the commands from the midi editor CC lane to the envelope lane Shown below

SWS/BR: Convert selected CC events in active item to linear envelope points in selected envelope
SWS/BR: Convert selected CC events in active item to linear envelope points in selected envelope (clear existing envelope points)
SWS/BR: Convert selected CC events in active item to square envelope points in selected envelope
SWS/BR: Convert selected CC events in active item to square envelope points in selected envelope (clear existing envelope points)

Just create a bunch of envelope points at the very top of the range and do not reflect the shape that is in the CC lane.

I'm using 9.57 Pre 2 and the latest SWS.

Do these work for you?
Swi is offline   Reply With Quote
Old 02-20-2019, 11:47 PM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Quote:
Originally Posted by Swi View Post
Just create a bunch of envelope points at the very top of the range and do not reflect the shape that is in the CC lane.

[...] and the latest SWS.
Is it the volume envelope with fader scaling mode enabled? https://forum.cockos.com/showthread.php?p=2094872
cfillion is offline   Reply With Quote
Old 02-21-2019, 05:13 PM   #5
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default

I get the same result when set to Amplitude scaling or Volume fader Scaling and when the "Warning" box is checked and unchecked.
Swi is offline   Reply With Quote
Old 02-21-2019, 05:19 PM   #6
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default fixed thank you

You were right cfillion.
I found
Script: X-Raym_Toggle envelope fader scaling.lua
and it works this way.
I will make it a custom action thank you!
Once again...
Swi is offline   Reply With Quote
Old 02-21-2019, 08:45 PM   #7
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

You can also use the fixed SWS build I've linked above. (It repairs SWS actions dealing with fader scaled envelopes adding points at max value. Sorry for that bug.)

Last edited by cfillion; 02-22-2019 at 03:42 AM.
cfillion is offline   Reply With Quote
Old 02-21-2019, 09:37 PM   #8
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default fader scaling

I don't really understand what is happening with fader scaling. There is a strange behavior when crossing the center line which creates issues for editing. And it seems I have to leave a single bit of cc data in the midi item at max volume to get the same results.

This also turns this into a two or three step process which is less desirable.

The result I was hoping to create would remove the cc data from the midi item and place it in the envelope lane of the same cc value. Even if it had to insert an instance of reacontrol MIDI it would be functional.

Ideally, I could switch these back and forth from the arrange view with a single command and not have to change the scaling of the envelope lane.

I'm going to try to avoid having to use this until I understand what and why this is happening.
Swi is offline   Reply With Quote
Old 02-22-2019, 12:53 AM   #9
EvilDragon
Human being with feelings
 
EvilDragon's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 24,790
Default

Some info about fader scaling:

https://forums.cockos.com/showpost.p...3&postcount=24
EvilDragon is offline   Reply With Quote
Old 02-22-2019, 02:19 AM   #10
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default

Thank you both.
I am fuzzy on where to put the
reaper_sws64.dll file.
Do I need the DYLIB file?
Thank you thank you.


Never mind I found it. Tested it and fixed many thanks again.

Last edited by Swi; 02-22-2019 at 02:23 AM. Reason: Figured it out...
Swi is offline   Reply With Quote
Old 02-22-2019, 02:31 AM   #11
Swi
Human being with feelings
 
Join Date: Apr 2018
Posts: 358
Default

WOW thank you
Swi is offline   Reply With Quote
Old 03-22-2019, 10:28 PM   #12
Beastmode Beats
Human being with feelings
 
Join Date: May 2017
Posts: 236
Default

THIS IS AMAZING THANK YOU ALL!
Beastmode Beats is offline   Reply With Quote
Old 05-05-2020, 01:58 PM   #13
jonch070
Human being with feelings
 
Join Date: Feb 2017
Posts: 2
Default

Quote:
Originally Posted by Swi View Post
Thank you both.
I am fuzzy on where to put the
reaper_sws64.dll file.
Do I need the DYLIB file?
Thank you thank you.


Never mind I found it. Tested it and fixed many thanks again.
Hey! do you still have that file and instructions on where to put it?
jonch070 is offline   Reply With Quote
Old 05-05-2020, 02:04 PM   #14
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Quote:
Originally Posted by jonch070 View Post
Hey! do you still have that file and instructions on where to put it?
The fix has landed in a release since then. The latest version of SWS is available at https://www.sws-extension.org/download/pre-release/.

Last edited by cfillion; 05-05-2020 at 02:10 PM.
cfillion is offline   Reply With Quote
Old 05-05-2020, 02:28 PM   #15
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

You might want to check out ReaPack -> Slider and Midi CC. (Same can write envelopes from Midi events and create midi CC events from envelopes)

-Michael

Last edited by mschnell; 05-06-2020 at 03:00 AM.
mschnell is offline   Reply With Quote
Old 06-02-2020, 11:20 AM   #16
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Quote:
Originally Posted by mschnell View Post
You might want to check out ReaPack -> Slider and Midi CC. (Same can write envelopes from Midi events and create midi CC events from envelopes)

-Michael
Hi. How we do to achieve this (from MIDI CC to envelope line) ?

I have installed "Slider and Midi CC" but I can't see him.

Quote:
Originally Posted by mschnell View Post
SWS/BR: Convert selected CC events in active item to linear envelope points in selected envelope
When there are lots of CC to converter and lots of midi item, it can be very long and very boring... There is not a better plan ?

Last edited by ovnis; 06-02-2020 at 12:16 PM.
ovnis is offline   Reply With Quote
Old 06-02-2020, 02:15 PM   #17
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

Quote:
Originally Posted by ovnis View Post
Hi. How we do to achieve this (from MIDI CC to envelope line) ?
I have installed "Slider and Midi CC" but I can't see him.
I don't really understand.

If you have Slider and Midi CC in a track you can attach an envelope to the "Value" slider in the normal Reaper way.

By that you can e.g. move the slider and record the envelop, or play back the envelope and have the slider moved.

Any movement of the slider (by automation or manually) results in sending out appropriate Midi CC messages.

On top of this the plugin can receive CC messages which results in moving the slider, and that movement can be recorded in the envelope.

-Michael

Last edited by mschnell; 06-03-2020 at 07:00 AM.
mschnell is offline   Reply With Quote
Old 06-02-2020, 03:50 PM   #18
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Quote:
Originally Posted by mschnell View Post
I don't really understand.

If you have Slider and Midi CC om a track you can attach an envelope to tzhe "Vanue" slide in the normal Reaper way.

By that you can e.g. move the slider and record the envelop, or ply back the envelope and have the slider moved.

Any movement of the slider (by automation or manually) results in sending out appropriate Midi CC messages.

On top of this the plugin can receive CC messages which results in moving the slider, and that movement can be recorded in the envelope.

-Michael
It's a little bit like reaControlMIDI ?
On Slider and Midi CC, I can't find the pitchbend. Do you know where I can find it ?

When I move the slide, I can modify the Mod value inside the synth, but when I use "CC to slider" and I push the play button, the slide doesn't move (there is Mod data inside the CC which is played).

With reaControlMIDI, the slide move when CC is played but I am not able to record it (envelope). I have created one envelope piste related to the slide (reaControlMIDI). And I have try all the automation configurations + play but nothing is created.

Last edited by ovnis; 06-02-2020 at 04:08 PM.
ovnis is offline   Reply With Quote
Old 06-03-2020, 06:51 AM   #19
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

Quote:
Originally Posted by ovnis View Post
It's a little bit like reaControlMIDI ?
Yep. but more dedicated. And ReaControlMidi can't be used to write an Envelope.
Quote:
Originally Posted by ovnis View Post
On Slider and Midi CC, I can't find the pitchbend. Do you know where I can find it ?
Pitchbend is not a CC, but a completely separate Midi message.
Quote:
Originally Posted by ovnis View Post
When I move the slide, I can modify the Mod value inside the synth, but when I use "CC to slider" and I push the play button, the slide doesn't move (there is Mod data inside the CC which is played).
The slider will move either due to automation (if assigned to an envelope) or due to incoming Midi messages (if direction "CC to slider" is enabled and Midi is routed appropriately).
Quote:
Originally Posted by ovnis View Post
With reaControlMIDI, the slide move when CC is played but I am not able to record it (envelope). I have created one envelope piste related to the slide (reaControlMIDI). And I have try all the automation configurations + play but nothing is created.
That was a motivation to do this JSFX.

-Michael

Last edited by mschnell; 06-03-2020 at 06:57 AM.
mschnell is offline   Reply With Quote
Old 06-03-2020, 07:09 AM   #20
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Quote:
Pitchbend is not a CC, but a completely separate Midi message.
Yes I know.

No possibility to implement the pitchbend ? Do you know how to convert pitchbend to envelope*?

The slide doesn't move.
What have I done wrong?

Item midi channel on 1.

The project : https://stash.reaper.fm/39565/bonne.rpp





* without this :
SWS/BR: Convert selected CC events in active item to linear envelope points in selected envelope
SWS/BR: Convert selected CC events in active item to linear envelope points in selected envelope (clear existing envelope points)
SWS/BR: Convert selected CC events in active item to square envelope points in selected envelope
SWS/BR: Convert selected CC events in active item to square envelope points in selected envelope (clear existing envelope points)

Last edited by ovnis; 06-03-2020 at 09:54 AM.
ovnis is offline   Reply With Quote
Old 06-03-2020, 02:36 PM   #21
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

Quote:
Originally Posted by ovnis View Post
No possibility to implement the pitchbend ? Do you know how to convert pitchbend to envelope*?
PB could rather easily be added in the plugin.
You also can use ReaPack -> Midi Convert To CC to convert PB to high resolution CC.

Quote:
Originally Posted by ovnis View Post
The slide doesn't move.
Midi Routing ?
insert a ReaControlMidi right before the JSFX and enable LOG to see the messages.

-Michael
mschnell is offline   Reply With Quote
Old 06-03-2020, 03:31 PM   #22
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Quote:
PB could rather easily be added in the plugin.
It would be great !

The good project :
https://stash.reaper.fm/39571/bonne.rpp-bak


Where is the problem ?

ovnis is offline   Reply With Quote
Old 06-04-2020, 02:44 AM   #23
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

Quote:
Originally Posted by ovnis View Post
Please post a project that only features the appropriate track and plugins.

-Michael
mschnell is offline   Reply With Quote
Old 06-04-2020, 03:48 AM   #24
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Thx for your help.

https://stash.reaper.fm/v/39573/bonne%281%29.rpp
ovnis is offline   Reply With Quote
Old 06-04-2020, 10:25 AM   #25
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

Found and fixed a bug,
Added Pitchbend handling.

Hopefully version 1.2 / 1.3 will be available on Reapack, soon.

-Michael

Last edited by mschnell; 06-05-2020 at 05:34 AM.
mschnell is offline   Reply With Quote
Old 06-05-2020, 05:57 AM   #26
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Great thx !

I have tested to transfert CC to automation envelope, but it seems more easy to do that with "SWS/BR: Convert selected envelope's curve in time selection to CC events in last clicked CC lane in last active MIDI editor".

The issue with this action : it works only with the active item... So it can be very long.

The ideal would be a script which works on all the MIDI items.
ovnis is offline   Reply With Quote
Old 08-29-2022, 04:36 AM   #27
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Any news about news methods or updates?
ovnis 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 04:47 PM.


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