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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110

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


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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110
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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110
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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110
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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110

Band-in-a-Box VST and Pro Tools/AAX DAW Plugin (Windows)
Joined: Mar 2017
Posts: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110
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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110
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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110
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,110
M
Veteran
OP Offline
Veteran
M
Joined: Jun 2009
Posts: 3,110
[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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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 04: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: 877
Expert
Offline
Expert
Joined: Mar 2017
Posts: 877
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
XPro & Xtra Styles PAK Sets On Sale Now - Until May 15, 2026!

All of our XPro Styles PAKs and Xtra Styles PAKs are on sale until May 15th, 2026!

It's the perfect time to expand your Band-in-a-Box® style library with XPro and Xtra Styles PAKs. These additional styles for Band-in-a-Box® offer a wide range of genres designed to fit seamlessly into your projects. Each style is professionally arranged and mixed, helping enhance your songs while saving you time.

What are XPro Styles and Xtra Styles PAKs?

XPro Styles PAKs are styles that work with any version (Pro, MegaPAK, UltraPAK, UltraPAK+, or Audiophile Edition) of Band-in-a-Box® 2025 (or higher). XPro Styles PAKS 1-10 includes 1,000 styles!

Xtra Styles PAKs are styles that work with the UltraPAK, UltraPAK+, or Audiophile Edition of Band-in-a-Box® 2025 (or higher). Xtra Styles PAKs 1-21 includes 3,700 styles (and 35 MIDI styles)!

The XPro & Xtra Styles PAKs are not included in any Band-in-a-Box® package.

The XPro Styles PAKs 1-10 are available for only $29 ea (reg. $49 ea), or get them all in the XPro Styles PAK Bundle for only $149 (reg. $299)! Listen to demos and order now! For Mac or for Windows.

The Xtra Styles PAKs 1-21 are available for only $29 ea (reg. $49 ea), or get them all in the Xtra Styles PAK Bundle for only $199 (reg. $349)! Listen to demos and order now! For Mac or for Windows.

Note: XPro Styles PAKs require Band-in-a-Box® 2025 or higher and are compatible with ANY package, including the Pro, MegaPAK, UltraPAK, UltraPAK+, and Audiophile Edition.

The Xtra Styles require the UltraPAK, UltraPAK+, or Audiophile Edition of Band-in-a-Box®. (Xtra Styles PAK 19 requires the 2025 or higher UltraPAK, UltraPAK+, or Audiophile Edition. They will not work with the Pro or MegaPAK version as they require the RealTracks included in the UltraPAK, UltraPAK+, or Audiophile Edition.

Supercharge your Band-in-a-Box today with XPro Styles PAKs and Xtra Styles PAK Sets!

Band-in-a-Box 2026 for Mac Videos

With the release of Band-in-a-Box® 2026 for Mac, we’re rolling out a collection of brand-new videos on our YouTube channel. We’ll keep this forum post updated so you can easily find all the latest videos in one convenient spot.

Whether you're exploring new features, checking out the latest RealTracks or Style PAKs, this is your go-to guide for Band-in-a-Box® 2026.

Check out this forum post for "One Stop Shopping" of our Band-in-a-Box® 2026 Mac Videos!

Band-in-a-Box 2026 for Mac is Here!

Band-in-a-Box® 2026 for Mac is here and it is packed with major new features! There’s a new modern look, a GUI redesign to all areas of the program including toolbars, windows, workflow and more. There’s a Multi-view layout for organizing multiple windows. A standout addition is the powerful AI-Notes feature, which uses AI neural-net technology to transcribe polyphonic audio into MIDI—entire mixes or individual instruments—making it easy to study, view, and play parts from any song. And that’s just the beginning—there are over 100 new features in this exciting release.

Along with version 2026, we've released an incredible lineup of new content! There's 202 new RealTracks, brand-new RealStyles, MIDI SuperTracks, Instrumental Studies, “Songs with Vocals” Artist Performance Sets, Playable RealTracks Set 5, two new RealDrums Stems sets, XPro Styles PAK 10, Xtra Styles PAK 21, and much more!

Special Offers
Upgrade to Band-in-a-Box® 2026 for Mac and save up to 50% on most upgrade packages during our special offer—available until May 15, 2026. Visit our Band-in-a-Box® packages page to explore all available upgrade options.

2026 Free Bonus PAK & 49-PAK Add-ons
Our Free Bonus PAK and 49-PAK are loaded with amazing add-ons! The Free Bonus PAK is included with most Band-in-a-Box® 2026 for Mac packages, but you can unlock even more—including 20 unreleased RealTracks—by upgrading to the 2026 49-PAK for just $49.

Holiday Weekend Hours

As we hop into the Easter weekend, here are our holiday hours:

April 3 (Good Friday): 8:00 AM – 4:00 PM PDT
April 4 (Saturday): Closed
April 5 (Easter Sunday): Closed
April 6 (Easter Monday): Open regular hours

Wishing you an egg-cellent weekend!

— Team PG

Update to Build 10 of RealBand® 2026 for Windows®!

If you're already using RealBand 2026 for Windows, download build 10 to get all the latest additions and enhancements.

Band-in-a-Box® 2025 for Mac® users: Build 904 now available!

If you're already using Band-in-a-Box® 2025 for Mac®, make sure to grab the latest update! Build 904 is now available for download and includes the newest additions and enhancements from our team.

Band-in-a-Box® 2026 for Windows® users: Build 1237 is now available!

Already a Band-in-a-Box 2026 for Windows user? Stay up to date and download the build 1237 to get all the latest additions and enhancements.

Forum Statistics
Forums57
Topics86,200
Posts801,881
Members40,066
Most Online64,515
Apr 8th, 2026
Newest Members
isledge, Gtrplr66, Mando Kat, GlennMans, François Sohm
40,066 Registered Users
Top Posters(30 Days)
MarioD 126
zedd 109
DC Ron 100
rsdean 90
Noel96 89
vicarn 62
Today's Birthdays
Jay Street, JazzLOCO Almenas, smallchamber
Powered by UBB.threads™ PHP Forum Software 7.7.5