Old 11-26-2018, 11:10 AM   #1
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default Splitting Tool like in Cubase

Hi,

I wonder if anyone has ever recreated the Cubase slitting tool. I've made an custom action that :

View : Move edit cursor to mouse cursor (no snapping)
Item : : Split item under mouse cursor

I then assigned it to Alt key modifier.

What's missing and king of important to me is a vertical line that covers multiple tracks and would visually tell me where I'm making the cuts and if it's snapping or not. I could not figure out how to do that. Also, it does not work when I select multiple items. We'd need to have the cursor follow the mouse in some way. Also, assigning icons to smart tools would be nice.

Any ideas?
fbeauvaisc is offline   Reply With Quote
Old 11-26-2018, 03:31 PM   #2
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Yep there is: SWS/gofer: Split selected items at mouse cursor (obey snapping)
and Item: Split items at play cursor.

They both work great, depending on what you want to achieve.
You can also add a "Action: Toggle arm of next action" to make it work like a split tool. Execute the action again, and the tool is gone.
__________________
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 11-26-2018, 04:16 PM   #3
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

The SWS/gofer: Split selected items at mouse cursor (obey snapping) works great thanks. I don't really know what "Toggle arm of next action" does. Could you explain?

Thanks
fbeauvaisc is offline   Reply With Quote
Old 11-26-2018, 04:26 PM   #4
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Yep sure!

This works like a tool selection in Cubase. You can for example assign that shortcut to the "3" key (scissors). When you press it, you can use the "cut tool" as many times as you want. When you are done, you press "3" again and the tool will be un-armed.
__________________
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 11-26-2018, 04:36 PM   #5
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Ok got it. But I'm using the split tool with a modifier. The one that obeys snaps is good.

I'm still missing a visual representation though. I guess I'll get used to it. I never really liked the so many tools Cubase has. It's a wast of clicks and menus. I'd rather use modifiers and keystrokes.

I stilled like the way Cubase handled the split tool using the alt key as a modifier while giving us a vertical line to see where the cut is going for.

We'd have to find a way for the edit cursor to follow the mouse while holding the modifier but also snap to grid if snap is enabled. I guess I'm probably asking for too much. I'll try to find alternatives.
fbeauvaisc is offline   Reply With Quote
Old 11-26-2018, 04:39 PM   #6
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

I'll definitely use the toggle on somthing else though!
fbeauvaisc is offline   Reply With Quote
Old 11-26-2018, 06:10 PM   #7
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Quote:
Originally Posted by fbeauvaisc View Post
Ok got it. But I'm using the split tool with a modifier. The one that obeys snaps is good.

I'm still missing a visual representation though. I guess I'll get used to it. I never really liked the so many tools Cubase has. It's a wast of clicks and menus. I'd rather use modifiers and keystrokes.
Yes, I agree, a visual representation would be very useful!
I didn't really miss it to date, though.
I also learned to dislik the "3D shooter approach" for all the tools (weapons are usually on keys 1-9). Modifier keys are indeed way faster!

Quote:
I stilled like the way Cubase handled the split tool using the alt key as a modifier while giving us a vertical line to see where the cut is going for.

We'd have to find a way for the edit cursor to follow the mouse while holding the modifier but also snap to grid if snap is enabled. I guess I'm probably asking for too much. I'll try to find alternatives.

Hm, not sure how close we can get, but there is "View: Move edit cursor to mouse cursor". Maybe you can come up with a custom action that gets close enough.
__________________
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 11-26-2018, 10:22 PM   #8
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

you might try to make a custom action that uses the mentioned move edit cursor to mouse cursor followed by the mpl lua script,
mpl_Split item under mouse cursor at mouse cursor.lua

if you don't have that script, get it via reapack... mpl has a lot of them

if you don't know what mpl is.... LoL he is a reaper user who writes scripts
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 11-26-2018, 11:12 PM   #9
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

That script will only split one item, though.
__________________
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 11-27-2018, 05:41 AM   #10
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by hopi View Post
you might try to make a custom action that uses the mentioned move edit cursor to mouse cursor followed by the mpl lua script,
mpl_Split item under mouse cursor at mouse cursor.lua

if you don't have that script, get it via reapack... mpl has a lot of them

if you don't know what mpl is.... LoL he is a reaper user who writes scripts
Yes I recently installed his interactive toolbar that works wonders!
fbeauvaisc is offline   Reply With Quote
Old 11-27-2018, 06:15 AM   #11
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

I don't think Reaper was made for this splitting approche. I think I'll try to work with the time selection / loop selection if I want to cut vertically with a visual reference. I didn't get to use it much except on loops since one of the first things I've changed in Reaper was the left drag to "marquee select items"

To me the left drag handling time selection and loop points is kind of awkward and I want to be able to switch from Cubase and Reaper without being destabilized since some of my employers use Cubase and we do exchange sessions and share a similar workflow. At least for now I try to mirror the workflow on both but Reaper is getting me further already.

It's not so much the Cubase the DAW that pushed me away so much as Steinberg's business model and tactics. Their annual expensive bogus upgrades that come around black Friday so we're in a spending frenzy and so on. Also trying to meet commercial dates often results in the upgrades being pushed ahead of time and not working properly. Cubase 10 did not load my 9.5 projects and templates so it was the last straw.

Not to mention Reaper is 11mb as opposed to Cubase forcing you to download 10gb of content via the download manager and then check out the options you don't want to install. I could go on but I'll instead I stay zen. Let's just say I'm done being taken for a fool. I'm already a happier and healthier working with Reaper.
fbeauvaisc is offline   Reply With Quote
Old 11-27-2018, 02:16 PM   #12
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

Amen!
Eliseat is offline   Reply With Quote
Old 11-28-2018, 11:24 PM   #13
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Quote:
Originally Posted by _Stevie_ View Post
That script will only split one item, though.
ok then make one with Script: spk77_Split all items at edit cursor

an there is always the action:
Item: Split item under mouse cursor

lots of ways to go depending on what you want to do...

and if you really don't find a combination of actions and lua's that do it, then pop over to the JSFX area of the forum and ask for anyone to create a new script....

Also... if you just 'love' having to clk some icon like in cubase, put some of the desired actions in a toolbar and rt clk to arm them

so hey... here is one that seems to work well from a toolbar:
Custom action:
View: Move edit cursor to mouse cursor (no snapping)
Script: spk77_Split selected items at mouse cursor.eel

Note... you gotta have Python working to use eel scripts unless you ask spk77 to do a rewrite in lua

The point is, put that in a toolbar so you can rt clk and arm it...
then you can move the edit cursor by clking in the ruler so you get a visual of where the split will be
you can first turn snapping on or off as desired...
then with the action armed and multiple items selected clk on any item and they all will split...
...don't forget to unarm the action!
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva

Last edited by hopi; 11-28-2018 at 11:43 PM.
hopi is offline   Reply With Quote
Old 11-29-2018, 04:17 AM   #14
Reno.thestraws
Human being with feelings
 
Reno.thestraws's Avatar
 
Join Date: Nov 2009
Location: Belgium
Posts: 10,474
Default

1) create this lua script and name it "edit cursor follow mouse"

Code:
function main()
  reaper.BR_GetMouseCursorContext()
  local pos = reaper.BR_GetMouseCursorContext_Position()
  if pos > -1 then
    reaper.SetEditCurPos2(0, pos, false, false)
  end
  reaper.defer(main)
end

function exit()
  local is_new_value,filename,sectionID,cmdID,mode,resolution,val = reaper.get_action_context()
  reaper.SetToggleCommandState(sectionID, cmdID, 0)
  reaper.RefreshToolbar2(sectionID, cmdID)
end

local is_new_value,filename,sectionID,cmdID,mode,resolution,val = reaper.get_action_context()
reaper.SetToggleCommandState(sectionID, cmdID, 1)
reaper.RefreshToolbar2(sectionID, cmdID)

reaper.atexit(exit) 

main()
2) open action list and create new custom action with in this order

Toggle arm next action
Split item at edit cursor
script : edit cursor follow mouse


3) set any key shortcut to your brand new action


4) make sure you choose "terminate" action at the second time you launch the script

EDIT :

You can create any other custom action and just replace "split item at edit cursor" by any action you want (ie: insert stretch marker, preview item, fade in/out to cursor, insert marker, move position to edit cursor, trim left/right edge, move closest grid to cursor,...
__________________
http://www.residenceemilia.com

Last edited by Reno.thestraws; 11-29-2018 at 04:29 AM.
Reno.thestraws is offline   Reply With Quote
Old 11-29-2018, 04:34 AM   #15
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

Great work around! Many thanks.

But in general. Is it possible to draw with lua or eel lines? I saw a thread - not sure what the manner was - where someone showed how to draw on top of the gui. If yes wouldn't it be theoretically also possible to draw a vertical line where the mouse pointer is?
Eliseat is offline   Reply With Quote
Old 11-29-2018, 04:58 AM   #16
Jonas Ekstrom
Human being with feelings
 
Jonas Ekstrom's Avatar
 
Join Date: Feb 2017
Location: Stockholm
Posts: 98
Default

Quote:
Originally Posted by Reno.thestraws View Post
1) create this lua script and name it "edit cursor follow mouse"

Code:
function main()
  reaper.BR_GetMouseCursorContext()
  local pos = reaper.BR_GetMouseCursorContext_Position()
  if pos > -1 then
    reaper.SetEditCurPos2(0, pos, false, false)
  end
  reaper.defer(main)
end

function exit()
  local is_new_value,filename,sectionID,cmdID,mode,resolution,val = reaper.get_action_context()
  reaper.SetToggleCommandState(sectionID, cmdID, 0)
  reaper.RefreshToolbar2(sectionID, cmdID)
end

local is_new_value,filename,sectionID,cmdID,mode,resolution,val = reaper.get_action_context()
reaper.SetToggleCommandState(sectionID, cmdID, 1)
reaper.RefreshToolbar2(sectionID, cmdID)

reaper.atexit(exit) 

main()
2) open action list and create new custom action with in this order

Toggle arm next action
Split item at edit cursor
script : edit cursor follow mouse


3) set any key shortcut to your brand new action


4) make sure you choose "terminate" action at the second time you launch the script

EDIT :

You can create any other custom action and just replace "split item at edit cursor" by any action you want (ie: insert stretch marker, preview item, fade in/out to cursor, insert marker, move position to edit cursor, trim left/right edge, move closest grid to cursor,...
Yes, here's the thread:
https://forum.cockos.com/showthread.php?t=213165


I also changed the cursor to a scissor.
Works like a charm. Many thanks to Thomas E.
__________________
Jonas Ekstrom
www.northmastering.com
Jonas Ekstrom is offline   Reply With Quote
Old 11-29-2018, 05:34 AM   #17
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,812
Default

Quote:
Originally Posted by Eliseat View Post
wouldn't it be theoretically also possible to draw a vertical line where the mouse pointer is?
Having a different mouse pointer:" scissor with a left vertical line" for the modifier would be good for me!
deeb is offline   Reply With Quote
Old 11-29-2018, 06:25 AM   #18
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

Quote:
Originally Posted by Reno.thestraws View Post
...

2) open action list and create new custom action with in this order

Toggle arm next action
Split item at edit cursor
script : edit cursor follow mouse


3) set any key shortcut to your brand new action


4) make sure you choose "terminate" action at the second time you launch the script

EDIT :

You can create any other custom action and just replace "split item at edit cursor" by any action you want (ie: insert stretch marker, preview item, fade in/out to cursor, insert marker, move position to edit cursor, trim left/right edge, move closest grid to cursor,...
For some reason this doesn't work as expected. If I create a custom action like this, put in my menu and activate (click on) it, the second time I run it (to deactivate the action) just switches the action to a new weird behavior. To make it clear, at first the cursor only follows without cutting, at second the following stops and only the split action runs instead of de-arming the custom action. Any idea why?

Eliseat is offline   Reply With Quote
Old 11-29-2018, 06:31 AM   #19
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

Okay, I just realized that it works like expected if I run the custom action from the actions list but NOT if I run it from the menu icon.
Eliseat is offline   Reply With Quote
Old 12-03-2018, 07:33 AM   #20
Philbo King
Human being with feelings
 
Philbo King's Avatar
 
Join Date: May 2017
Posts: 3,201
Default

My approach:
Action: Split item under mouse cursor
Assigned to: Toolbar button with razor blade icon
Use:
Right click the toolbar button to turn on Smart Tool mode (button lights up). Click wherever you want to split any item, as many times & places as needed.
Right click the toolbar button again to deactivate it (button goes dark).
__________________
Tangent Studio - Philbo King
www.soundclick.com/philboking - Audio streams
Philbo King is offline   Reply With Quote
Old 12-06-2018, 05:50 AM   #21
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

Quote:
Originally Posted by Philbo King View Post
My approach:
Action: Split item under mouse cursor
Assigned to: Toolbar button with razor blade icon
Use:
Right click the toolbar button to turn on Smart Tool mode (button lights up). Click wherever you want to split any item, as many times & places as needed.
Right click the toolbar button again to deactivate it (button goes dark).
Yes, this works but without a visual guideline like the edit cursor. The action edit cursor follows mouse pointer was a work around for that. But it just doesn't work as expected. At least not from the toolbar. I tried several times, made sure to set the custom action to terminate instance. Nope. It just cycles thru the actions.
Eliseat is offline   Reply With Quote
Old 01-06-2020, 10:50 PM   #22
Eraz
Human being with feelings
 
Join Date: Nov 2019
Posts: 225
Default

Hey there! anyone has an idea how to realise "edit cursor follows mouse" work on alt press (not toggling)?

So as soon as you press alt and hold it, the script works and when you release it it stops? Like a modifier key?
Eraz is offline   Reply With Quote
Old 07-09-2020, 10:09 AM   #23
Tower Studio
Human being with feelings
 
Tower Studio's Avatar
 
Join Date: Jul 2010
Location: Montpellier, France
Posts: 194
Default

Quote:
Originally Posted by Eraz View Post
Hey there! anyone has an idea how to realise "edit cursor follows mouse" work on alt press (not toggling)?

So as soon as you press alt and hold it, the script works and when you release it it stops? Like a modifier key?
I would love that as well!
Tower Studio is offline   Reply With Quote
Old 07-10-2020, 03:39 AM   #24
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by fbeauvaisc View Post
Hi,
What's missing and king of important to me is a vertical line that covers multiple tracks and would visually tell me where I'm making the cuts and if it's snapping or not.

If the guide line is what you are missing then you may check this.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 11-28-2020, 09:32 AM   #25
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by amagalma View Post
If the guide line is what you are missing then you may check this.
This is extremely helpful thank!
fbeauvaisc is offline   Reply With Quote
Old 01-11-2021, 06:33 PM   #26
neville_dartoss
Human being with feelings
 
Join Date: Jan 2021
Posts: 2
Default

Hello! First post - apologies for necro.

Has anyone found that "split item under mouse cursor" combined with a modifier/left click (Cubase style) only works when the cursor is directly over the item volume adjustment line? eg. alt+click won't split an item if you click anywhere in the item, unless the cursor is on the tiny item volume line. Is this a bug on my end or intentional? Cheers!
neville_dartoss is offline   Reply With Quote
Old 01-11-2021, 07:28 PM   #27
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

This is intentional and a side effect from the item mouse modifier. It will always selected the hovered item.
__________________
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 01-17-2021, 06:57 PM   #28
neville_dartoss
Human being with feelings
 
Join Date: Jan 2021
Posts: 2
Default

Thanks! Bummer. Any ideas on how to make a mouse modifier work all over the item and not just the volume line?
neville_dartoss is offline   Reply With Quote
Old 07-18-2021, 08:54 AM   #29
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,769
Default

Quote:
Originally Posted by Philbo King View Post
My approach:
Action: Split item under mouse cursor
Assigned to: Toolbar button with razor blade icon
Use:
Right click the toolbar button to turn on Smart Tool mode (button lights up). Click wherever you want to split any item, as many times & places as needed.
Right click the toolbar button again to deactivate it (button goes dark).
Just found this technique. Works great. I have Tab key on my snap to grid so I can easily do multiple cuts now on or off the grid or both !
__________________
Track Freezing Scripts

Coachz Repo
Coachz 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:43 AM.


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