Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 06-30-2017, 10:15 AM   #1
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default Alternative Play-Stop Transport Actions (with "memory" & no undo points)

Hello!

I just wanted to say that in Reapack you may find my alternative Transport actions:
- amagalma_Transport Play (with memory - no undo)
Plays and stores "starting position"
- amagalma_Transport Play-Stop (with memory - no undo)
Plays and stores "starting position" OR Stops and stores "ending position"
- amagalma_Transport Stop - Toggle position (with memory - no undo)
Stops and toggles between starting and ending positions

There are many similar Cubase-style actions in the forum, and since they get requested every now and then I thought to share my versions in ReaPack.
The third one doesn't work like in Cubase - where the cursor goes back to the starting position and when pressed again goes to the start of the project - but toggles between the position where Play had started and the position where it stopped.


I hope you find them useful

See post #3
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)

Last edited by amagalma; 09-25-2017 at 07:14 AM.
amagalma is offline   Reply With Quote
Old 06-30-2017, 06:25 PM   #2
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

NICE and thanks ...these will be handy
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-25-2017, 06:57 AM   #3
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Actions have been updated and a new action has been added:
amagalma_Toggle behavior of Play-Stop buttons

The new action is just a toggle that you can put on a toolbar button and changes the behavior of my actions:
-if it is enabled then when you Stop the edit cursor stays at the last play cursor position
-if disabled then edit cursor returns to the start of play position (Reaper's default)

In both cases, the other actions work like this:
amagalma_Transport Play (with memory - no undo)
- Plays if stopped, Pauses if playing, resumes Play if paused and stores this location in memory as the last "start of play" location
amagalma_Transport Play-Stop (with memory - no undo)
- toggles between Play and Stop. Where the edit cursor will be depends on the setting of "amagalma_Toggle behavior of Play-Stop buttons"
amagalma_Transport Stop - Toggle position (with memory - no undo)
- Stops playing. If already stopped, then toggles between the last "start of play" location and the last "end of play" location.

All in ReaPack
__________________
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 09-27-2017, 02:40 AM   #4
Mottemania
Human being with feelings
 
Join Date: Apr 2016
Posts: 103
Default

Nice feature I missed from PT
Mottemania is offline   Reply With Quote
Old 02-18-2018, 08:18 PM   #5
cool
Human being with feelings
 
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 958
Default

Quote:
Originally Posted by amagalma View Post
Actions have been updated and a new action has been added:
amagalma_Toggle behavior of Play-Stop buttons

The new action is just a toggle that you can put on a toolbar button and changes the behavior of my actions:
-if it is enabled then when you Stop the edit cursor stays at the last play cursor position
-if disabled then edit cursor returns to the start of play position (Reaper's default)
Thank you! Great script! Works perfect for me. But, unfortunately, the status of the button is not saved in the project, it is very uncomfortable for me. I tried adding commands
SetExtState
GetExtState
into amagalma_Toggle behavior of Play-Stop buttons.lua, but I did not succeed, I'm not a good programmer.
Can you do it? Is there any possibility of this?
cool is offline   Reply With Quote
Old 02-21-2018, 06:14 AM   #6
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

The status of the button cannot be loaded when a project loads, therefore it would not help if the status was saved in the project external state rather than the global external state.

If the devs added the ability to run a script when a project loads, then I could make two actions, one for each button state, and you could bind the one you want to each project of yours.

At the moment, it is nor possible
__________________
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 02-21-2018, 07:18 AM   #7
cool
Human being with feelings
 
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 958
Default

Quote:
Originally Posted by amagalma View Post
The status of the button cannot be loaded when a project loads, therefore it would not help if the status was saved in the project external state rather than the global external state.

If the devs added the ability to run a script when a project loads, then I could make two actions, one for each button state, and you could bind the one you want to each project of yours.

At the moment, it is nor possible
Thank you!

upd.
I found an alternative solution. Just added id script into global startup action in SWS menu.

Last edited by cool; 02-22-2018 at 02:32 AM.
cool is offline   Reply With Quote
Old 02-21-2018, 12:28 PM   #8
LugNut
Human being with feelings
 
Join Date: Jun 2013
Location: So Florida
Posts: 1,428
Default

Hi,
Thanks so much for this script. I come from logic and its been years trying to get stop to stay where you stop:-)
But I can't use reapack because I'm on xp. Is there another way to get your script?
Thanks
LugNut is offline   Reply With Quote
Old 02-22-2018, 10:58 AM   #9
Triode
Human being with feelings
 
Triode's Avatar
 
Join Date: Jan 2012
Posts: 1,180
Default

Quote:
Originally Posted by amagalma View Post
If the devs added the ability to run a script when a project loads, then I could make two actions, one for each button state, and you could bind the one you want to each project of yours.

At the moment, it is nor possible
Can sws project startup action be used?
__________________
Mixing / Brush and Beater Drums Online: www.outoftheboxsounds.com
Triode is online now   Reply With Quote
Old 02-22-2018, 11:07 AM   #10
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by LugNut View Post
Hi,
Thanks so much for this script. I come from logic and its been years trying to get stop to stay where you stop:-)
But I can't use reapack because I'm on xp. Is there another way to get your script?
Thanks
You have to go the page of each script in Reapack's GitHub, and manually copy/paste/import into Reaper. Are you sure Reapack doesn't work in XP? Alternatively, someone could upload them for you in ready-to-be-imported format. (Sorry but I am on my phone and cannot do it for you)

Quote:
Originally Posted by Triode View Post
Can sws project startup action be used?
This would load the same script each time a new project loads
__________________
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
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 07:05 AM.


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