|
|
|
06-30-2019, 10:15 AM
|
#201
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
Quote:
Originally Posted by solger
Quick update about the 'preview for attached project audio demos' feature:
I finally had some time to look into this and a first implementation is most likely already part of the next update (coming soon - still testing & fixing some things before it's ready for release)
|
<3 !
can't wait
|
|
|
07-16-2019, 04:58 AM
|
#202
|
Human being with feelings
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
|
Is it possible to remove many projects at once by using "remove entry" function? (Recent Projects tab)
|
|
|
07-16-2019, 08:40 AM
|
#203
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by Skorobagatko
Is it possible to remove many projects at once by using "remove entry" function? (Recent Projects tab)
|
With the next update (currently it's only one entry at a time)
|
|
|
07-16-2019, 10:30 AM
|
#204
|
Human being with feelings
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
|
Quote:
Originally Posted by solger
With the next update (currently it's only one entry at a time)
|
Got it, thanks for the great script!
|
|
|
07-31-2019, 07:47 AM
|
#205
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Hey Solger, not sure what you did, but I can now see the project templates on my Mac in ReaLaunch, thanks!
|
|
|
07-31-2019, 08:05 AM
|
#206
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
The next big ReaLauncher update with a couple of new things is finally here
Quote:
version 1.5
+ Added support for key inputs
+ Added preview option for attached audio demo files of projects and templates (requires js_ReaScriptAPI)
+ [Recent projects]: Multiple selected entries can now be removed at once (prior it was only one entry at a time)
+ [Project Lists]: Skip empty entries when reading .rpl files
+ [Backups] tab added for .rpp-bak files
+ [Options]: Added checkbox for 'Prompt to save on new project' (requires SWS Extensions)
+ [Help] tab added
+ macOS / Linux: fix for file paths containing empty spaces
+ General code optimization and bugfixing
|
Here's a little bit of info** about using the new Audio Preview function:
Quote:
- - - - - - -
Audio preview
- - - - - - -
Requires js_ReaScriptAPI installed
1) Place an audio file with identical name into the same folder as the project or template file
Supported file types: WAV, FLAC, MP3, OGG
Example:
testproject.RPP --> testproject.WAV
2) Turn the preview volume knob to adjust the preview volume (0 - 100 %)
3) Start & stop a preview of a selected entry:
- Via DOUBLE CLICK on the preview volume knob
- Or by using the corresponding key shortcut
|
** this info and other hints are now also available in the new [Help] tab.
|
|
|
07-31-2019, 08:06 AM
|
#207
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by _Stevie_
Hey Solger, not sure what you did, but I can now see the project templates on my Mac in ReaLaunch, thanks!
|
Hey,
yeah, I changed some things in the file reading code, in general. And fixed a 'path bug', as well
Quote:
+ macOS / Linux: fix for file paths containing empty spaces
|
|
|
|
07-31-2019, 08:17 AM
|
#208
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Quote:
Originally Posted by solger
Hey,
yeah, I changed some things in the file reading code, in general. And fixed a 'path bug', as well
|
Ahh, that was it, amazing!
I remembered you couldn't reproduce the issue back then, so I thought a fix wouldn't be possible.
Thanks again!
|
|
|
08-01-2019, 10:46 AM
|
#209
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
I think I found a bug:
when ReaLauncher is open and you click on "New project", nothing happens.
When you hit "n", though, a new project gets loaded.
Windows 10 x64 here.
|
|
|
08-02-2019, 03:20 AM
|
#210
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
hey
I'm getting error:
solger_ReaLauncher.lua:102: attempt to call a nil value
|
|
|
08-02-2019, 04:50 AM
|
#211
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by _Stevie_
I think I found a bug:
when ReaLauncher is open and you click on "New project", nothing happens.
When you hit "n", though, a new project gets loaded.
Windows 10 x64 here.
|
Thanks for the info.
Bug confirmed. I renamed several functions and somehow overlooked to rename the one the New project button is calling, as well.
Quote:
Originally Posted by Reflected
hey
I'm getting error:
solger_ReaLauncher.lua:102: attempt to call a nil value
|
Hey,
Are there any more details shown in the error message? If so, can you please post the entire error message.
And after doing which steps, etc. does the error message appear exactly?
Last edited by solger; 08-02-2019 at 05:13 AM.
|
|
|
08-02-2019, 06:03 AM
|
#212
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
You're welcome!
|
|
|
08-02-2019, 06:25 AM
|
#213
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
Quote:
Originally Posted by solger
Hey,
Are there any more details shown in the error message? If so, can you please post the entire error message.
And after doing which steps, etc. does the error message appear exactly?
|
hey I'm not doing much, just trying to Run realauncher from actions
|
|
|
08-02-2019, 07:21 AM
|
#214
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by Reflected
hey I'm not doing much, just trying to Run realauncher from actions
|
Ok. Line 102 is the first line for loading Lokasenna's GUI library for Lua.
So it looks like that you don't have Lokasenna's GUI library for Lua installed yet (via ReaPack).
More info in the 'Install instructions' in post #1.
|
|
|
08-02-2019, 08:17 AM
|
#215
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
Quote:
Originally Posted by solger
Ok. Line 102 is the first line for loading Lokasenna's GUI library for Lua.
So it looks like that you don't have Lokasenna's GUI library for Lua installed yet (via ReaPack).
More info in the 'Install instructions' in post #1.
|
already installed it.
i reinstalled it but I'm still getting this 102 error
|
|
|
08-02-2019, 08:27 AM
|
#216
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by Reflected
already installed it.
i reinstalled it but I'm still getting this 102 error
|
Just in case, since there are two different things available in ReaPack (the library and the developer tools): is the correct one installed? - Lokasenna's GUI libary v2 for Lua <-- that's the one you need
- Lokasenna's GUI libary v2 for Lua (developer tools)
And have you already tried if restarting Reaper makes any difference?
By the way: what Windows and Reaper version are you using in this case (and if it's the 32- or 64-bit one)?
Last edited by solger; 08-02-2019 at 08:33 AM.
|
|
|
08-02-2019, 08:50 AM
|
#217
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Thx for the update !
On windows, the script flashed come terminal windows at start:
I inspected the code but I didnt find from where it comes.
|
|
|
08-02-2019, 08:52 AM
|
#218
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Same here, but I think that's a side effect of executing the command prompt.
|
|
|
08-02-2019, 09:02 AM
|
#219
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by X-Raym
...
On windows, the script flashed come terminal windows at start:
...
I inspected the code but I didnt find from where it comes.
|
Yeah, it's related to the io.popen function (used for reading the files from the directories) which uses the command prompt/terminal window.
|
|
|
08-02-2019, 09:10 AM
|
#220
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
The only thing you could maybe do is hiding it with JS API.
|
|
|
08-02-2019, 09:13 AM
|
#221
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by _Stevie_
The only thing you could maybe do is hiding it with JS API.
|
Yeah, improving the file reading code (and hopefully getting rid of the flashing window) is on my todo-list. Unfortunately I haven't had time yet to dig deeper into the JS_API ...
But I'll add it as additional note to my list. Thanks.
|
|
|
08-02-2019, 09:24 AM
|
#222
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Have a look at this function:
https://www.extremraym.com/cloud/rea...ndow_SetZOrder
reaper.JS_Window_SetZOrder( windowHWND, ZOrder, insertAfterHWND )
For "ZOrder" I would try "BOTTOM". "insertAfterHWND" can be ignored for this case.
To get the hwnd, you can use this:
reaper.JS_Window_Find( title, exact )
|
|
|
08-02-2019, 09:27 AM
|
#223
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by _Stevie_
Have a look at this function:
https://www.extremraym.com/cloud/rea...ndow_SetZOrder
reaper.JS_Window_SetZOrder( windowHWND, ZOrder, insertAfterHWND )
For "ZOrder" I would try "BOTTOM". "insertAfterHWND" can be ignored for this case.
To get the hwnd, you can use this:
reaper.JS_Window_Find( title, exact )
|
Thanks. I'll check it out.
|
|
|
08-02-2019, 01:57 PM
|
#224
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
io.open shouldnt use CMd. I have several file reading scripts and none of them shows terminal. Something can be optimized their.
Take a look at this page : https://www.tutorialspoint.com/lua/lua_file_io
|
|
|
08-02-2019, 09:58 PM
|
#225
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by X-Raym
|
Thanks for the link.
Reading a file itself (as mentioned in your link) with io. open is working fine. In this case, I'm currently using io. popen ( https://www.lua.org/manual/5.1/manual.html#pdf-io.popen) in combination with the 'dir' (Windows) and 'find' (macOS/Linux) command in order to get a list of all the files inside a given directory (that's what I found at the time when I started to implement the file reading code).
I just looked through the Reaper API and saw that there's reaper.EnumerateFiles (List the files in the "path" directory) and reaper.EnumerateSubdirectories (List the subdirectories in the "path" directory). So I'll check these out.
Or do you perhaps know any other methods or functions for retrieving a file list from a directory?
Last edited by solger; 08-02-2019 at 10:41 PM.
Reason: typo
|
|
|
08-02-2019, 10:06 PM
|
#226
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
You might want to check out "Quick add FX or track template".
It searches thru all plugins, track templates and FX chains:
https://forum.cockos.com/showthread.php?t=220800
|
|
|
08-02-2019, 10:07 PM
|
#227
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by _Stevie_
|
Will take a look. Thanks.
|
|
|
08-03-2019, 12:53 AM
|
#228
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by Reflected
already installed it.
i reinstalled it but I'm still getting this 102 error
|
Another thing which just came into mind:
If you haven't already, run the Script: Set Lokasenna_GUI v2 library path.lua Action (again) from the Action List in order to set the path to the library.
EDIT: I've just added this step also to the install instructions in post #1 - just in case it might get overlooked somehow (for whatever reason).
Last edited by solger; 08-03-2019 at 02:02 AM.
|
|
|
08-03-2019, 04:22 AM
|
#229
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Quote:
command in order to get a list of all the files inside a given directory
|
Yes use enumerate files function,
here a code snippet from one of my scripts:
Code:
function EnumerateFiles( folder )
local files = {}
local i = 1
repeat
files[i] = reaper.EnumerateFiles( folder, i )
i = i + 1
until not retval
return files
end
Note: I tested to mode the script and this fix works. You have a GetFIles funciton, this is the one which need to replace.
Last edited by X-Raym; 08-03-2019 at 03:33 PM.
Reason: Optimized snippet
|
|
|
08-03-2019, 10:30 AM
|
#230
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
Quote:
Originally Posted by solger
Just in case, since there are two different things available in ReaPack (the library and the developer tools): is the correct one installed? - Lokasenna's GUI libary v2 for Lua <-- that's the one you need
- Lokasenna's GUI libary v2 for Lua (developer tools)
And have you already tried if restarting Reaper makes any difference?
By the way: what Windows and Reaper version are you using in this case (and if it's the 32- or 64-bit one)?
|
i tried both for devs and non.
restarting and everything
nothing help so far
using 64bit
|
|
|
08-03-2019, 03:24 PM
|
#231
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
Quote:
Originally Posted by solger
Another thing which just came into mind:
If you haven't already, run the Script: Set Lokasenna_GUI v2 library path.lua Action (again) from the Action List in order to set the path to the library.
.
|
oh...
i reinstalled it twice, but i didn't run the action lol
running it solves this problem. thanks solger!
loving your script!!
|
|
|
08-04-2019, 09:07 AM
|
#232
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
@Solger, I noticed that ReaLauncher closes just after a project has been loaded. How did you achieve that? Is there a way to get a project loading state from the API?
|
|
|
08-04-2019, 12:09 PM
|
#233
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by Reflected
oh...
i reinstalled it twice, but i didn't run the action lol
running it solves this problem. thanks solger!
loving your script!!
|
Thanks and great to hear that it's working now.
|
|
|
08-04-2019, 12:13 PM
|
#234
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by X-Raym
Yes use enumerate files function,
here a code snippet from one of my scripts:
...
Note: I tested to mode the script and this fix works. You have a GetFIles funciton, this is the one which need to replace.
|
Thanks for the snippet and info.
|
|
|
08-04-2019, 12:15 PM
|
#235
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by _Stevie_
@Solger, I noticed that ReaLauncher closes just after a project has been loaded. How did you achieve that? Is there a way to get a project loading state from the API?
|
I'm checking the state of the 'keep open' checkbox. If it's unchecked, gfx.quit() is called after the 'load project' action.
So basically these two lines are called back-to-back:
Code:
reaper.Main_openProject(name)
gfx.quit()
Last edited by solger; 08-04-2019 at 12:27 PM.
|
|
|
08-05-2019, 10:50 PM
|
#236
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
hey solger
I was thinking that maybe a small "play button" near every project name. so if the project has a preview, the button will be white and if not it will be gray, one click to play, one click to stop.
maybe something like this:
preview availiable = white play button
preview playing = green
no preview = gray
what do you think ?
|
|
|
08-06-2019, 05:42 AM
|
#237
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Quote:
Originally Posted by solger
I'm checking the state of the 'keep open' checkbox. If it's unchecked, gfx.quit() is called after the 'load project' action.
So basically these two lines are called back-to-back:
Code:
reaper.Main_openProject(name)
gfx.quit()
|
Thanks Solger! Ah so it’s basically Reaper itself that that executes the command after the project has been loaded.
|
|
|
08-06-2019, 09:47 AM
|
#238
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by Reflected
hey solger
I was thinking that maybe a small "play button" near every project name. so if the project has a preview, the button will be white and if not it will be gray, one click to play, one click to stop.
maybe something like this:
preview availiable = white play button
preview playing = green
no preview = gray
what do you think ?
|
Added to the wish list
I'll have to take a closer look at what's doable and also feasible in terms of performance, but I think having an indicator in some form (showing if a preview file is available) is probably a useful addition.
For now, I'd stick with a single 'play button' though (instead of adding a button to each list entry) - less elements which need to be managed & drawn.
|
|
|
08-08-2019, 03:00 AM
|
#239
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,294
|
thanks solger
this is so helpful!
|
|
|
08-14-2019, 11:13 AM
|
#240
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 811
|
Hi solger!
Great script! - I tried it out on my Linux box and the preview worked well!
However when I installed it on my main computer (W10, Reaper 5.981, 64 bit)
I cant get the preview - Lokasenna GUI is installed, js_ReaScriptAPI likewise
(with ReaPack),and I have a "projectname".mp3 (not real name) in my project folder.
No error message in bottom of ReaLauncher window - it says AUDIO PREVIEW: "projectname".mp3.
When playing mp3 in mediaplayer the sound is as good it can be with my music ;-).
Volume knob is at 79.
I have no clue why it not work.
What audio output is ReaLauncher using?
|
|
|
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 05:23 PM.
|