Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 09-07-2015, 01:16 PM   #1
nolman
Human being with feelings
 
nolman's Avatar
 
Join Date: Feb 2008
Location: ghent, Belgium
Posts: 336
Default reaper program time schedule playback/recording

Is there a way to schedule recording or playback with reaper?
for example: play or record everyday from 6-8 am

thanks
nolman is offline   Reply With Quote
Old 09-07-2015, 06:50 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

What an unusual request... Are you a spy or something ? ^^

Not natively, but we can get os.time from Lua scripts so it could be done with a script :P
Shouldn't be very hard, just a tile check, and if time = what yiu want then action record untill time you want it to stop.
X-Raym is offline   Reply With Quote
Old 09-08-2015, 06:50 AM   #3
nolman
Human being with feelings
 
nolman's Avatar
 
Join Date: Feb 2008
Location: ghent, Belgium
Posts: 336
Default

Hehe,
actually i got this question from somebody at a recording forum :-)
No idea what he's up to :-)
nolman is offline   Reply With Quote
Old 09-08-2015, 06:57 AM   #4
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,942
Default

Can't remember whether it's documented or has a help page, but I made something that might do this a while back. It's in my sig -Timer Recording Tool....



>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 09-08-2015, 07:46 AM   #5
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

well... be sure it could be possible if needed, use the Lua os.date("%H:%M:%S") for that, it wil return date in a way that can be compared with the date/time of running the script.
X-Raym is offline   Reply With Quote
Old 09-08-2015, 08:11 AM   #6
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,942
Default

Loaded it up and tried it again. It records any record-armed tracks according to the timer settings. You can set a rec time of an hour and a cycle time of 24 hours to rec at a set time every day.

The clock ignores dylight-saving time on my laptop, no biggie, but might put an option in.

You need to disable prompt for record-save on stop really to use this.








>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 09-08-2015, 12:55 PM   #7
Mink99
Human being with feelings
 
Mink99's Avatar
 
Join Date: Jan 2011
Location: Zürich
Posts: 1,008
Default

There is child protection software that blocks access to applications and only allows for a parent's define timeframe. While it is intended for games, why not add reaper to the blacklist ?
Mink99 is offline   Reply With Quote
Old 09-08-2015, 03:28 PM   #8
LightOfDay
Banned
 
Join Date: Jun 2015
Location: Lower Rhine Area, DE
Posts: 964
Default

remembers me of the hassle with setting up 2 cassette recorders with 120min cassettes and analog timing swatches to record "Nightflight" in the middle of the night (a radio-show with Alan Bangs).

(besides: what an idiotic idea to air such shows that are targeted at people that have to be in school in the morning in the middle of the week and in the middle of the night. facepalm. of course the name would have to change if it would have been aired in the afternoon. and "afternoon-flight" is also not so good. sigh. you cant have everything I guess.)
LightOfDay is offline   Reply With Quote
Old 03-18-2016, 03:41 PM   #9
hilluck
Human being with feelings
 
Join Date: Sep 2007
Posts: 46
Default How tom install

Hi Nathan

This sounds perfect but how do I install?

Quote:
Originally Posted by planetnine View Post
Can't remember whether it's documented or has a help page, but I made something that might do this a while back. It's in my sig -Timer Recording Tool....



>
hilluck is offline   Reply With Quote
Old 03-19-2016, 01:22 AM   #10
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,942
Default

Follow the links and download the EEL file.
invoke the actions list (press "?").
Click [load].
Locate and select the EEL file.
Add a shortcut (key press) to the new action, or just double-click it in the actions list when you need it.

Play around with it with short times -it seems to ignore daylight saving time, and it is thwarted by recorded file prompts from memory (turn them off).


Shout back if you need more help...



>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 03-19-2016, 07:29 PM   #11
hilluck
Human being with feelings
 
Join Date: Sep 2007
Posts: 46
Default Auto record script

Thanks Nathan

Does just what I need. I'm in Australia. Is there a way to get it to show the correct time in the script?

It is currently 8 hours behind me?

Really appreciate the effort you put into making this. I use it to record a radio station on the net so I can review and train presenters.

Cheers

Ian
hilluck is offline   Reply With Quote
Old 03-20-2016, 03:21 AM   #12
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,942
Default

It needs an offset, I think Ian.

The available computer time that the code reads and queries is UTC (computers use it for email and such, which can be international). Not a biggie for us that live in the UK (as half the year that's our local time), but you need to be able to set it to display your local time and read your set times as local time too.

Let me have a look at the script and update it. I think the time offset can be saved in the ExtState so it is picked up automatically each time once set.

What's your time zone? We're on GMT (UTC) until next Sunday, whereas you'll be on daylight saving time ATM in Australia. The 8 hours sounds right for (eg) Perth -that where you are?



>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.

Last edited by planetnine; 03-20-2016 at 03:32 AM.
planetnine is offline   Reply With Quote
Old 03-20-2016, 05:42 PM   #13
hilluck
Human being with feelings
 
Join Date: Sep 2007
Posts: 46
Default Time Offset

Hi Nathan

In Perth we don't have daylight saving so it's currently UTC+ 8 hrs.

Thanks so much for assisting with the offset. Love your script and really appreciate your help.

Goes with out saying, as a Reaper licensed user since it was created, I'm pretty much a fan of this program!!

Cheers

Ian
hilluck is offline   Reply With Quote
Old 04-06-2016, 09:37 PM   #14
hilluck
Human being with feelings
 
Join Date: Sep 2007
Posts: 46
Default Time Offset

Hi Nathan

Any chance you'l be able to look at this issue?

Thanks

Ian
hilluck is offline   Reply With Quote
Old 05-29-2017, 10:02 PM   #15
hilluck
Human being with feelings
 
Join Date: Sep 2007
Posts: 46
Default Time offset in your beaut tool

Hi Natahan

When you get a spare moment can you put your coding expertise into providing the correct code for changing the time offset?

Thanks again

Ian
hilluck is offline   Reply With Quote
Old 06-17-2017, 01:37 PM   #16
Gass n Klang
Human being with feelings
 
Gass n Klang's Avatar
 
Join Date: Nov 2015
Location: Cologne
Posts: 1,640
Default

nice tool! I was searching for that exactly. Live concert recording without missing the first track
A time offset would really be nice!
Gass n Klang is offline   Reply With Quote
Old 08-02-2018, 10:09 AM   #17
kfj452
Human being with feelings
 
kfj452's Avatar
 
Join Date: Feb 2015
Posts: 39
Default

I don't understand how to set the time with this tool. I can hover over the numbers and they change color from yellow to blue, but clicking or typing does nothing?

Edit:

Oh I see, you hover over the number and then spin the scroll wheel.

Last edited by kfj452; 08-02-2018 at 11:30 AM.
kfj452 is offline   Reply With Quote
Old 01-10-2019, 08:41 AM   #18
bugdude65
Human being with feelings
 
Join Date: Jan 2019
Posts: 1
Default Timer Recorder Plugin

Has anyone used the Timer Recorder plugin by Planetnine on the current version of Reaper? I am not having luck with it, and am trying to sort out how to program intermittent recordings from multiple channels for a bioacoustic project. Are there other solutions in other scripts I should look at? I would like to record from 6-8 channels simultaneously on a one-minute every ten minute 24-hr cycle.

Cheers for any ideas.
bugdude65 is offline   Reply With Quote
Old 01-10-2019, 04:13 PM   #19
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Quote:
I am not having luck with it,
YOu mean... there is a bug ? or it just doesn't offer the feature needed ?
X-Raym is offline   Reply With Quote
Old 12-24-2019, 02:26 AM   #20
Radiotema
Human being with feelings
 
Join Date: Dec 2019
Posts: 1
Default No files

Hi!
I loaded Timer Recording Tool script presented by planetnine with an interrupted schedule like this:

But after end of cycle there is no new file created for new recording cycle instead recording still continues in one large file. It's normal or bug? I think it's main thing this script must to do - to end and create different files for each cycle, right?
Can anybody help to do changes in script for realize this recording algorithm?
Thanks
Radiotema is offline   Reply With Quote
Old 01-18-2020, 06:34 PM   #21
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 589
Default

Would it be possible to record for 20 days, each day on a new track automatically ?
Let's say 10 hours a day.
I know , I know but it's for an art project.
permeke is offline   Reply With Quote
Old 01-18-2020, 06:48 PM   #22
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@permeke
would be possible via scripting


or with Markers actions for Rec and Stop Rec placed at right timecodes and a play cursor not stop for 10 days.
I dont think there is limit in project time.
X-Raym is offline   Reply With Quote
Old 01-19-2020, 05:20 AM   #23
permeke
Human being with feelings
 
Join Date: Dec 2019
Posts: 589
Default

Quote:
Originally Posted by X-Raym View Post
@permeke
would be possible via scripting


or with Markers actions for Rec and Stop Rec placed at right timecodes and a play cursor not stop for 10 days.
I dont think there is limit in project time.

really ?
can I PM you ?
permeke is offline   Reply With Quote
Old 01-22-2020, 05:19 PM   #24
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

how do we set the start and end times???

also tried the record now and it did nothing
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 02-12-2020, 01:54 AM   #25
osy
Human being with feelings
 
Join Date: Jun 2015
Location: Finland
Posts: 9
Default Did ver. 6 break the timer?

Hello,
I have been using this great little tool for timed recording on my two PCs for quite some time. Now, I just realised, it does not work anymore. I have recently upgraded my Reaper to version 6 on both machines (6.03 now). Could that be the reason?

The problem is that nothing happens when the timer hits the scheduled start of recording.

BR, Otso
osy is offline   Reply With Quote
Old 02-12-2020, 03:55 PM   #26
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@osy

There is indeed a problem with the script,



you can try to backtrace that from this line (742)



Code:
     cyc_count = floor((time_now - recst_time) / reccy_time) + 1; //check cycle according to time





For some reason, reccy_time can 0, so the variable BUG and so are the next functions (and record doesn't trigger.


I tried to see why reccy_time could be equal to 10 and if that would be problematic but I dont understand most of the code. Not sure what this line is supposed ot be in a first place (count cycle count suremy but why with this equation, I dont know).
But maybe you can just override it somehow by forcing a value or anything.
or go back to reccy_time declaration and find if it fails there.


ANyway, this script is indeed broken.
X-Raym is offline   Reply With Quote
Old 08-09-2020, 05:15 PM   #27
maestrodon
Human being with feelings
 
Join Date: Nov 2010
Location: Texas
Posts: 6
Default

Quote:
Originally Posted by hilluck View Post
Hi Nathan

In Perth we don't have daylight saving so it's currently UTC+ 8 hrs.

Thanks so much for assisting with the offset. Love your script and really appreciate your help.

Goes with out saying, as a Reaper licensed user since it was created, I'm pretty much a fan of this program!!

Cheers

Ian
This is way late for the qustion, but maybe this will help others.

I found a simple solution to the timezone issue with a simple code change of two lines.

in the function: function show_time_line (x,y)
look a few lines into it for the line:
Code:
time(time_now); //get time (granuarity to 1 sec)
after that line add another line and place this code:
Code:
time_now += (timezone_offset*3600); // time zone offset in hours, defined in init()
Then in the function: function init ()
place this code on its own line:
Code:
timezone_offset = 8; // Perth time zone in hours from UTC
I used timezone_offset = -5 for my USA CDT timezone, but you can set to whatever variable you need, based on your time zone offset from UTC.

You could, of course, hardcode the first piece of code and not worry about defining it in init () but it's better practice, and easier to change for anyone if you define it in the init function. Note: anything after the double slash // is a comment. You can write whatever you want.


BTW, I'm using this script with REAPER 6. It works fine for me. (Win 10 64bit)
maestrodon is offline   Reply With Quote
Old 11-01-2020, 11:07 AM   #28
osy
Human being with feelings
 
Join Date: Jun 2015
Location: Finland
Posts: 9
Default It does work!

I am little bit embarrassed: the problem was probably all along that the Rec segment was set to 00:00:00!

I suppose it had been a while since my last use of the recorder when I got the 6.x update, that I just did not remember to set the length or recording.

I am super happy now!
osy is offline   Reply With Quote
Old 07-02-2021, 03:01 PM   #29
javiramallo
Human being with feelings
 
javiramallo's Avatar
 
Join Date: Oct 2012
Location: Merida, Spain
Posts: 388
Default

Great, thank you!
javiramallo is offline   Reply With Quote
Old 01-26-2022, 07:58 PM   #30
simcc
Human being with feelings
 
Join Date: Jan 2022
Posts: 1
Default

Quote:
Originally Posted by planetnine View Post
Loaded it up and tried it again. It records any record-armed tracks according to the timer settings. You can set a rec time of an hour and a cycle time of 24 hours to rec at a set time every day.

The clock ignores dylight-saving time on my laptop, no biggie, but might put an option in.

You need to disable prompt for record-save on stop really to use this.








>
Your script works great, just wanted to say thanks!
simcc 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 11:48 PM.


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