Old 12-17-2009, 04:35 AM   #1
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,295
Default Action request:: Transport: Double/Half current BPM.

Quote:
I use the playback rate a lot, but lots of times I want to quickly change the BPM not the rates.

Useful actions:

Transport: Double/Half current BPM.
Transport: Increase/decrease BPM by 1/10
any script for this?
Reflected is offline   Reply With Quote
Old 12-17-2009, 01:41 PM   #2
sfzgeek
Human being with feelings
 
sfzgeek's Avatar
 
Join Date: Feb 2009
Location: Dunedin, New Zealand
Posts: 205
Default

Last time I checked, I couldn't see any APIs for changing the Tempo or Play Rate.
__________________
My rawk band: The Hidden Venture.
sfzgeek is offline   Reply With Quote
Old 12-17-2009, 02:26 PM   #3
MikeLacey
Human being with feelings
 
Join Date: Dec 2006
Location: UK
Posts: 789
Default

Hi Reflected,

You can call the REAPER standard actions in a macro for these actions; search for 'play rate' in the Actions menu.
__________________
Mike Lacey, Leicestershire, UK
MikeLacey is offline   Reply With Quote
Old 12-17-2009, 02:46 PM   #4
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,295
Default

Quote:
Originally Posted by MikeLacey View Post
Hi Reflected,

You can call the REAPER standard actions in a macro for these actions; search for 'play rate' in the Actions menu.
yea I know m8, it is easy to create octave (100%)+- playrates macro...but the play rate effects the sound of audio items (strech it/ pitch it..)...

this is why I noted that I want to change the Bpm not the play rates.
Reflected is offline   Reply With Quote
Old 12-17-2009, 06:53 PM   #5
NAS
Human being with feelings
 
NAS's Avatar
 
Join Date: Dec 2007
Location: In church, burning it down
Posts: 1,345
Default

Nope sadly BPM is missing from the actions you could do it with an external app that sent a tap hehehehe
But beyond that no

It is something that really needs sorting out

NAS
__________________
Not Gods or Saints but HUMAN be
NAS is offline   Reply With Quote
Old 12-17-2009, 08:21 PM   #6
frog_jr
Human being with feelings
 
frog_jr's Avatar
 
Join Date: Sep 2007
Location: Here at the Western World
Posts: 1,253
Default

Quote:
Originally Posted by NAS View Post
Nope sadly BPM is missing from the actions you could do it with an external app that sent a tap hehehehe
You could make a AHK script that would do that. Not send a tap, just cut the rate in half or double it.
frog_jr is offline   Reply With Quote
Old 12-18-2009, 04:37 AM   #7
MikeLacey
Human being with feelings
 
Join Date: Dec 2006
Location: UK
Posts: 789
Default

Quote:
Originally Posted by frog_jr View Post
You could make a AHK script that would do that. Not send a tap, just cut the rate in half or double it.
You can? That's (a lot) more than I thought AHK could do.
__________________
Mike Lacey, Leicestershire, UK
MikeLacey is offline   Reply With Quote
Old 12-20-2009, 07:41 AM   #8
slops
Human being with feelings
 
slops's Avatar
 
Join Date: Jul 2007
Posts: 619
Default

Quote:
Originally Posted by sfzgeek View Post
Last time I checked, I couldn't see any APIs for changing the Tempo or Play Rate.
yup, that was the first thing i looked for when i first started messing with all this great Reascript stuff. was extremely sad to see you can't change change the bpm.

maybe they'll add that to the API in the near future?
slops is offline   Reply With Quote
Old 12-20-2009, 05:06 PM   #9
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,295
Default

Done
http://forum.cockos.com/project.php?issueid=1760
Reflected is offline   Reply With Quote
Old 12-20-2009, 08:55 PM   #10
frog_jr
Human being with feelings
 
frog_jr's Avatar
 
Join Date: Sep 2007
Location: Here at the Western World
Posts: 1,253
Default

Quote:
Originally Posted by MikeLacey View Post
You can? That's (a lot) more than I thought AHK could do.
Yeah well my ahk can kick your perl's butt. Here's a dead simple script to do those things and a couple more.

With this script/executable you can halve, double, increment or decrement the bpm by 1/10, or divide by 4 and then multiply by 3 (effectively convert 4/4 time to 3/4.)

It also lets you open a bpm entry dialog box by pressing Ctrl-Win-Alt-b, so you don't have to use the mouse to type in a new bpm. Also lets you use the spacebar to tap tempo, temporarily.


It works by hotkey or by a very tiny GUI, which you can toggle to the front and back by pressing Win-Alt-t. Try it, it makes it feel a lot more usable to know you can do that.

It works for me with Reaper 3.15 and should work for at least any 3.n version. Does nothing without Reaper running. PM me if there are any problems with it.

I made an executable too. dl: http://homeofthegnome.net/4.rpr/temporizer.exe Of course I strongly recommend you install ahk instead, but there it is. Here is the script: http://homeofthegnome.net/4.rpr/temporizer.ahk


Quote:
---------------------------
---------------------------
temporizer.ahk
---------------------------
This little program has six functions and each one has a button and/or a hotkey.

The hotkeys are as follows:

Ctrl-Win-Alt-numpad1 -- half tempo
Ctrl-Win-Alt-numpad2 -- double tempo
Ctrl-Win-Alt-numpad0 -- subtract 1/10 tempo
Ctrl-Win-Alt-numpad-dot -- add 1/10 tempo
Ctrl-Win-Alt-b -- manually enter tempo (bpm)
Ctrl-Win-Alt-numpad3 -- Convert 4/4 to 3/4 time
Ctrl-Win-Alt-F8 to tap tempo
And you may press Win-Alt-t to toggle hidden status for the GUI
Ctrl-Win-Alt-Esc -- Reload GUI (And see this screen again)
Ctrl-Win-Alt-Backspace -- Exit App

-- Thank you,

The Management
---------------------------
OK
---------------------------
Note that the splash screen gives you all the hotkeys, and you can reload the program/script any time to see it again.

;-----------------------------------------------------
Added just now: Ctrl-Win-Alt-Pause to suspend the script's hotkeys in event of any conflict

Correction to spash screen text. The macros for reload are Ctrl-Win-Alt-Escape and Ctrl-Win-Alt-backspace for exit app. My apologies.

Last edited by frog_jr; 12-21-2009 at 02:36 PM. Reason: IROCD
frog_jr is offline   Reply With Quote
Old 12-21-2009, 04:06 AM   #11
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,295
Default

Coowl frog!

btw, I love this kind of vertical "toolbar", can be really useful to have such a thing for custom actions, much more needed than 4 extra toolbars imo, also because it is vertical and I have wide screen. :P




Thanks man

I will make a FR for vertical tool as well.
Reflected is offline   Reply With Quote
Old 12-21-2009, 07:05 AM   #12
slops
Human being with feelings
 
slops's Avatar
 
Join Date: Jul 2007
Posts: 619
Default

Quote:
Originally Posted by frog_jr View Post
Yeah well my ahk can kick your perl's butt. Here's a dead simple script to do those things and a couple more.
i use AHK all the time for simple stuff, but i had NO IDEA it could do all that.
thats some amazing work there...!
slops is offline   Reply With Quote
Old 12-21-2009, 07:32 AM   #13
MikeLacey
Human being with feelings
 
Join Date: Dec 2006
Location: UK
Posts: 789
Default

Quote:
Originally Posted by frog_jr View Post
Yeah well my ahk can kick your perl's butt.
Yeah? Well I can crash REAPER (and Windows) in three languages...

Seriously, AHK looks more than capable. And it can control a lot more than just REAPER I guess.
__________________
Mike Lacey, Leicestershire, UK
MikeLacey is offline   Reply With Quote
Old 12-21-2009, 11:19 AM   #14
frog_jr
Human being with feelings
 
frog_jr's Avatar
 
Join Date: Sep 2007
Location: Here at the Western World
Posts: 1,253
Default

Quote:
Originally Posted by MikeLacey View Post
AHK looks more than capable. And it can control a lot more than just REAPER I guess.
Been around about 10 years now and going strong (with Perl Compatible RegExp's now for almost a year!) So it's best for text and mathematical operations IMO, but can do far more than most scripting languages, and the one-click compiling is sweet too, so you can make a quick-n-dirty workaround for your friends and they can use it right away.

It's best to use Reaper's native macro and actions dialogues wherever possible, but anything you can do with those can also be automated with ahk. And more besides.

If you use this much at all, you should use the hotkeys. They make it a whole lot better.


Cheers, frog
frog_jr is offline   Reply With Quote
Old 12-21-2009, 11:32 AM   #15
frog_jr
Human being with feelings
 
frog_jr's Avatar
 
Join Date: Sep 2007
Location: Here at the Western World
Posts: 1,253
Default

Quote:
Originally Posted by slops View Post
i use AHK all the time for simple stuff, but i had NO IDEA it could do all that.
thats some amazing work there...!
I wish I were all that great. My understanding of ahk is still pretty rudimentary, as is this little script. If you want to do stuff like this and more, maybe try playing around with Rajat's SmartGUI. It's a great tool for making GUI apps in a few minutes. And of course the Sendmessage and Postmessage commands make it especially useful for Reaper.

Cheers, frog

;-----------------------------------------------------

Pls. note I made a minor correction above to the instructions for the hotkeys for reload and exit app. Sorry bout that. The text in the splash screen for the executable and script have been corrected also.

Last edited by frog_jr; 12-21-2009 at 02:39 PM. Reason: IR dummy
frog_jr 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 10:46 AM.


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