Old 01-27-2017, 02:48 AM   #1
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,690
Default Clean up Project by Reaper Script

I ask on behalf of a friend of mine who is doing Reaper scripting (in Python).

Right now he does a kind of Jukebox (to be enhanced vastly in future).

For this, his script needs to command Reaper to load a wav file in a new item in a new track and play it. Works great.

For the next "disk" he needs to clean up before doing the same.

But he did not find an API call for "clean up" and deleting stuff results in prompts that can't be satisfied by the script.

IMHO, we should find answers to both questions:
- is there a simple way to clean up a project via a script ?
- how to avoid or satisfy prompts that are generated by dialogues that pop up when using the appropriate ReaScript API (or prevent the dialogues from popping up, at all) ?

Thanks,
-Michael
mschnell is online now   Reply With Quote
Old 01-27-2017, 08:51 AM   #2
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,241
Default

what dialogue prompts exactly? I don't understand if you need to delete items, or files. It shouldn't be a problem.
You could invite your friend to come here and ask himself with more detail
heda is offline   Reply With Quote
Old 01-27-2017, 12:31 PM   #3
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,690
Default

Quote:
Originally Posted by heda View Post
You could invite your friend to come here and ask himself with more detail
Done.

-Michael

Last edited by mschnell; 02-02-2017 at 04:34 AM.
mschnell is online now   Reply With Quote
Old 02-02-2017, 04:03 AM   #4
charlipower
Human being with feelings
 
Join Date: Jul 2015
Location: Germany
Posts: 13
Default

Hi to all. I'm the mentioned friend.

Here the Facts:
I have a Python based UI for Reaper using a DB to maintain about 8000 recorded audio snipplets of phonecalls from a callcenter app.

Each snipplet is an mp3 file that should be loaded into a reaper track at track start to do some play and visual reviews on that file. That works fine so far in my app(via beyond ...).

When the next file should be analyzed, I have to cleanup the current Reaper project, no items no track anymore to start an analysis with the next file.

Question:

How do I force a clean project without hanging on prompts during track or item delete?
charlipower 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 08:08 AM.


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