Old 08-15-2018, 03:41 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,674
Default Q: how to change a Marker name?

I am trying to change the name of an existing Marker from an OSCII-bot script

I have the following code snippets:

in the ReaperOSC file: MARKER_NAME s/marker/@/name
in the script @ init: reaper_marker_name = "s/marker/%s/name"; //MARKER_NAME
in the script @midimsg: oscsend(OSC_to_REAPER, reaper_marker_name, "NEW NAME", "1"); // = "s/marker/%s/name"; //MARKER_NAME

The OSC Logger shows that this message is sent to Reaper: /marker/1/name Value: NEW NAME but the marker name does not change. I tried it with a marker name of "M1" (as that is how it appears in the Region/ Marker Manager) but no success.

What have I missed?

PS It did not work with the equivalent lines for renaming a track either.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 08-21-2018, 09:33 AM   #2
goldenarpharazon
Human being with feelings
 
Join Date: Feb 2016
Posts: 189
Default

This thread may be helpful for how MARKER_NAME should work especially from post #19 onwards.
https://forum.cockos.com/showthread.php?t=132785
Is DEVICE_MARKER_COUNT > 0 ie changed from default?

Last edited by goldenarpharazon; 08-21-2018 at 09:43 AM.
goldenarpharazon is offline   Reply With Quote
Old 08-24-2018, 02:46 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,674
Default

Thank you. I'll have a look at that thread.


I did have "DEVICE_MARKER_COUNT 1" specified. From the linked thread it seems that that variable is not really a count but it specifies the highest marker number that can be used.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 08-24-2018 at 02:55 AM.
DarkStar 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:51 PM.


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