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: 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,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: 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,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: 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,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: 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,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: 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,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: 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,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: 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 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: 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
Band-in-a-Box 2025 French Version is Here!

Bonjour à tous,

Band-in-a-Box® 2025 pour Windows est disponible en Français.
Le téléchargement se fait à partir du site PG Music

Pour ceux qui auraient déjà acheté la version 2025 de Band-in-a-Box (et qui donc ont une version anglaise), il est possible de "franciser" cette version avec les patchs suivants:

BIAB 2025 - francisation
RealBand 2025 - francisation

Voilà, enjoy!

Band-in-a-Box 2025 German Version is Here!

Band-in-a-Box 2025 für Windows Deutsch ist verfügbar!

Die deutsche Version Band-in-a-Box® 2025 für Windows ist ab sofort verfügbar!

Alle die bereits die englische Version von Band-in-a-Box und RealBand 2024 installiert haben, finden hier die Installationsdateien für das Sprachenupdate:

https://nn.pgmusic.com/pgfiles/languagesupport/deutsch2025.exe
https://nn.pgmusic.com/pgfiles/languagesupport/deutsch2025RB.exe

Update Your Band-in-a-Box® 2025 to Build 1128 for Windows Today!

Already using Band-in-a-Box 2025 for Windows®? Download Build 1128 now from our Support Page to enjoy the latest enhancements and improvements from our team.

Stay up to date—get the latest update now!

Update to RealBand® 2025 Build 5 Windows Today!

Already using RealBand® 2025 for Windows®? Download Build 5 now from our Support Page to ensure you have the latest enhancements and improvements from our team.

Get the latest update today!

PowerTracks Pro Audio 2025 for Windows is Here!

PowerTracks Pro Audio 2025 is here! This new version introduces many features, including VST3 support, the ability to load or import a .FLAC file, a reset option for track height in the Tracks window, a taller Timeline on the Notation window toolbar, new freeze buttons in the Tracks window, three toolbar modes (two rows, single row, and none), the improved Select Patch dialog with text-based search and numeric patch display, a new button in the DirectX/VST window to copy an effects group, and more!

First-time packages start at only $49. Already a PowerTracks Pro Audio user? Upgrade for as little as $29!

www.pgmusic.com/powertracks.htm

Video: Summary of the New Band-in-a-Box® App for iOS®

Join Tobin as he takes you on a tour of the new Band-in-a-Box® app for iOS®! Designed for musicians, singer-songwriters, and educators, this powerful tool lets you create, play, and transfer songs effortlessly on your iPhone® or iPad®—anytime, anywhere.

Band-in-a-Box® for iOS® :Summary video.

Check out the forum post for more information.

Introducing the New Band-in-a-Box iOS App!

We’re excited to introduce the new Band-in-a-Box iOS app, designed to enhance your music creation. The Band-in-a-Box iOS app is the perfect companion to your desktop version, giving you the freedom to sketch out ideas wherever you are and develop them further when you're back at your workstation. Now, you can create, play, generate, and transfer songs seamlessly between your iOS device, and desktop.

Key Features:

- Easily Create and Play Songs – Build and play songs effortlessly on your device.
- MIDI and RealTracks/RealStyles Support – Generate MIDI tracks and RealTracks/RealStyles right on your iPhone or iPad (RealTracks/RealStyles require an internet connection).
- Notation Support – View chord sheets, professional notation, tab, and drum notation for all tracks.
...and more!

Watch the Band-in-a-Box iOS Overview Video.

Visit the Band-in-a-Box for iOS support page for more information and to listen to demos of our RealStyles catalogue.

Download the Band-in-a-Box iOS App from the Apple App Store today!

Forum Statistics
Forums58
Topics83,988
Posts773,244
Members39,513
Most Online25,754
Jan 24th, 2025
Newest Members
ohlivealittle, joe_acestudio, Jimmie Dale, sophiadavis012, Heliosis
39,512 Registered Users
Top Posters(30 Days)
MarioD 184
DC Ron 101
rsdean 97
Noel96 69
Today's Birthdays
CountryTrash, Júlíus Hraunberg
Powered by UBB.threads™ PHP Forum Software 7.7.5