Old 03-01-2017, 07:39 AM   #1
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default Insert Named Marker Script ?

Can anyone make a script that will insert a named marker at the edit cursor position please ?

!1013 marker is Transport: Record, this will provide a Punch In with no Punch Out or as some call it Punch to end.

For some reason it doesn't punch in at the exact point though. Thanks for any help.


Last edited by Coachz; 03-01-2017 at 07:54 AM.
Coachz is offline   Reply With Quote
Old 03-01-2017, 08:23 AM   #2
NextLevel
Human being with feelings
 
Join Date: Dec 2014
Posts: 417
Default

As far as action markers are concerned, they are not sample accurate. The inaccuracy can vary from run to run, sometimes the action can trigger early, and other times late. For stuff that is time dependent, action markers are not the way to go.

Perhaps a ReaScript could be made that runs in defer() mode and when you were done you would have to run the script again for it to exit.
NextLevel is offline   Reply With Quote
Old 03-01-2017, 08:26 AM   #3
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

Well if anyone can come up with a script to do time accurate "Punch In Only" mode that would be great.
Coachz is offline   Reply With Quote
Old 03-01-2017, 08:27 AM   #4
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

I have a toolbar button I made called "Punch To End" but I'm not home so I can look and see what it does. Might be able to remote in later or check when I get home.
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 03-01-2017, 08:32 AM   #5
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

no hurry, but post when convenient ! Karbo Power !
Coachz is offline   Reply With Quote
Old 03-01-2017, 08:34 AM   #6
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Quote:
Originally Posted by Coachz View Post
no hurry, but post when convenient ! Karbo Power !
It is probably exactly what you are doing already but let me check when I can to make sure.
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 03-01-2017, 08:38 AM   #7
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

OK, I was way off base. Looks like what I was doing was setting record to punch time selection then have the following tied to a button so that I just place the edit cursor and click the button, then back the cursor up a tad and go... that isn't quite what you are needing. I suppose you could add a couple more actions to make the entire thing one click, not sure?



Maybe something like the above + Back the cursor up some + Record to make it instant.
__________________
Music is what feelings sound like.

Last edited by karbomusic; 03-01-2017 at 08:46 AM.
karbomusic is offline   Reply With Quote
Old 03-01-2017, 08:56 AM   #8
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

Maybe the devs will take a moment to add a Punch IN Only mode and make it dreamy.
Coachz is offline   Reply With Quote
Old 03-01-2017, 11:07 AM   #9
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

Hi

Use this script
Change Name and color ,save instances for different colors and names.

name = "name me"
color = brown


Code:
-----------------------------------------------------------------
--------Insert Marker at Edit cursor Custom Name and Color-------
-----------------------------------------------------------------
----------------Outboarder   @2017    Reaper 5.32----------------
-----------------------------------------------------------------

--------------------------
-----Available Colors-----
--------------------------
blue = reaper.ColorToNative(0,0,255)|0x1000000
red = reaper.ColorToNative(255,0,0)|0x1000000
green = reaper.ColorToNative(0,255,0)|0x1000000
cyan = reaper.ColorToNative(0,255,255)|0x1000000
magenta = reaper.ColorToNative(255,0,255)|0x1000000
yellow = reaper.ColorToNative(255,255,0)|0x1000000
orange = reaper.ColorToNative(255,125,0)|0x1000000
purple = reaper.ColorToNative(125,0,225)|0x1000000
lightblue = reaper.ColorToNative(13,165,175)|0x1000000
lightgreen = reaper.ColorToNative(125,255,155)|0x1000000
pink = reaper.ColorToNative(225,95,155)|0x1000000
brown = reaper.ColorToNative(125,95,25)|0x1000000
gray = reaper.ColorToNative(125,125,125)|0x1000000
white =  reaper.ColorToNative(255,255,255)|0x1000000
Black =  reaper.ColorToNative(0,0,0)|0x1000000
--------------------------

name = "name me"   --<<<<<<--Marker Name
color = brown      --<<<<<<--Marker Color

--------------------------

function msg(m)                         
	reaper.ShowConsoleMsg(tostring(m) .. '\n')
end

function Insert_Marker_Custom_Name_Color()   
	cursor_pos = reaper.GetCursorPosition()
	play_pos = reaper.GetPlayPosition()
	marker_index, num_markersOut, num_regionsOut = reaper.CountProjectMarkers( 0 )
	reaper.AddProjectMarker2( 0, 0, cursor_pos, 0, name, marker_index+1,color ) 
end

function Main()
	reaper.Undo_BeginBlock()               
	Insert_Marker_Custom_Name_Color()
	reaper.Undo_EndBlock("Insert_Marker_Custom_Name_Color", 0)
end  

Main()  
reaper.UpdateArrange()
__________________
Outboarder Scripts

Last edited by Outboarder; 03-01-2017 at 11:22 AM.
Outboarder is offline   Reply With Quote
Old 03-01-2017, 11:27 AM   #10
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

wow, that works really well sans the timing issues. It still makes a useful Punch In Only, you just have to give it a measure or so lead in to make sure to get it. Using your script this is what I am thinking to get a new track ready to punchin in only.........Thanks again. The marker name is "!1013".

Custom: Punch In Only
SWS/S&M: Copy selected tracks (with routing)
Item: Paste items/tracks
Script: EXT - Insert marker at Edit cursor with custom Name and Color.lua
Item: Select all items on selected tracks in current time selection
SWS: Delete all items on selected track(s)
Coachz is offline   Reply With Quote
Old 03-01-2017, 11:35 AM   #11
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

You are welcome

here is another script for Play cursor
__________________
Outboarder Scripts
Outboarder is offline   Reply With Quote
Old 03-01-2017, 11:37 AM   #12
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

Quote:
Originally Posted by Outboarder View Post
You are welcome

here is another script for Play cursor

huh, what where ????
Coachz is offline   Reply With Quote
Old 03-01-2017, 11:39 AM   #13
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

Sorry my bad, it's up, refresh the page.
__________________
Outboarder Scripts
Outboarder is offline   Reply With Quote
Old 03-01-2017, 11:48 AM   #14
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

thanks but I don't know a need for play. If you need play then you need Punch In Time Selection mode right ?
Coachz is offline   Reply With Quote
Old 03-01-2017, 11:52 AM   #15
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

Yeah, it's just an another version.
__________________
Outboarder Scripts
Outboarder is offline   Reply With Quote
Old 03-01-2017, 12:03 PM   #16
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

Most excellent!
Coachz is offline   Reply With Quote
Old 03-01-2017, 12:05 PM   #17
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Sweet! Nice job!
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 07-24-2017, 06:04 AM   #18
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,128
Default

Not sure If I understand the question properly but can't you just use the reaConsole for this?

Open the console and type: !"YourActionCommandID"

This should add an action marker at the cursor position.

Your can make yourself a whole bunch of Cycle Action Using the console command and fire them at will with key shortcuts
lexaproductions is offline   Reply With Quote
Old 07-26-2017, 03:16 PM   #19
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,791
Default

That's another great idea!
Coachz is offline   Reply With Quote
Old 08-01-2017, 08:38 PM   #20
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

nice script... thanks easy to modify...

so now I have toolbar items for intro, verse 1,2,3,4, chorus and bridge and outro....

the basics for little songs... sweet....
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 01-31-2018, 05:52 AM   #21
Dan Lewis
Human being with feelings
 
Join Date: Jan 2018
Posts: 1
Default

Thanks for this Script i have been looking for something like this for a while!
I am looking at using this to automate dropping track markers into a live recording going on in conjunction with MIDI triggers from the scenes on my mixing console.
I was wondering if it's possible to make this script only drop markers when reaper is actually recording? That way when using reaper to play back and doing a virtual soundcheck recalling scenes on the console wont drop extra markers when they are not wanted.

I think this sort of functionality in Reaper is really going to help my day to day work flow!

Cheers

Dan.
Dan Lewis is offline   Reply With Quote
Old 04-02-2018, 03:11 PM   #22
timbralzoom
Human being with feelings
 
timbralzoom's Avatar
 
Join Date: Apr 2010
Location: Turkey/Istanbul
Posts: 1,820
Default

exactly what i was looking for .. Thank you so much Outboarder!!
timbralzoom is offline   Reply With Quote
Old 09-20-2019, 04:25 AM   #23
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
Default

Just to note, action markers are not 100% timing accurate though, they can add a bit of latency / jitter.

https://github.com/reaper-oss/sws/is...ment-105646000
nofish is offline   Reply With Quote
Old 09-25-2019, 03:12 AM   #24
todoublez
Human being with feelings
 
todoublez's Avatar
 
Join Date: Aug 2019
Location: beijing
Posts: 612
Default

Quote:
Originally Posted by nofish View Post
Just to note, action markers are not 100% timing accurate though, they can add a bit of latency / jitter.

https://github.com/reaper-oss/sws/is...ment-105646000
Indeed.
I'm sufferingg from it too.
It wont punch-In REC accuratly ,always a bit late, and the latency is randomed !
lol... what am i gonna do about it. T_T
todoublez is offline   Reply With Quote
Old 09-07-2023, 03:54 AM   #25
reapernovice
Human being with feelings
 
Join Date: Aug 2023
Posts: 8
Default

Thank you so much for this it's very handy

Quote:
Originally Posted by Outboarder View Post
Hi

Use this script
Change Name and color ,save instances for different colors and names.

name = "name me"
color = brown


Code:
-----------------------------------------------------------------
--------Insert Marker at Edit cursor Custom Name and Color-------
-----------------------------------------------------------------
----------------Outboarder   @2017    Reaper 5.32----------------
-----------------------------------------------------------------

--------------------------
-----Available Colors-----
--------------------------
blue = reaper.ColorToNative(0,0,255)|0x1000000
red = reaper.ColorToNative(255,0,0)|0x1000000
green = reaper.ColorToNative(0,255,0)|0x1000000
cyan = reaper.ColorToNative(0,255,255)|0x1000000
magenta = reaper.ColorToNative(255,0,255)|0x1000000
yellow = reaper.ColorToNative(255,255,0)|0x1000000
orange = reaper.ColorToNative(255,125,0)|0x1000000
purple = reaper.ColorToNative(125,0,225)|0x1000000
lightblue = reaper.ColorToNative(13,165,175)|0x1000000
lightgreen = reaper.ColorToNative(125,255,155)|0x1000000
pink = reaper.ColorToNative(225,95,155)|0x1000000
brown = reaper.ColorToNative(125,95,25)|0x1000000
gray = reaper.ColorToNative(125,125,125)|0x1000000
white =  reaper.ColorToNative(255,255,255)|0x1000000
Black =  reaper.ColorToNative(0,0,0)|0x1000000
--------------------------

name = "name me"   --<<<<<<--Marker Name
color = brown      --<<<<<<--Marker Color

--------------------------

function msg(m)                         
	reaper.ShowConsoleMsg(tostring(m) .. '\n')
end

function Insert_Marker_Custom_Name_Color()   
	cursor_pos = reaper.GetCursorPosition()
	play_pos = reaper.GetPlayPosition()
	marker_index, num_markersOut, num_regionsOut = reaper.CountProjectMarkers( 0 )
	reaper.AddProjectMarker2( 0, 0, cursor_pos, 0, name, marker_index+1,color ) 
end

function Main()
	reaper.Undo_BeginBlock()               
	Insert_Marker_Custom_Name_Color()
	reaper.Undo_EndBlock("Insert_Marker_Custom_Name_Color", 0)
end  

Main()  
reaper.UpdateArrange()
reapernovice 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 03:48 PM.


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