|
|
|
03-06-2015, 05:36 PM
|
#1
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
Lua script idea: Track inspector
I'm opening this thread to see if there is interest in creating a script in Lua for REAPER 5, that would be a dockable track inspector. We have seen many requests of this, or to have two mixer windows to be able to have one as inspector and another as full mixer window. But I think a script for a specific inspector would be much better. Anyone interested? Anyone can collaborate here. We have already many things from spk77 scripts that can be used as a start. What do you say spk77 ?
If there is interest we could start with some ideas first.
so, leave your comment.
|
|
|
03-07-2015, 12:47 AM
|
#2
|
Human being with feelings
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
|
What do you need? Some of us have had a go at inspector-type scripts for our own particular workflows. Have you a list of what you want displaying?
I made an "item inspector" to give me item and take-centric info (esp relating to time from the take's perspective), what info do you want to display?
>
|
|
|
03-07-2015, 01:36 AM
|
#3
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
@planetnine
I am thinking kind of one of the tracks in the MCP window
To start it should include.
|
|
|
03-07-2015, 05:26 AM
|
#4
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Nice idea!
I'm "polishing" my Lua slider/button/mouse code and trying to make it a little easier to use. I'm already seeing that GUI handling is easier in Lua (compared to EEL)
Maybe I should post the GUI (slider/mouse) related code here, if/when I get it working correctly.
|
|
|
03-07-2015, 05:32 AM
|
#5
|
Human being with feelings
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
|
I'd certainly love to use it for the colour swatch window.
|
|
|
03-07-2015, 05:40 AM
|
#6
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
Quote:
Originally Posted by spk77
Nice idea!
I'm "polishing" my Lua slider/button/mouse code and trying to make it a little easier to use. I'm already seeing that GUI handling is easier in Lua (compared to EEL)
Maybe I should post the GUI (slider/mouse) related code here, if/when I get it working correctly.
|
is it possible that the slider could be vertical too? TO make it control the track's volume fader for example.
then a small horizontal slider to control track's panning, or dual sliders for dual panning)
Yes, Lua is better for many things and it is quite nice to work with. I don't like that I don't know if Notepad++ can match the blocks "End" like searching for the if of a particular End, like it matches parenthesis ( ... ) with CTRL+B
in the REAPER IDE we don't have my preferred copy/paste shortcuts, but it can match lua blocks.
|
|
|
03-07-2015, 06:09 AM
|
#7
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by heda
is it possible that the slider could be vertical too? TO make it control the track's volume fader for example.
then a small horizontal slider to control track's panning, or dual sliders for dual panning)
|
Vertical sliders should be possible - there are functions in the code for "slider_val to x_coord" and "x_coord to slider_val" -conversions. I'll add "slider_val to y_coord" and "y_coord to slider_val" functions.
Quote:
Originally Posted by heda
Yes, Lua is better for many things and it is quite nice to work with. I don't like that I don't know if Notepad++ can match the blocks "End" like searching for the if of a particular End, like it matches parenthesis ( ... ) with CTRL+B
in the REAPER IDE we don't have my preferred copy/paste shortcuts, but it can match lua blocks.
|
How do you do this "match blocks" thing? EDIT: Found it while writing this: CTRL-T
I think I'm going to retreat into my coding cave soon
|
|
|
03-07-2015, 07:27 AM
|
#8
|
Human being with feelings
Join Date: Mar 2007
Location: Vancouver
Posts: 2,279
|
Quote:
Originally Posted by heda
@planetnine
I am thinking kind of one of the tracks in the MCP window
To start it should include.
|
I suggest making the controls image based. The images can even be directly referenced from the ColorThemes folder of the theme being used. The aesthetic and look of the Track Inspector would then better match the rest of the UI.
Shane
__________________
"Music should be performed by the musician not by the engineer."
Michael Wagener 25th July 2005, 02:59 PM
|
|
|
03-07-2015, 08:03 AM
|
#9
|
Human being with feelings
Join Date: Aug 2011
Posts: 1,272
|
Ooh, yes yes yes. I would love a track inspector!
|
|
|
03-07-2015, 10:29 AM
|
#10
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by Shan
I suggest making the controls image based. The images can even be directly referenced from the ColorThemes folder of the theme being used. The aesthetic and look of the Track Inspector would then better match the rest of the UI.
Shane
|
I think it wouldn't be too difficult to make the slider code work also for image files.
Anyone good at making knobs/sliders in JKnobMan?
http://www.g200kg.com/en/software/knobman.html
I used JKnobMan to make knobs for this JSFX:
http://forum.cockos.com/showthread.p...31#post1421831
(LICEcap doesn't capture it perfectly)
Screenshot:
Here's the .knob files if someone wants to test them in JKnobMan:
https://stash.reaper.fm/23566/H%26K_metal_knob.7z
|
|
|
03-07-2015, 12:29 PM
|
#11
|
Human being with feelings
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
|
a side note to these great ideas. I would love a "receives inspector" that could be assigned to a headphone/cue track for the musicians in the live room to use on a touch screen (one each).
We can kind of do this now with a few ways but non of them are great and can be resized etc.
Just a thought.
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
|
|
|
03-07-2015, 12:54 PM
|
#12
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,591
|
Quote:
Originally Posted by musicbynumbers
a side note to these great ideas. I would love a "receives inspector" that could be assigned to a headphone/cue track for the musicians in the live room to use on a touch screen (one each).
We can kind of do this now with a few ways but non of them are great and can be resized etc.
Just a thought.
|
And a brilliant one!!
|
|
|
03-07-2015, 01:04 PM
|
#13
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
hehe.. JKnobman is great. I didn't know about it. But I also like the minimalistic slider rectangle that you have Look at Windows 8. It is in fashion to do minimal design nowadays.
I would prefer to have all the functionality first and then look how to make it themable if needed.
For example, I think I know how to do the meter, it would be getting the CreateTrackAudioAccessor(MediaTrack track) like in the track_fft script example. But it seems it doesn't work in midi tracks. So we may encounter with a technical limitation there that ruins all the script. I would like to know about this and if it is solvable or not.
I'll patiently wait until spk77 exits from the coding cave and releases his new Lua sliders
Keep the ideas coming.
- I like the idea of having a button shortcut for Airon's color swatch tool that automatically selects the track and opens the swatchs.
- Another idea would be to have a track's note area text field that reads SWS track notes.
- other fields like indicator of track's time base, and shortcut to change it.
- archive button. It will mute the track and its sends, put all fx offline, and hide the track.
|
|
|
03-07-2015, 01:07 PM
|
#14
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
Quote:
Originally Posted by musicbynumbers
a side note to these great ideas. I would love a "receives inspector" that could be assigned to a headphone/cue track for the musicians in the live room to use on a touch screen (one each).
We can kind of do this now with a few ways but non of them are great and can be resized etc.
Just a thought.
|
one of the reasons I don't use headphone track receives as standard receives was that. Because I don't like to use the small faders in the IO window. So this idea would be great
|
|
|
03-07-2015, 01:07 PM
|
#15
|
Human being with feelings
Join Date: Mar 2007
Location: Vancouver
Posts: 2,279
|
Quote:
Originally Posted by spk77
I think it wouldn't be too difficult to make the slider code work also for image files.
|
Correct. That wheel has already been reinvented on the JS side:
The content for the controls can come straight from the ColorTheme folder.
Shane
__________________
"Music should be performed by the musician not by the engineer."
Michael Wagener 25th July 2005, 02:59 PM
|
|
|
03-07-2015, 02:55 PM
|
#16
|
Human being with feelings
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
|
Quote:
Originally Posted by heda
one of the reasons I don't use headphone track receives as standard receives was that. Because I don't like to use the small faders in the IO window. So this idea would be great
|
cool!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
|
|
|
03-08-2015, 07:35 AM
|
#17
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Little progress - using the same "slider engine" with image files:
(adjusting master track's hardware out "Channel1/Channel2")
|
|
|
03-08-2015, 07:51 AM
|
#18
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,591
|
Quote:
Originally Posted by spk77
Little progress - using the same "slider engine" with image files:
(adjusting master track's hardware out "Channel1/Channel2")
|
Omg I love you!!!!! Headphone Mixer here we come!!!!!!!!
|
|
|
03-08-2015, 07:59 AM
|
#19
|
Human being with feelings
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
|
woo hoo!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
|
|
|
03-08-2015, 03:41 PM
|
#20
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
More testing:
Adding sliders dynamically and testing "undo point creating":
(Not ready yet - this is quite difficult )
|
|
|
03-08-2015, 04:08 PM
|
#21
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,591
|
Beyond AWESOME!!!!!!!!!!
|
|
|
03-08-2015, 04:16 PM
|
#22
|
Human being with feelings
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
|
double woo hoo!
That will be so useful!
Do you think it will be possible to open more than one at once?
(ducks behind chair)
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
|
|
|
03-09-2015, 04:27 PM
|
#24
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Thanks all!
@musicbynumbers - it should be possible, but currently these sliders work "one-directionally" (changing send volume in Reaper doesn't update these knobs. That means: changing volume in one of these script windows doesn't update the others)
Hope I will get something ready in this week...there are many things to fix (f.ex gfx paths are hard coded at the moment)
Testing...
- docking to different dockers
- "smart" knob image positioning
- adjusting volume is smoother now (added some formulas here and there )
|
|
|
03-09-2015, 10:22 PM
|
#25
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
it's great spk77
I would add this option to be able to dock it anywhere.
if gfx.w > gfx.h then
-- add the knobs horizontally
else
-- add knobs vertically
end
I guess we are going to run out of dockers soon For REAPER 5 we continuously requested more toolbars. And we have them now. We need to do the same for more dockers, dockers inside dockers
Last edited by heda; 03-10-2015 at 02:25 AM.
|
|
|
03-10-2015, 03:36 AM
|
#26
|
Human being with feelings
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
|
very cool!
.. again!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
|
|
|
03-10-2015, 03:45 AM
|
#27
|
Human being with feelings
Join Date: Sep 2010
Location: Finland
Posts: 776
|
Again many thanks spk77! This is highly valuable pioneering work you've done here, and it'll surely be useful in future ReaScript endeavors.
As some of these scripts will work as a permanent part of the GUI, and not just an on-call pop-up window, I wonder if the API allows you to get information from the currently used theme file?
If not, then it would be worth considering extending the API functions to allow the use of theme elements (knobs, sliders) and theme colors in ReaScript GUIs. This request would have to be directed to Cockos of course..
By the way, is it possible to dock a ReaScript window, and have it be recalled as a part of a screenset? If not, that's another request then.
Again, thanks for the amazing work!
__________________
Grey, flat and minimal theme for Reaper: Symbiosis
|
|
|
03-11-2015, 07:44 AM
|
#28
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Thanks!
Quote:
Originally Posted by Seventh
As some of these scripts will work as a permanent part of the GUI, and not just an on-call pop-up window, I wonder if the API allows you to get information from the currently used theme file?
If not, then it would be worth considering extending the API functions to allow the use of theme elements (knobs, sliders) and theme colors in ReaScript GUIs. This request would have to be directed to Cockos of course..
|
I'm quite sure that this isn't possible at the moment.
Quote:
Originally Posted by Seventh
By the way, is it possible to dock a ReaScript window, and have it be recalled as a part of a screenset? If not, that's another request then.
Again, thanks for the amazing work!
|
Thanks!
Hmmm...At least we can store "script window dockstate" to the project file.
First things first - here's an Import files test: https://stash.reaper.fm/23594/Import%20test.zip
There are 3 files in the zip: - H&K_metal_knob.png
- Import test.lua (load this from the action list)
- slider.lua
If someone could test it, I would be very happy - it should look like this:
(It just draws the "H&K_metal_knob.png" -file "slices" to the screen - no any functionality yet)
Last edited by spk77; 03-11-2015 at 07:55 AM.
|
|
|
03-11-2015, 07:50 AM
|
#29
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,591
|
OMW !!!!!!!!! Chuuuuchuuuuu
Edit: It works without any error,like on your gif
Last edited by Sexan; 03-11-2015 at 08:04 AM.
|
|
|
03-11-2015, 08:24 AM
|
#30
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by Sexan
OMW !!!!!!!!! Chuuuuchuuuuu
Edit: It works without any error,like on your gif
|
Thanks! I think the "path issue" is now solved - I can continue working on it .
|
|
|
03-11-2015, 08:38 AM
|
#31
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
The idea of having a meter in the track inspector has to be discarded since we cannot get the signal after the FX in the track. See track_fft thread.
But having a track inspector with all the other elements is still interesting. And if we can put a meter it would be a pre-fx meter. Which maybe it is interesting too. But not as the meter in the MCP.
|
|
|
03-11-2015, 08:43 AM
|
#32
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Quote:
If someone could test it, I would be very happy - it should look like this:
|
It works flawlessly.
|
|
|
03-11-2015, 10:18 AM
|
#33
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
EDIT... see post #37 the stash won't let me delete the old bad one... wtf????
spk77 here is a test knob for what you are working on...
lot more frames than what you had and if you want I can get you the knob files or make other variation to your specs.
Last edited by hopi; 03-11-2015 at 02:21 PM.
|
|
|
03-11-2015, 11:04 AM
|
#34
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,591
|
Quote:
Originally Posted by hopi
|
nothing to download? 0 bytes
|
|
|
03-11-2015, 02:10 PM
|
#35
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
darn... the stash was behaving strangely... let me see if I can fix that
|
|
|
03-11-2015, 02:14 PM
|
#36
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by hopi
|
Yes, please ! I'll add them to the zip file I posted earlier.
Frame sizes could be f.ex. - 32 x 32
- 64 x 64
- 128 x 128
I don't know how many frames per knob there should be...
"H&K_metal_knob.png" full size is 8192 x 64. It has 128 frames. One frame is 64 x 64)
It's also possible to rotate a source image, but light and shadows wouldn't be "right" then.
As Sexan already mentioned, this file seems to be empty:
https://stash.reaper.fm/theme/1544/H%..._knob%2001.png
Zip file in post#28 updated - added... - H&K_metal_knob_32_fr.png (only 32 frames - this isn't smooth)
- Import test_animated knob.lua (add this to the action list)
|
|
|
03-11-2015, 02:20 PM
|
#37
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
ok too bad I did not see your post first... but have a look as a sketch anyway plz
https://stash.reaper.fm/v/23602/H%26K..._knob%2001.rar
that other link is hosed.. the stash will not let me manage the file...
Now spk77 I'd be happy to help out however, since you have given me so much... this knob is just an idea but I can set up others and just send you knob files if you wish...
|
|
|
03-11-2015, 02:26 PM
|
#38
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
Quote:
Originally Posted by spk77
Yes, please ! I'll add them to the zip file I posted earlier.
Frame sizes could be f.ex. - 32 x 32
- 64 x 64
- 128 x 128
I don't know how many frames per knob there should be...
"H&K_metal_knob.png" full size is 8192 x 64. It has 128 frames. One frame is 64 x 64)
It's also possible to rotate a source image, but light and shadows wouldn't be "right" then.
As Sexan already mentioned, this file seems to be empty:
https://stash.reaper.fm/theme/1544/H%..._knob%2001.png
Zip file in post#28 updated - added... - H&K_metal_knob_32_fr.png (only 32 frames - this isn't smooth)
- Import test_animated knob.lua (add this to the action list)
|
Ok... we can work with whatever you decide you want...
the number of frames really just makes the movement smoother and finer
I've used as many as into the 200's but doubt there is need for that here...
the one up'd is 108 frms at 32 x 32 px... and it avoids shadows and such...
It should be a transparent background... so if you specify some color for the script background, hopefully the knob will just lay over that.
Mind you this is just one type... there could easily be many others.
|
|
|
03-11-2015, 02:50 PM
|
#39
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by hopi
ok too bad I did not see your post first... but have a look as a sketch anyway plz
https://stash.reaper.fm/v/23602/H%26K..._knob%2001.rar
that other link is hosed.. the stash will not let me manage the file...
Now spk77 I'd be happy to help out however, since you have given me so much... this knob is just an idea but I can set up others and just send you knob files if you wish...
|
Thanks - It looks very nice!
It's added to the zip file in post#28 ("Import test_animated knob.lua" is also updated)
|
|
|
03-11-2015, 03:20 PM
|
#40
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by hopi
Ok... we can work with whatever you decide you want...
the number of frames really just makes the movement smoother and finer
I've used as many as into the 200's but doubt there is need for that here...
the one up'd is 108 frms at 32 x 32 px... and it avoids shadows and such...
It should be a transparent background... so if you specify some color for the script background, hopefully the knob will just lay over that.
Mind you this is just one type... there could easily be many others.
|
Thanks, and please keep them coming (everyone else too ) - I'll add them to the zip file.
100-128 frames seems to be quite smooth.
Knob "style" and w x h can actually be anything - nothing is decided yet
|
|
|
Thread Tools |
|
Display Modes |
Linear 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 07:43 AM.
|