Previous Thread
Index
Next Thread
Print Thread
Go To
Page 1 of 2 1 2
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075

Last edited by musocity; 01/09/24 07:05 AM.
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876


Hey Musocity,

I tried running the script and got a popup notification reading "No project markers present!"

Am I missing a step?

TIA


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075
Is it giving a line number error for the script ?
This is the script I use (click Edit to look at script): Script: Write take markers to all items on selected track source folder name.lua
Code
function Msg(value)
  reaper.ShowConsoleMsg(tostring(value).."\n")
  
end


os_type = reaper.GetOS() -- "Mac OSX" -- "Win64" --

sel_track = reaper.GetSelectedTrack2( 0, 0,  0 ) 

sel_track_count = reaper.CountSelectedTracks(0)
   
if not sel_track then 
  reaper.MB("Select Track", "Notice",0)
  goto finish_tm
end

if sel_track_count ~= 1 then
  reaper.MB("Select 1 Track", "Notice",0)
  goto finish_tm
end

reaper.Undo_BeginBlock() -- Begining of the undo block. Leave it at the top of your main function.

reaper.Main_OnCommand(40289,0) -- Item: Unselect (clear selection of) all items
    
reaper.Main_OnCommand(40421,0) -- Item: Select all items in track
   
  
for i=0, reaper.CountSelectedMediaItems(0)-1 do

  media_item = reaper.GetSelectedMediaItem(0, i)
  take = reaper.GetMediaItemTake(media_item, 0)
  source = reaper.GetMediaSourceFileName(reaper.GetMediaItemTake_Source(take), "")
  
  startOffset = reaper.GetMediaItemTakeInfo_Value(take, "D_STARTOFFS")
  --Msg("source "..source)
  if string.find(source,"Drums") or string.find(source,"DRUMS")then
    drums = 1
  else
    drums = 0
  end
  
  --Msg("drums "..drums)
  
  if source then
    if os_type ~= "Win32" and os_type ~= "Win64" then
    --Mac OS
      RT_track_name = string.match(source, "RealTracks/(.+)/")
      if string.find(source,"Drums") then
        RD_track_name = string.match(source, "Drums/(.+)/")
      end  
      if string.find(source,"DRUMS")then
        RD_track_name = string.match(source, "DRUMS/(.+)/")
      end  
    else
    --Win OS
      RT_track_name = string.match(source, "RealTracks\\(.+)\\")
      if string.find(source,"Drums") then
        RD_track_name = string.match(source, "Drums\\(.+)\\")
      end  
      if string.find(source,"DRUMS") then  
        RD_track_name = string.match(source, "DRUMS\\(.+)\\")
      end
    end
  
  end
  
  
  
    if drums == 0 then
      track_name = RT_track_name
    else
      track_name = RD_track_name
    end
  --Msg("track_name "..track_name)
 
  
  reaper.SetTakeMarker( take, 0, track_name, startOffset, reaper.ColorToNative(80, 237, 123 )|0x1000000) 
  
end  
  
reaper.Main_OnCommand(40289,0) -- Item: Unselect (clear selection of) all items
  

  
reaper.UpdateArrange() -- Update the arrangement (often needed)
  
reaper.Undo_EndBlock("Write take markers to track items", -1) -- End of the undo block. Leave it at the bottom of your main function.



::finish_tm::

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
No line number. I've attached a screenshot so you could also see what items were and weren't checked in the Send to Reaper options in case that is affecting things. (I am trying to keep as few things checked for fear of generating files that I don't need...)

[Linked Image - Only viewable when logged in]


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075
You are using a different Script: ReaTrak amagalma_Write project markers or regions as media cues to selected items active takes source files.lua
to write chord names into the wav file you need some regions or markers, to get them just unfold the BB Plugin Chord sheet, then drag the C7 icon (right click for options) to the start of an empty track in Reaper and import the markers, you can leave as markers or change to regions with action > markers to regions

The script here is to write the RealTrack or RealDrum name in the items as take markers, this only works if you are using WAV Instructions in Reaper. It will look at the RealTrack/Drum source folder name.

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075
You have Send Audio for Midi track, this will take longer, best to uncheck that and just drag the midi in or use a Send.
So the "Script: Write take markers to all items on selected track source folder name.lua" will only work on the RT/RD using wav instructions (all the little separate items) it won't work on a rendered midi to wav file.
EDIT: there is also "Script: ReaTrak insert media cue to selected item active take wav source file.lua" that will write text into a wav file as a cue where the cursor is in selected item.

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Omg, I feel like a moron for missing that I was using the wrong script crazy

For some reason when copied the proper script to me folder and rebooted Reaper it did not show up when I searched for in the action list. So I imported it instead and it worked like a charm!

And wow, thanks a lot for this script! At the very least, I can see how helpful it would be to see everything especially when you are working on a region further towards the right side of the screen, and also when reordering and reorganizing tracks.

But then I realized that the fact the text is embedded in each item, and I can drag things around and have multiple items from multiple tracks all on a single track with each item being clearly demarcated what it is.... this is absolute genius!!! grin

Is there a way to embed the chord information as well?


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Follow up question: Is there a way to "Favorite" scripts?

And another issue just popped up. I'm not sure what I did, but now whenever I try to run the scrip I got a popup error box saying "...rs to all items on selected track source folder name.lua:79: bad argument #3 to 'SetTakeMarker' (string expected, got nil)" (the error message begins with the ellipsis)


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Originally Posted by musocity

Fantastic! I'll try this out and let you know if I have any issues :-)


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
And yet another follow up question, if I can't get it to also automatically generate chord info with the RT info in each item, is it possible to modify the text to add that information?


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075
You have a recent list in the Actions menu, or you can go to the Scripts folder, copy a script then rename it with a unique name in front of it the load that script in, then search for that name. You should be able to make a toolbar with buttons that run scripts.

https://forums.cockos.com/showthread.php?p=1157743

[Linked Image - Only viewable when logged in]

[Linked Image - Only viewable when logged in]

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Fantastic, thanks again!


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075
Originally Posted by DeaconBlues09
Follow up question: Is there a way to "Favorite" scripts?

And another issue just popped up. I'm not sure what I did, but now whenever I try to run the scrip I got a popup error box saying "...rs to all items on selected track source folder name.lua:79: bad argument #3 to 'SetTakeMarker' (string expected, got nil)" (the error message begins with the ellipsis)

That only works if the item source is in the RealTracks or Drums folder.
Right click on the item > Source properties (this will show the file and path)
send me a pic

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Originally Posted by musocity
You have a recent list in the Actions menu, or you can go to the Scripts folder, copy a script then rename it with a unique name in front of it the load that script in, then search for that name. You should be able to make a toolbar with buttons that run scripts.

https://forums.cockos.com/showthread.php?p=1157743

[Linked Image - Only viewable when logged in]

[Linked Image - Only viewable when logged in]

Where can I find this toolbar? I tried finding that action and searched the Reatrack sub folders in my script folder for "Reatrak MIDI Toolbar" and can't find it there...


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Originally Posted by musocity
Originally Posted by DeaconBlues09
Follow up question: Is there a way to "Favorite" scripts?

And another issue just popped up. I'm not sure what I did, but now whenever I try to run the scrip I got a popup error box saying "...rs to all items on selected track source folder name.lua:79: bad argument #3 to 'SetTakeMarker' (string expected, got nil)" (the error message begins with the ellipsis)

That only works if the item source is in the RealTracks or Drums folder.
Right click on the item > Source properties (this will show the file and path)
send me a pic

Ah OK, that's starting to make sense. Because I had generated a few more tracks at that point, and some had the BBplugin folder as the source (where it did not work), and others had bb\RealTracks as the source folder, and it works there.

Thing is that I generated all the tracks via the plugin (in the sense that none were "dragged in" from the main program, so why the difference? Now that I think of it, I generated the later tracks up top and dragged them in from the side panel rather than using "Send to Reaper." I tried the latter method again, and all is working well!

Leaving this rambling comment here for others who may run in to the same issue.

Thanks!


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075
Originally Posted by DeaconBlues09
And yet another follow up question, if I can't get it to also automatically generate chord info with the RT info in each item, is it possible to modify the text to add that information?

https://stash.reaper.fm/v/49718/ReaTrak-Create-text-items-on-first-selected-track-from-regions.zip

you can Insert > Empty item
set track to Free item positioning, overlay on place under or on top
you can group them so the text item chord name will stick to the audio item

[Linked Image - Only viewable when logged in][Linked Image - Only viewable when logged in]

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Jun 2009
Posts: 3,075
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 3,075
[Linked Image - Only viewable when logged in]You could also copy the midi chord track instead of text items

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Originally Posted by musocity
[Linked Image - Only viewable when logged in]You could also copy the midi chord track instead of text items

This appears to be the best method. However, my chord sheet when I drag it from the plugin is with MIDI and does not look as optimal for an overlay.

[Linked Image - Only viewable when logged in]


Edit: Nevermind this last bit, I see I just needed to select the chord label option under the dropdown

Last edited by DeaconBlues09; 01/05/25 03:13 AM.

Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 876
Expert
Offline
Expert
Joined: Mar 2017
Posts: 876
Another issue, before I wrote that when I use "Send to Reaper" the source of the item the bb/Realtracks (as opposed to the BBplugin). Well, to my great despair that behavior does not remain consistent, and for the life of me I can't figure out how to keep it from only generating such that the source is the Realtrack folders so I can run the script


Band-in-a-Box 2024. Custom Build Desktop PC W/ Windows 10 Home 64-bit. CPU: Intel Core i5-9600k @ 3.7GHz (6 core x 6 threads) RAM: 16GB DDR4. Storage 238GB SSD + 2.7 TB HDD. GPU: ZOTAC NVIDIA GeForce GTX 1050 Ti 4GB
Previous Thread
Next Thread
Go To
Page 1 of 2 1 2

Link Copied to Clipboard
ChatPG

Ask sales and support questions about Band-in-a-Box using natural language.

ChatPG's knowledge base includes the full Band-in-a-Box User Manual and sales information from the website.

PG Music News
Update your Band-in-a-Box® 2025 for Windows® Today!

If you’ve already purchased Band-in-a-Box® 2025 for Windows®, great news—a new update is now available! This update introduces a handy new feature: a vertical cursor in the Tracks window that shows the current location across all tracks, and more.

Discover everything included in this free update and download it now at https://www.pgmusic.com/support_windowsupdates.htm#1124

Video: Band-in-a-Box® 2025 for Windows®: Boot Camp: The AI Lyrics Generator

With Band-in-a-Box 2025® for Windows®, we've introduced an exciting new feature: the AI Lyrics Generator! In this video, Tobin guides you step-by-step on how to make the most of this new tool.

Band-in-a-Box® 2025 for Windows®: Boot Camp: The AI Lyrics Generator video.

Check out the forum post for more information.

Video: Band-in-a-Box® 2025 for Windows®: Using VST3 Plugins

Band-in-a-Box 2025® for Windows® now includes support for VST3 plugins, bringing even more creative possibilities to your music production. Join Simon as he guides you through the process in this easy-to-follow demonstration!

Video: Band-in-a-Box® 2025 for Windows®: Using VST3 Plugins

Join the conversation on our forum.

Video: Band-in-a-Box 2025 for Windows: Using The BB Stem Splitter!

In this video, Tobin provides a crash course on using the new BB Stem Splitter feature included in Band-in-a-Box 2025® for Windows®. During this process he also uses the Audio Chord Wizard (ACW) and the new Equalize Tempo feature.

Video: Band-in-a-Box® 2025 for Windows®: Using the BB Stem Splitter

Check out the forum post for some optional Tips & Tricks!

Congrats to Misha (Rustyspoon)…downloaded/installed a full Audiophile 2025!

Breaking News!

We’re thrilled to announce that Rustyspoon has made PG history as the very first person to successfully complete the download and install of the full Band-in-a-Box 2025 Windows Audiophile Edition (with FLAC files)—a whopping 610GB of data!

A big shoutout to Rustyspoon for stepping up to be our test "elf!"

Thank you for your support, Rustyspoon!

Band-in-a-Box 2025 for Windows Videos

With the launch of Band-in-a-Box® 2025 for Windows, we're adding new videos to our YouTube channel. We'll also share them here once they are published so you can easily find all the Band-in-a-Box® 2025 and new Add-on videos in one place!

Whether it's a summary of the new features, demonstrations of the 202 new RealTracks, new XPro Styles PAK 8, or Xtra Styles PAKs 18, information on the 2025 49-PAK, or detailed tutorials for other Band-in-a-Box® 2025 features, we have you covered!

Reference this forum post for One-Stop Shopping of our Band-in-a-Box® 2025 Videos - we will be updating this post as more videos are added!

Band-in-a-Box 2025 for Windows is Here!

Band-in-a-Box® 2025 for Windows is here, packed with major new features and an incredible collection of available new content! This includes 202 RealTracks (in Sets 449-467), plus 20 bonus Unreleased RealTracks in the 2025 49-PAK. There are new RealStyles, MIDI SuperTracks, Instrumental Studies, “Songs with Vocals” Artist Performance Sets, Playable RealTracks Set 4, two new sets of “RealDrums Stems,” XPro Styles PAK 8, Xtra Styles PAK 19, and more!

Special Offers
Upgrade to Band-in-a-Box® 2025 with savings of up to 50% on most upgrade packages during our special—available until December 31, 2024! Visit our Band-in-a-Box® packages page for all the purchase options available.

2025 Free Bonus PAK & 49-PAK Add-ons
We've packed our Free Bonus PAK & 49-PAK
with some incredible Add-ons! The Free Bonus PAK is automatically included with most Band-in-a-Box® for Windows 2025 packages, but for even more Add-ons (including 20 Unreleased RealTracks!) upgrade to the 2025 49-PAK for only $49. You can see the full lists of items in each package, and listen to demos here.

If you have any questions, feel free to connect with us directly—we’re here to help!

Forum Statistics
Forums65
Topics84,020
Posts764,580
Members39,261
Most Online25,754
Jan 24th, 2025
Newest Members
Tyler Schon, Rotund, JohnDoo, Todd Taylor, florancesmith
39,261 Registered Users
Top Posters(30 Days)
MarioD 177
musocity 150
jpettit 139
Jim Fogle 114
rsdean 107
Noel96 105
Today's Birthdays
There are no members with birthdays on this day.
Powered by UBB.threads™ PHP Forum Software 7.7.5