Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 10-23-2018, 02:07 AM   #1
meta
Human being with feelings
 
Join Date: Sep 2018
Posts: 32
Default JSFX: Load audio files from anywhere on disk + supporting more audio formats

Two suggestions for the price of one!

- A new type of slider that can be set to the path of any file on disk. (Through a OS native browse dialog or TrackFX_SetNamedConfigParm). Additionally changing file_open to be able to open files from anywhere on disk not just REAPER\Data, maybe with an added argument to specify whether the input is relative to REAPER\Data or an external absolute path.

- If I'm not mistaken the only audio formats openable by JSFX are .wav and .ogg. Would be possible/difficult to add support for more?
meta is offline   Reply With Quote
Old 10-23-2018, 03:39 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by meta View Post
- If I'm not mistaken the only audio formats openable by JSFX are .wav and .ogg. Would be possible/difficult to add support for more?
I suspect the audio file reading code in JesuSonic dates back to the earliest days, maybe even before Reaper. These days it should not be difficult to make use of Reaper's PCM_sources that implement the audio file reading support in the main application. (However, it would be more problematic for the standalone JSFX plugin, they'd need to add the Reaper PCM_source implementations for that too or just leave that use the old limited audio file support...)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 10-23-2018, 04:04 AM   #3
Masi
Human being with feelings
 
Join Date: Sep 2015
Posts: 683
Default

Yes, please!

Masi

PS: BTW, there is a bug that the slider is broken when you use the syntaxt with = to name the slider.
Masi is offline   Reply With Quote
Old 10-24-2018, 01:34 PM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 5,284
Default

Quote:
Originally Posted by Masi View Post
PS: BTW, there is a bug that the slider is broken when you use the syntaxt with = to name the slider.
Please post Bug-reports into the corresponding forums. This makes life easier for the devs...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-13-2019, 03:14 PM   #5
sai'ke
Human being with feelings
 
sai'ke's Avatar
 
Join Date: Aug 2009
Location: NL
Posts: 1,263
Default

Loading audio from anywhere on disk would open doors to a lot of additional creative plugins by allowing drag and drop from the media explorer.

I was hoping that I could use the return string of gfx_getdropfile(0, strhandle) in file_open, but it seems that absolute paths don't work at all

While it is possible to have a separate lua script copy these files for me, this is kind of a pain for the user. Also, it'd make a big trashpile in the data dir.
__________________
[Tracker Plugin: Thread|Github|Reapack] | [Routing Plugin: Thread|Reapack] | [More JSFX: Thread|Descriptions|Reapack]
sai'ke is online now   Reply With Quote
Old 11-28-2020, 09:59 PM   #6
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 14,196
Default

Quote:
Originally Posted by sai'ke View Post
Loading audio from anywhere on disk would open doors to a lot of additional creative plugins by allowing drag and drop from the media explorer.

I was hoping that I could use the return string of gfx_getdropfile(0, strhandle) in file_open, but it seems that absolute paths don't work at all

While it is possible to have a separate lua script copy these files for me, this is kind of a pain for the user. Also, it'd make a big trashpile in the data dir.
A little late, but coming in 6.17!

Last edited by Justin; 11-28-2020 at 10:07 PM.
Justin is online now   Reply With Quote
Old 11-30-2020, 06:34 AM   #7
sai'ke
Human being with feelings
 
sai'ke's Avatar
 
Join Date: Aug 2009
Location: NL
Posts: 1,263
Default

Quote:
Originally Posted by Justin View Post
A little late, but coming in 6.17!
Oh wow! Thanks a lot! Looking forward to taking this for a spin

So many new options!
__________________
[Tracker Plugin: Thread|Github|Reapack] | [Routing Plugin: Thread|Reapack] | [More JSFX: Thread|Descriptions|Reapack]
sai'ke is online now   Reply With Quote
Old 11-30-2020, 10:08 PM   #8
Wahed
Human being with feelings
 
Wahed's Avatar
 
Join Date: Dec 2009
Posts: 15
Default

Quote:
Originally Posted by Justin View Post
A little late, but coming in 6.17!
Wonderful !!! Thank you very much !
Wahed is offline   Reply With Quote
Old 12-14-2020, 04:05 AM   #9
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 11,641
Default

I checked that this works for text files in 6.18.

Code:
 handle = file_open("cc table/test.txt");
works (file test.txt is in the Appdata\Roaming\Reaper\Data\cc table\ folder)
Code:
 handle = file_open("c:/test/test.txt");
works (file test.txt is in the c:\test\ folder)
Code:
 handle = file_open("c:/test/test.ttt");
works (file test.ttt is in the c:\test\ folder)
(With this syntax, we now can handle text files that don't feature the extension ".txt")
Code:
 handle = file_open("/test/test.txt");
does not work (file test.txt is in the c:\test\ folder)
(Default drive not used: supposedly no problem at all. )

-Michael

Last edited by mschnell; 12-14-2020 at 04:21 AM.
mschnell is online now   Reply With Quote
Old 12-14-2020, 07:29 AM   #10
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 3,805
Default

Quote:
Originally Posted by sai'ke View Post
Oh wow! Thanks a lot! Looking forward to taking this for a spin

So many new options!
never dived in JSFX . I think probably this will be a very good reason to!
Would love to see a basic example!

Looking forward to see what you are up to!
__________________
Some of my Requests : Pre Chain and Post Chain : Midi input reaching take instrument : Alias names for sends : Hide Specific sends on Sends Panel/TCP/MCP : please take care of the small workflow details ...
deeb is offline   Reply With Quote
Old 12-14-2020, 11:15 AM   #11
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 3,382
Default

For what can this be useful, for audio and for midi? Any list from your head what would come to your mind typically? (before implementing anything, just to understand the possibilities space)

Can RS5k be used in a better way because of this? (Because I have seen a few RS5k requests lately)
TonE 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 02:05 PM.


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