Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 12-09-2018, 06:57 PM   #1
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default Write project markers as media cues to selected items' active takes' source




amagalma_Write project markers as media cues to selected items' active takes' source files (WAV only)
(in ReaPack)

# Writes the project markers that cross the selected items as media cues of the selected items' active takes' source files

- Overwrites the files
- Issues warning if markers are going to appear to other items in the project that share the same source file
- To erase an existing media cue, place an unnamed project marker at the position of the cue
amagalma is offline   Reply With Quote
Old 12-10-2018, 04:00 AM   #2
poplomop
Human being with feelings
 
Join Date: Jan 2010
Posts: 180
Default

Cool thank you amagalma!
poplomop is offline   Reply With Quote
Old 12-10-2018, 12:48 PM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,032
Default

You suucceeded to make it work without render ? :P
X-Raym is offline   Reply With Quote
Old 12-10-2018, 03:01 PM   #4
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default

Yes :P

I even have a version where the old cue/list chunks get turned to junk chunks (if they are mid file) and the new ones are appended, or they get overwritten if at the end, as we had discussed. In that version, writing cues is instantaneous, but I finally chose to go the other route as I feel it safer. In this version a new temp file is created and after checking that all went well, the old one is erased and the temp is renamed as the old one.
amagalma is offline   Reply With Quote
Old 12-10-2018, 03:04 PM   #5
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 311
Default

Nice!!
Vagelis is offline   Reply With Quote
Old 12-10-2018, 10:48 PM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,032
Default

@amalgama
Very great job I can drop dev of my version of this then, you succeeded to make something more optimized and actually ready for public release :P
X-Raym is offline   Reply With Quote
Old 12-11-2018, 05:33 AM   #7
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default

Thanks for the kind words by a script guru! I didn't mean to spoil the development of your version though.. It is just something I wanted for my personal use and I shared (actually all my scripts in ReaPack are made for me in the first place).
If you have some other idea (I liked the window list with the cues you had made), and you think you could use part of my code for its development, please feel free to do it! Or we could collaborate if you want!
amagalma is offline   Reply With Quote
Old 12-11-2018, 08:54 AM   #8
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,032
Default

dont worry for my version ^^ the dev was on hold, so the path was clear and open for you All that matterd is that we know have a working public version. and this is good !
X-Raym is offline   Reply With Quote
Old 12-29-2018, 09:50 PM   #9
brookhinton
Human being with feelings
 
Join Date: Nov 2018
Posts: 1
Default

This is fantastic. Until we get item markers we can now at least simulate them.
Does this also work with regions? Or just markers?
brookhinton is offline   Reply With Quote
Old 12-30-2018, 01:46 AM   #10
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default

Just markers. I could make it work with regions too but I am not sure what would be the best workflow to add/remove them, and since markers were enough for my personal use, I did not add the region functionality.
amagalma is offline   Reply With Quote
Old 03-30-2019, 12:32 AM   #11
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 1,028
Default

Thanks for this ! I have been looking for something to do this without have to render.
Is it possible to modify it so you can get user input for the name @ cursor pos of selected item
rather than markers or region name ?
MusoBob is offline   Reply With Quote
Old 03-30-2019, 11:15 AM   #12
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,498
Default

You are welcome! It is possible to do another script that does what you say, but I have no time at the moment... When I have time I 'll do it
amagalma is offline   Reply With Quote
Old 03-30-2019, 02:43 PM   #13
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 1,028
Default

Thanks, much appreciated.
MusoBob is offline   Reply With Quote
Old 05-20-2019, 10:26 PM   #14
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 1,028
Default

This seems to work ok, I only had to change a couple of lines.
Thanks again !
(it wasn't working at first because unknowingly the same wav was in use in another app !)

right click save Target/Link As
ReaTrak insert media cue to selected item active take wav source file.lua

__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
MusoBob 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:35 AM.


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