Old 06-21-2009, 02:33 PM   #1
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 7,432
Default Accessing samples off-line?

Is it possible for a JS effect to access the samples of a media item "off-line"? That is, not accessing the samples in the @sample block while Reaper plays, but instead looping/iterating through the samples?
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Fabian is offline   Reply With Quote
Old 06-21-2009, 02:40 PM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Sorry, no, it doesn't look like it. Only way is to "record" the audio in realtime in to the plugin.

edit : If you are really interested in doing something like this, then Reaper extensions or VST plugins could do it, of course with the high cost of having to learn C++ development for Windows/Mac. While not a standard part of VST, Reaper can provide VST plugins quite comprehensive access to the Reaper project it is running in. (Essentially the same capabilities as the Reaper extension plugins have.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.

Last edited by Xenakios; 06-21-2009 at 03:05 PM.
Xenakios is offline   Reply With Quote
Old 06-22-2009, 01:47 AM   #3
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 7,432
Default

Ok, thanks, that confirms what I thought.

Yes, coding a Reaper plugin would be the way to go. I have actually managed to code a "Hello World" plugin (and it works!), so I could start from there, but I'm not sure my idea is worth the bother. Accessing the samples in real-time would do, I would just have to wait a little longer to get the result.

Maybe your Python interface...?

Thanks again, Xen.
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Fabian is offline   Reply With Quote
Old 06-22-2009, 02:32 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Fabian View Post
Ok, thanks, that confirms what I thought.

Yes, coding a Reaper plugin would be the way to go. I have actually managed to code a "Hello World" plugin (and it works!), so I could start from there, but I'm not sure my idea is worth the bother. Accessing the samples in real-time would do, I would just have to wait a little longer to get the result.

Maybe your Python interface...?

Thanks again, Xen.
If the Reaper extensions API or the ReaPython thing will be useful depends on what you want to do. They don't really allow processing of the audio from tracks. The audio processing they are capable (though not really yet with ReaPython) of doing can happen at the media item take level, ie. you can create new media item types which can play audio files or generate their own audio in a custom way (examples of that built into Reaper are the click source and the SMPTE generator items). You can also play your custom audio through Reaper's global audio playback system (preview) like the Media Explorer does, or play that audio through the tracks. But there is no mechanism to do exactly something like the regular fx/instrument plugins, for that you have to do JS or VST plugins etc.
__________________
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
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:20 AM.


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