Old 04-22-2010, 10:38 AM   #1
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,691
Default Request, stop-play-record indicator

Can someone please make a plugin that will read the transport bar and when its on stop blue background with big Stop text,play green background and rec red?Can this be done in JS?I need something like Big Clock but with Transport State status that will be on one screen.Thank you

Last edited by Sexan; 04-22-2010 at 11:03 AM.
Sexan is offline   Reply With Quote
Old 04-23-2010, 12:21 AM   #2
zorn
Human being with feelings
 
Join Date: Feb 2008
Location: france
Posts: 230
Default

time or measure ? we don't have access to bar info in js.

edit : on second thought, js might not be the most efficient for this; not only we don't have real bar info, but even displaying the time properly is not trivial (no display text size in js)

Last edited by zorn; 04-23-2010 at 12:32 AM.
zorn is offline   Reply With Quote
Old 04-23-2010, 12:56 AM   #3
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 7,433
Default

Quote:
Originally Posted by zorn View Post
time or measure ? we don't have access to bar info in js.
??
The way I read the OP, it only concerns this (from http://reaper.fm/sdk/js/js.php#js_basic)
Code:
play_state
Context: @block, @sample
Usage: read-only
The current playback state of REAPER (0=stopped, <0=error, 1=playing, 2=paused, 5=recording, 6=record paused).
Or did I misunderstand?
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Fabian is offline   Reply With Quote
Old 04-23-2010, 01:59 AM   #4
zorn
Human being with feelings
 
Join Date: Feb 2008
Location: france
Posts: 230
Default

at first, that's what i thought also, so tried this
Code:
desc: big play state
filename:0,stop.png
filename:1,play.png
filename:2,pause.png
filename:3,record.png
filename:4,recordpaused.png

@init
gfx_a = 1;

@block
rstate = play_state;

@gfx 100 100
rstate >= 0 ? (
	gfx_file = rstate;
	rstate >= 5 ? gfx_file-= 2;
	gfx_x = gfx_y = 0;
	gfx_blit(gfx_file, gfx_w/200, 0);
);
with according gfx files (width 200 pix, format png), and the track record armed, this should display the current state.
but Sexan, i think ?, needs all info that is in the big clock plus the play state.
zorn is offline   Reply With Quote
Old 04-23-2010, 02:56 AM   #5
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,691
Default

no I dont need info from big clock, I sayed like a big clock,window on its own with state information only play,record and stop with background,but there is a problem, when I open a JS plugin (or vst....) and drag it to the third monitor,all plugins I open next opens on that monitor so I need to drag them back.Is there any setting to lock plugin on the screen?Is it easier to code this plugin from python so its an extension?Thank you very much for helping
Sexan is offline   Reply With Quote
Old 04-23-2010, 03:17 AM   #6
Blechi
Human being with feelings
 
Blechi's Avatar
 
Join Date: Apr 2008
Location: Saarlänner
Posts: 1,141
Default

Be sure to record arm the track that contains zorn's JS.
(select 'Record: disable (Input monitoring only)' if you don't want to record on this track)
The reason is that the play_state variable ignores the pause button if the track is not record armed.
See here.
Blechi is offline   Reply With Quote
Old 04-23-2010, 03:48 AM   #7
zorn
Human being with feelings
 
Join Date: Feb 2008
Location: france
Posts: 230
Default

Quote:
no I dont need info from big clock
ah ok, so here are the dummy gfx files i used; modify them to taste, if you wish (they are just red text over transparent background)
https://stash.reaper.fm/oldsb/867660/bigStatefiles.rar
zorn 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:40 PM.


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