Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 12-10-2011, 10:18 AM   #1
Auralviolence
Human being with feelings
 
Auralviolence's Avatar
 
Join Date: May 2011
Location: Latvia
Posts: 80
Default How to copy MIDI-controllers data from CCxx to CCyy in MIDI clip ?

If I have recorded some MIDI CC data in CC11, and if I would like to copy it to CC74, for example. How can I do it ?
In Cubase there is possible to copy CC data from any CC number to any other number or to any other MIDI-clip. Does Reaper allow this somewhow ?
Auralviolence is offline   Reply With Quote
Old 12-10-2011, 10:31 AM   #2
optical
Human being with feelings
 
optical's Avatar
 
Join Date: Jul 2010
Location: in hope
Posts: 320
Default

Quote:
Originally Posted by Auralviolence View Post
If I have recorded some MIDI CC data in CC11, and if I would like to copy it to CC74, for example. How can I do it ?
In Cubase there is possible to copy CC data from any CC number to any other number or to any other MIDI-clip. Does Reaper allow this somewhow ?
I think the JS plugin - midiCCmapper - will allow you to map one conroller to another. Not sure about 'copying' the data though.....
optical is offline   Reply With Quote
Old 12-10-2011, 11:33 AM   #3
Auralviolence
Human being with feelings
 
Auralviolence's Avatar
 
Join Date: May 2011
Location: Latvia
Posts: 80
Default

Yes, this JS plugin can remap one CC to another, however it's sad that Reaper doesn't allow to copy CC data this way.
Auralviolence is offline   Reply With Quote
Old 12-10-2011, 12:07 PM   #4
gofer
-blänk-
 
gofer's Avatar
 
Join Date: Jun 2008
Posts: 11,359
Default

It does, but it could be way nicer.

- Select all the CC events you want to copy make sure nothing else is selected
- Ctrl+C
- Make sure your edit cursor is exactly at the first event.
- Ctrl+V
- before you do anything else open event properties and change the controller number to the one you want

The third step is the most annoying. Paste will insert the first event at the edit cursor, and because there is no way to snap the cursor to the first selected event (if it's not on a grid line) it's hard to maintain the exact position. There should be a sort of "relative paste" to make that easier, also when pasting "horizotally", say a bunch of events into another measure it annoys me. Workaround is to add a quantized event at the start of the bunch.

Also, it would be much more intuitive if we could select and copy, then click in the target lane and have an action like "paste events into last clicked lane" to avoid that irritating moment when events are pasted onto themselves.
I have a custom action "paste - open event properties" which makes it a bit more fool proofed, but it's always a bit weird in the stomach

EDIT: Forgot to add you can also paste into another MIDI item this way. Just always make sure the edit cursor position is where you want the first event pasted.

Last edited by gofer; 12-10-2011 at 12:15 PM.
gofer is offline   Reply With Quote
Old 12-10-2011, 12:50 PM   #5
Auralviolence
Human being with feelings
 
Auralviolence's Avatar
 
Join Date: May 2011
Location: Latvia
Posts: 80
Default

gofer, I'm sorry, can you please clarify the suggested method ? It seems there is either some step missed or I don't understand something...

If I copy the events like on the image below, then CTRL-C, then switch to another CC-number, then CTRL-V - nothing is copied at new CC-number lane, but the events are copied to itself to original CC-number (to CC11) in my example, although we don't see it.


So,
- Select all the CC events you want to copy make sure nothing else is selected - OK
- Ctrl+C - OK
- Make sure your edit cursor is exactly at the first event. - OK
- Ctrl+V - don't understand here. the events are copied to itself in original CC-number lane
- before you do anything else open event properties and change the controller number to the one you want - but the events are just copied to itself at original CC-number lane...
Auralviolence is offline   Reply With Quote
Old 12-10-2011, 12:55 PM   #6
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
Default

^^^^
You're right - at this stage all you have done is duplicated the CC#11 messages

That's why gofer's next step is crucial
-- at that point you have all the copied CC#11 messages selected
-- without cancelling the selection, right-click one of them , select Event Properties and change the CC number.

Then you will have the original CC#11 messages and the copies in the other message lane.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 12-10-2011, 12:58 PM   #7
gofer
-blänk-
 
gofer's Avatar
 
Join Date: Jun 2008
Posts: 11,359
Default

That's why you need to open event properties in the last step. You just change the controller number to the one you want them to be and hit Ok. Then the events appear in the right lane. Trust it, it works because after paste only the new created events are selected.


ninja'd once more by Dark Star
gofer is offline   Reply With Quote
Old 12-10-2011, 01:11 PM   #8
Auralviolence
Human being with feelings
 
Auralviolence's Avatar
 
Join Date: May 2011
Location: Latvia
Posts: 80
Default

Thanks a lot, I've got the idea, it works indeed
Auralviolence is offline   Reply With Quote
Old 12-10-2011, 04:21 PM   #9
gofer
-blänk-
 
gofer's Avatar
 
Join Date: Jun 2008
Posts: 11,359
Default

I just remembered that by dragging a snapped time selection that covers the selected events and using "Copy events within project time selection" instead of the ordinary "copy events" you can paste with an offset to the edit cursor. That solves the positioning problem . I don't copy CC much so I forgot.

Nevertheless, a paste that changes CC number to the one of the last clicked lane would be cool. Actually it could be clever enough that one could select a series of notes and the paste discards note offs and changes the status byte converting them to the last clicked lane's message.
gofer is offline   Reply With Quote
Old 01-11-2012, 10:55 PM   #10
benmrx
Human being with feelings
 
benmrx's Avatar
 
Join Date: Aug 2010
Posts: 396
Default

Was just looking for this. Thanks for the tip Gofer.
benmrx is offline   Reply With Quote
Old 02-25-2014, 04:42 AM   #11
dimitris
Human being with feelings
 
Join Date: Nov 2008
Posts: 104
Default

Thanks for the info.
dimitris is offline   Reply With Quote
Old 05-13-2019, 03:06 PM   #12
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Gofer's hack is both amazing and sad at the same time. Reaper 6 is coming out soon and you seriously can't copy paste CC data from one lane to another without that hack? I mean. Please be honest. This is some basic MIDI shite lol. Maybe in a future update? I ain't using a JSFX MIDI plugin to reroute my MIDI CC data and make a mess.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 05-13-2019, 07:00 PM   #13
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by Auralviolence View Post
If I have recorded some MIDI CC data in CC11, and if I would like to copy it to CC74, for example. How can I do it ?
In Cubase there is possible to copy CC data from any CC number to any other number or to any other MIDI-clip. Does Reaper allow this somewhow ?
There's a SWS action called
Code:
SWS/BR: Copy selected CC events in active item to last clicked lane
Might do just what you ask for
Breeder is offline   Reply With Quote
Old 05-13-2019, 09:24 PM   #14
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

I did not know of gofer's hack... so had to try it and indeed it works

yet it seems a bit tedious compared to other tools we have:

there is a lua script by sr...

Script: sr_Copy selected CC events to lane under mouse cursor.lua

so you select the CC events, put your mouse over the lane you want them to be copied to and run the action...
OK but there are a couple problems to watch out for and deal with...
One is where the edit cursor is, cuz that is where they will paste to...
This can be solved with the action:
Navigate: Move edit cursor to start of selected events

So a custom action would be those two
move the edit cursor
copy to lane under mouse

But that brings up the second issue... you can't run the action with your mouse and have it on the lane you want at the same time, ...right?
OK...easy, give it a hot key

Good so far but also brings up another potential issue...
Imagine you have a lot of CC lanes but only want to copy from one to a few others...
Not a problem is you only have a couple but what if you have ten or more?

If you open the S&M.ini file in a text editor, down near the bottom you'll find two lines:

S&M_SETCCLANES_ME=XX ; [MIDI Editor] Restore displayed CC lanes, slot n

S&M_SAVECCLANES_ME=XX ; [MIDI Editor] Save displayed CC lanes, slot n

where you see the XX put in the number you want ...I have 20 but 4 or 8 might be enough...

Restart reaper and in the MIDI actions these will now show up as:

SWS/S&M: Save displayed CC lanes, slot1
and
SWS/S&M: Restore displayed CC lanes, slot1

but there will be as many slots as you gave the XX value

OK so now those Save\Restore actions can go in a toolbar...
Say you have 3 CC lanes visible... and you save that to slot 1
and then you have ten CC lanes visible and you save that to slot2
.... Ok so you use the matching Restore slot # to return to those CC lane views....
This makes it easier to set up what CC lanes you want to see while doing the copy work...
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 05-14-2019, 06:25 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 Breeder View Post
There's a SWS action called
Code:
SWS/BR: Copy selected CC events in active item to last clicked lane
Might do just what you ask for
If this works then again, SWS comes through and fixes basic Reaper stuff that shouldn't be missing in a DAW in 2019. Thanks Breed
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 05-14-2019, 06:29 AM   #16
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 hopi View Post
I did not know of gofer's hack... so had to try it and indeed it works

yet it seems a bit tedious compared to other tools we have:

there is a lua script by sr...

Script: sr_Copy selected CC events to lane under mouse cursor.lua

so you select the CC events, put your mouse over the lane you want them to be copied to and run the action...
OK but there are a couple problems to watch out for and deal with...
One is where the edit cursor is, cuz that is where they will paste to...
This can be solved with the action:
Navigate: Move edit cursor to start of selected events

So a custom action would be those two
move the edit cursor
copy to lane under mouse

But that brings up the second issue... you can't run the action with your mouse and have it on the lane you want at the same time, ...right?
OK...easy, give it a hot key

Good so far but also brings up another potential issue...
Imagine you have a lot of CC lanes but only want to copy from one to a few others...
Not a problem is you only have a couple but what if you have ten or more?

If you open the S&M.ini file in a text editor, down near the bottom you'll find two lines:

S&M_SETCCLANES_ME=XX ; [MIDI Editor] Restore displayed CC lanes, slot n

S&M_SAVECCLANES_ME=XX ; [MIDI Editor] Save displayed CC lanes, slot n

where you see the XX put in the number you want ...I have 20 but 4 or 8 might be enough...

Restart reaper and in the MIDI actions these will now show up as:

SWS/S&M: Save displayed CC lanes, slot1
and
SWS/S&M: Restore displayed CC lanes, slot1

but there will be as many slots as you gave the XX value

OK so now those Save\Restore actions can go in a toolbar...
Say you have 3 CC lanes visible... and you save that to slot 1
and then you have ten CC lanes visible and you save that to slot2
.... Ok so you use the matching Restore slot # to return to those CC lane views....
This makes it easier to set up what CC lanes you want to see while doing the copy work...
You are smart and I love it lol thank you for this workaround Yoikes that is a lot to just copy and paste CC data!
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 05-14-2019, 07:01 AM   #17
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

There's actually an alternative to my "CC mouse scripts".
Get my "Copy CC to CC" bundle.

There are default scripts that will copy from CC1 to CC11, CC2 to CC11, etc...
Basically the Modwheel, Expression, Breath Controller and Volume are covered.
But you can copy those scripts and edit them easily by changing the source and destination CC. The scripts respect event selection. If nothing is selected, everything will be copied, if there's a selection, only this one will be copied.
The same sort of scripts exist for moving CCs.





EDIT: I just noticed that I haven't added them to the main thread, maybe that's the reason they didn't get noticed.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom

Last edited by _Stevie_; 05-14-2019 at 07:11 AM.
_Stevie_ is offline   Reply With Quote
Old 05-14-2019, 08:27 AM   #18
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 _Stevie_ View Post
There's actually an alternative to my "CC mouse scripts".
Get my "Copy CC to CC" bundle.

There are default scripts that will copy from CC1 to CC11, CC2 to CC11, etc...
Basically the Modwheel, Expression, Breath Controller and Volume are covered.
But you can copy those scripts and edit them easily by changing the source and destination CC. The scripts respect event selection. If nothing is selected, everything will be copied, if there's a selection, only this one will be copied.
The same sort of scripts exist for moving CCs.




EDIT: I just noticed that I haven't added them to the main thread, maybe that's the reason they didn't get noticed.
yes yes thank you you rule
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 05-14-2019, 08:34 AM   #19
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

You're welcome, I hope it helps!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 05-14-2019, 02:02 PM   #20
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

nice sr_ thanks

lowell... well it 'seems' like a lot... but really it took longer to type that info than it does to set it all up...

I have my midi keyboard over by my left hand and I just assign the highest note as a hot key to paste into the lane under mouse
...hahaha and remember to remove that hot key when not needed....

the other save\restore cc views is really worth setting up on a toolbar.. but then again, you might not need it if you only have a few cc lanes that you care to see
I think you know how to do toolbars and actions and .ini editing ... you've been around awhile...
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva

Last edited by hopi; 05-14-2019 at 02:07 PM.
hopi is offline   Reply With Quote
Old 05-14-2019, 02:20 PM   #21
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,110
Default

Worth taking a look at latest Reaper development version...
nofish is offline   Reply With Quote
Old 05-15-2019, 02:31 AM   #22
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by lowellben View Post
If this works then again, SWS comes through and fixes basic Reaper stuff that shouldn't be missing in a DAW in 2019. Thanks Breed
It's really hard to have a complete overview of the program until you really spend time with it. And a program like REAPER which has so many stuff working together...

I think it's normal that sometimes even these basic thing gets skipped. As a coder, you simply encounter a burn-out and it's smarter to let go in those cases. Seeing REAPER is coded only by 2 geniuses who seem to dislike roadmaps it seems to happen more than average. Good news is that it appears REAPER today has mostly everything that a DAW could have and these small omissions are happening less and less and fixes are coming every day. Heck, just after this thread we got a bugfix on a pre forum!

Thankfully, we have so much 3rd party solutions you can always find a way. And that is the way to your custom, tried and tested, wholesomely-personal and complete workstation. I love my REAPER even if sometimes we disagreed in the past
Breeder is offline   Reply With Quote
Old 05-15-2019, 03:03 AM   #23
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 hopi View Post
I think you know how to do toolbars and actions and .ini editing ... you've been around awhile...
I think that's safe to say in many ways
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 05-15-2019, 03:04 AM   #24
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 nofish View Post
Worth taking a look at latest Reaper development version...
LOL well ain't that rich. I am surprised in the best way. Going to test now What timing??
__________________
47.8% of statistics are made up.
lowellben 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:58 PM.


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