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

Reply
 
Thread Tools Display Modes
Old 05-28-2020, 05:22 PM   #41
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,866
Default

Glad ou find some usable workaround, and thx for your consideration !


Enjoy REAPER !
X-Raym is offline   Reply With Quote
Old 05-30-2020, 05:39 AM   #42
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

@JonasHAnd: Nice you have found a work-around

Quoting myself:
Quote:
Originally Posted by amagalma View Post
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).
For me this script was a way to implement take markers. Since now we have them natively, it is not of big use to me

Quote:
Originally Posted by X-Raym View Post
@amagalma
It would be too bad ifyou can't take advantage of my improvements.
Maybe should I open source it...
Quote:
Originally Posted by X-Raym View Post
I have built a successfull cue/loop function injector which doesnt break existing stuffs, I share the code with you ASAP. (03-02-2020, 07:59 PM)
Still waiting
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)

Last edited by amagalma; 05-30-2020 at 05:44 AM.
amagalma is offline   Reply With Quote
Old 05-30-2020, 05:44 AM   #43
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,917
Default

Yes, I would be interested in what you’ve come up with, Raymond...


>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 07-07-2020, 09:25 PM   #44
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Bob... thanks so much for this... it is just great. I wasn't aware of it until just now but it is EXACTLY what I needed!



Quote:
Originally Posted by MusoBob View Post
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

__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 10-12-2020, 07:54 AM   #45
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

@amalgama : Very nice script !

I just used it on audio items, but now I'd like to use it on MIDI items too, but it doesn't seem to work with those (it says "no markers can be embedded to the selected items").

Is it normal ?
djabthrash is offline   Reply With Quote
Old 10-12-2020, 08:07 AM   #46
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

Quote:
Originally Posted by djabthrash View Post
@amalgama : Very nice script !

I just used it on audio items, but now I'd like to use it on MIDI items too, but it doesn't seem to work with those (it says "no markers can be embedded to the selected items").

Is it normal ?

Yes, it works only with WAV files..
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 10-12-2020, 08:13 AM   #47
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by amagalma View Post
Yes, it works only with WAV files..
My bad, i just realized there is no such thing as markers for MIDI items ...

Anyway, thank you for the script !

Last edited by djabthrash; 10-12-2020 at 08:21 AM.
djabthrash is offline   Reply With Quote
Old 10-12-2020, 11:45 AM   #48
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,640
Default

Quote:
Originally Posted by djabthrash View Post
@amalgama : Very nice script !

I just used it on audio items, but now I'd like to use it on MIDI items too, but it doesn't seem to work with those (it says "no markers can be embedded to the selected items").

Is it normal ?
How to you want to write markers to the midi file ?
manually with a text box at the cursor ?
write project markers to item markers ?
write project regions to item markers ?
write notation event text to item markers ?
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 10-12-2020, 11:55 AM   #49
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by MusoBob View Post
How to you want to write markers to the midi file ?
manually with a text box at the cursor ?
write project markers to item markers ?
write project regions to item markers ?
write notation event text to item markers ?
Same as it's done to audio items with Amagalma's script.

Basically writing project markers to item markers.
djabthrash is offline   Reply With Quote
Old 10-12-2020, 12:41 PM   #50
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,640
Default

Right click Save Link/Target As
ReaTrak marker names to midi item markers.lua

ReaTrak region names to midi item markers.lua

ReaTrak delete all markers in selected midi item.lua

ReaTrak delete existing midi markers and notation event text to midi text marker.lua

__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 10-12-2020, 01:46 PM   #51
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,866
Default

@djabthrash
Use take marker

I have made a free script for converting project marker to take markers
X-Raym is offline   Reply With Quote
Old 10-13-2020, 12:06 AM   #52
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

These look fantastic !

Are they available through ReaPack ?
djabthrash is offline   Reply With Quote
Old 10-13-2020, 12:07 AM   #53
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by X-Raym View Post
@djabthrash
Use take marker

I have made a free script for converting project marker to take markers
Hi Raymond,

what is the name of your script ? Is it available through Reapack ?
djabthrash is offline   Reply With Quote
Old 10-13-2020, 02:05 AM   #54
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,640
Default

I only just made the scripts.

X-Raym Reapack
Add take markers from project markers to selected takes
Create project markers from selected takes markers
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 10-14-2020, 05:03 AM   #55
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by MusoBob View Post
I only just made the scripts.

X-Raym Reapack
Add take markers from project markers to selected takes
Create project markers from selected takes markers
Thank you !

Just tried your scripts and they work just fine indeed.

The reason i didn't resort to using X-raym scripts at first was because i couldn't see those in my actions' list, even when was my Reapack was updated and those very scripts are said to be installed (as seen in the "browse packages" ReaPack window) ...
And i still can't see them in my actions' menu, even after updating ReaPack once again, and still seeing those scripts as "installed" ...

What am i missing ?


Last edited by djabthrash; 10-14-2020 at 05:10 AM. Reason: screenshot
djabthrash is offline   Reply With Quote
Old 10-14-2020, 05:20 AM   #56
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,640
Default

What are you typing in the filter box, I can't quite see it ?
With markers in the midi item they will save on export.

__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 10-14-2020, 05:26 AM   #57
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by MusoBob View Post
What are you typing in the filter box, I can't quite see it ?
If you right-click my screenshot and choose "open link in new tab", you can see what i typed in my filter.

I typed "add take marker", and i can see scripts with these words, but not that X-raym one (while i have other X-raym scripts shown my actions' list otherwise)...

Last edited by djabthrash; 10-14-2020 at 05:29 AM. Reason: extra info
djabthrash is offline   Reply With Quote
Old 10-14-2020, 05:36 AM   #58
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,640
Default

it should be in
Scripts\X-Raym Scripts\Items Properties
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 10-14-2020, 05:41 AM   #59
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by MusoBob View Post
it should be in
Scripts\X-Raym Scripts\Items Properties
It is, but i can't see it in my actions' menu list

djabthrash is offline   Reply With Quote
Old 10-14-2020, 06:34 AM   #60
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,866
Default

You can import scripts manually into action list if they are not registered !


Action window -> New -> Load Script.
X-Raym is offline   Reply With Quote
Old 10-16-2020, 09:01 AM   #61
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by X-Raym View Post
You can import scripts manually into action list if they are not registered !


Action window -> New -> Load Script.
Just did that indeed, thank you.

Any idea why this action (and other random ones) would not show up directly in the actions' menu (without having to import the script manually), even when it's said to be "installed" in Reapack ?
djabthrash is offline   Reply With Quote
Old 10-17-2020, 01:32 AM   #62
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,866
Default

Probably deleted by the user :P
X-Raym is offline   Reply With Quote
Old 10-17-2020, 01:56 AM   #63
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by X-Raym View Post
Probably deleted by the user :P
Why would i delete one of your amazing scripts Raymond ? Hein ?
djabthrash is offline   Reply With Quote
Old 10-18-2020, 10:56 AM   #64
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,866
Default

@djabthrash
To feel once again the pleasure it give to import them in your action wondow :M
X-Raym is offline   Reply With Quote
Old 10-18-2020, 11:44 AM   #65
djabthrash
Human being with feelings
 
Join Date: Dec 2018
Location: Paris (France)
Posts: 152
Default

Quote:
Originally Posted by X-Raym View Post
@djabthrash
To feel once again the pleasure it give to import them in your action wondow :M
Hahaha. Up there with sex and sunday night pizza !
djabthrash is offline   Reply With Quote
Old 06-23-2021, 09:57 AM   #66
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 564
Default

Sorry about bumping this post.
I keep getting this waring message:
Code:
No markers can be embedded to the selected items
Am I doing something wrong?


EDIT:I've known what the problem is. There is a region before the marker. In your code:
Code:
local _, num_markers = reaper.CountProjectMarkers( 0 )
You only get the number of markers, but when you loop through the markers:
Code:
for m = 0, num_markers-1 do
    local _, _, marker_pos, _, marker_name = reaper.EnumProjectMarkers( m )
It doesn't exclude regions, that may cause an error.
Attached Images
File Type: png 6sRxIedZl5.png (18.3 KB, 207 views)

Last edited by dsyrock; 06-23-2021 at 10:33 AM.
dsyrock is offline   Reply With Quote
Old 07-01-2021, 06:32 AM   #67
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

Quote:
Originally Posted by dsyrock View Post
Sorry about bumping this post.
I keep getting this waring message:
Code:
No markers can be embedded to the selected items
Am I doing something wrong?


EDIT:I've known what the problem is. There is a region before the marker. In your code:
Code:
local _, num_markers = reaper.CountProjectMarkers( 0 )
You only get the number of markers, but when you loop through the markers:
Code:
for m = 0, num_markers-1 do
    local _, _, marker_pos, _, marker_name = reaper.EnumProjectMarkers( m )
It doesn't exclude regions, that may cause an error.

Oh thanks, you are right! Will post a fix soon.

Edit: Done!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)

Last edited by amagalma; 07-01-2021 at 06:50 AM.
amagalma 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 09:30 PM.


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