|
|
|
04-22-2010, 10:38 AM
|
#1
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,691
|
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.
|
|
|
04-23-2010, 12:21 AM
|
#2
|
Human being with feelings
Join Date: Feb 2008
Location: france
Posts: 230
|
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.
|
|
|
04-23-2010, 12:56 AM
|
#3
|
Human being with feelings
Join Date: Sep 2008
Location: Sweden
Posts: 7,433
|
Quote:
Originally Posted by zorn
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...
|
|
|
04-23-2010, 01:59 AM
|
#4
|
Human being with feelings
Join Date: Feb 2008
Location: france
Posts: 230
|
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.
|
|
|
04-23-2010, 02:56 AM
|
#5
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,691
|
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
|
|
|
04-23-2010, 03:17 AM
|
#6
|
Human being with feelings
Join Date: Apr 2008
Location: Saarlänner
Posts: 1,141
|
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.
|
|
|
04-23-2010, 03:48 AM
|
#7
|
Human being with feelings
Join Date: Feb 2008
Location: france
Posts: 230
|
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
|
|
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:40 PM.
|