Previous Thread
Index
Next Thread
Print Thread
Go To
Post your own Tips and Tricks here
Joined: Jun 2009
Posts: 2,465
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,465
This can be used to find the RealDrum you need with Tap 2 Find or a midi reference clip, or you can create up the drum track direct in Toontrack by splitting up the RealDrum MIDI and moving sections around.

This is for AutoHotkey v1 you can convert it to AHK v2
If you are running Biab As Administrator:
To run script only .ahk install https://www.autohotkey.com/ and set AutoHotKey.exe to Run As Administrator

From
58-78Pop^
To
2416Fusion
had the Audio track Soloed, so you can us solo and save all the MGU's in those folder first,
these are some others I found,
JazzBrushesWaltz
Jazz54Even8^
UrbanPop128Shopping^
UrbanPopEv16BrokenWires
UrbanPopEv16SlowHard^
UrbanPopEv16Climbing^
UrbanPopEv16Drama^
TechnoSlimcut^
Jazz54Swing^
TechnoWildnout^

(I've got more to go through, but I got tired of it all)

when they are all done you search for .MID in the Drums folder then change the View to Details and list by size, you will see drums around 1k or 2k you can drop in you DAW and check if they are empty clips if so open those MGU's and check if they have the Audio track soloed if so open all the MGU's in that folder and un solo the Audio tracks then save.
Then File > Save Special > Save Song As MIDI File > Batch Mode > OK
this will overwrite the empty ones.
You can do them ALL manually this way but it would take sooo long !

When all done search for .MID then select all and copy to a new folder.

In the new folder use https://www.bulkrenameutility.co.uk/
to remove ^ from the filename, in the "Replace" put ^ and leave the "With" empty.
In the "Numbering" set it to "Prefix" "Pad" 4 this will keep them in alphabetical order in EZDrummer and won't show line number.
Then you can add them to the User Library or as a Toontrack 3rd party
C:\Program Files (x86)\Common Files\Toontrack\EZDrummer\Midi
or
C:\Program Files\Common Files\Toontrack\EZDrummer\Midi
they could also be in C:\ProgramData\Toontrack\ ?
if you just have Superior Drummer 3 look for Superior3 in path.
You can make folders Toontrack\EZDrummer\Midi\000001@REALDRUMS\010@REAL_DRUMS_MIDI
and put all the PG midi in 010@REAL_DRUMS_MIDI
then start EZDrummer or Superior Drummer 3

If you want to just use the RealDrums MIDI in EZD or SD3 you can as it's so EZ to edit the drum track however you like by cutting the main drum files up and drag around sections, changing all levels easily, adding solo riffs, 4 bar endings, 6 bar endings...

I don't know if you need this, it will convert Gm to EZDrummer
https://github.com/markheath/midifilemapper/wiki
https://github.com/markheath/midifilemapper/releases/download/0.5.36.0/MidiFileMapper0.5.36.0.zip



Copy the text below to notepad and save as Midi Batch RealDrums.ahk
Set to your Drums folder dir:= "X:\bb\Drums"
Run the script it will take some time to go through all the RealDrum folders.
Don't do anything else and leave it run.
It worked for me without issue, so just see how you go.
If you want to exit the script look in the System Tray for "H" and exit it or Task Manager AutoHotkey.exe

Code:
#NoEnv
#SingleInstance Force

dir:= "C:\bb\Drums"

WinClose, ahk_class TMIDIBatchDialog
Sleep, 100
WinClose, ahk_class TMIDIexportDlg
Sleep, 100
WinActivate, ahk_class TBandWindow
WinMenuSelectItem, ahk_class TBandWindow, , File, Save Special, Save Song as MIDI File
WinWait, ahk_class TMIDIexportDlg

WinActivate, ahk_class TMIDIexportDlg
Send, !m
Winwait, ahk_class TMIDIBatchDialog
ControlClick, TButton1, ahk_class TMIDIBatchDialog

Winwait, ahk_class TMIDIexportOpt
WinActivate, ahk_class TMIDIexportOpt
Control, Uncheck ,, TCheckBox1, ahk_class TMIDIexportOpt
Sleep, 100
ControlClick, TButton3, ahk_class TMIDIexportOpt
WinwaitClose, ahk_class TMIDIexportOpt

MsgBox, % list := names(dir)

names(dir) {
 Loop, Files, %dir%\*, D           ; Loop through subdirectories
 {
  n := 0, subdir := A_LoopFilePath
  Loop, Files, %subdir%\*.*        ; See whether subdirectory has files
   n++
  If n                             ; Subdirectory has files
   list .= "`n" subdir             ; Add the subdirectory path
  
  WinActivate, ahk_class TMIDIBatchDialog
  ControlFocus, TEdit2, ahk_class TMIDIBatchDialog
  Send, ^a
  Sleep, 500
  SendRaw, %subdir%
  Sleep, 1000
  Sleep, 50
  WinActivate, ahk_class TMIDIBatchDialog
  Send, !o
  
  Sleep, 500
  WinWait, ahk_class TxForm, ;&OK - Create MIDI Files
  WinActivate, ahk_class TxForm, ;&OK - Create MIDI Files
  ControlClick, TButton1, ahk_class TxForm
  

 }
 Return SubStr(list, 2)
}

GuiClose:
GuiEscape:
ExitApp



Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 248
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 248
Thanks for the script.
I have tried it out. I have got the script to work but I am not sure weather the midi files will be useful for EZDrummer.

I think I need midi files that only contain the drum track in order for it to be useful in EZDrummer. When I export an MGU as midi from Biab I got a midi for the whole song, all instruments, not only the drum track. And I have not found a way to import only the drum track from the midi to EZDrummer. It seems to import all midi instruments in the file and it makes it a very messy drum track (maybe there is a way I have not found it).

Also when I was inspecting some of the MGU files in BIAB, they have no drum sound on the drum track or other instruments even though they are populated with RD and RTs. All instruments seem to be held in the melody track and the rest of the instrument tracks marked as frozen, so it will not produce any individual instrument midi tracks on export.

(Anyway I got the script to work after some trouble shooting. It did not work as is on my PC, Windows 11, Biab 2023 Build 1013 64B, AutoHot Key 1.1.
Not really sure what I am doing I have never used AutoHotKey before. But the scrip seems to work now (it will break the loop if a style is missing for the MGU but otherwise it seems to work).
I had to make the following changes
Add SetControlDelay -1 before the ControlClick and ControlFocus statements
;SendRaw, %subdir% did not work replaced it with
Send {Text}%subdir%
;Send, !o ; did not work replaced it with
Send, {Enter}
)

I leave this for now , thanks for the script. I have learned a lot and have a skeleton script I might be able to develop further for other things.

Post your own Tips and Tricks here
Joined: Jun 2009
Posts: 2,465
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,465
So it will open each sub folder in the "Drums" Path and in the Batch Converter any MGU in those folders will be rendered to midi and it will just render the Melody track that contains the RealDrumCharts without generating the song up.

Same as doing it manually: Open a RealDrums MGU > File > Save Special > Save Song As MIDI File > Batch Mode > OK
so you should just get a .MID with just the drum midi and same name as the RealDrum .wav or .wma
just make sure the Audio track is not soloed.
If you choose the Piano roll view then select the Melody track you should see the Drum midi. You can Drag to MID and export but this will take too long as you need to rename them to the drum .wma name.

So basically the script makes a list of the sub directories in Drums folder then as it loops through the folders it pastes each path in the the Batch dialog then clicks Ok then Ok for notice dialog.

I did the whole Audiophile Drums folder and I got about 1226 drum midi.

Yes , AutoHotkey is easy to learn and can do so many things that users want Biab to do without waiting years for it to come to Biab. There is so much help and examples to do just about anything in the AutoHotkey forum, way more help than you would get ii the Biab forum.

Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 248
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 248
The script is working fine.
It generates all the midi.
The problem is that the midi files hold all instruments not only the drums for the song.

Same if I do it manually.

As an example if I manually open the MGU Nashville68^_110_Style.MGU in the drums folder and manually save it, save special midi batch, I will get a midi file Nashville68^_110_Style.MID with 5 instruments; Bass, Piano, Guitar, Strings, and Melody (I can see now that the melody holds the drums).

Same as when I run the script. And similar with the other midis.
It will load and show 5 instrument tracks in reaper as well as GuitarPro. And it seems that I got all those instrument tracks loaded into EZDrummer when I only want the Drum track to be imported

Maybe there is a configuration in Biab that I am missing.




Post your own Tips and Tricks here
Joined: Jun 2009
Posts: 2,465
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,465
Have a look in the midi Options settings and un-check the Midi Drums and RealCharts check boxes.
You could add that to the script to un-check them, I think it's already un-checks the midi chord markers = TCheckBox1
TCheckBox2 = Midi Drums
TCheckBox3 = RealCharts

or just go into midi options and set it, but you need to save a midi first so it will save the settings.




If you download AHK SimpleSpy comes in handy:


Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 248
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 248
I have just tried it manually with the same MGU as above Nashville68^_110_Style.MGU.

There is no change.
I still got a midi file with 5 instruments.

Post your own Tips and Tricks here
Joined: Jun 2009
Posts: 2,465
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,465
I just tried the Nashville68^_110_Style.MGU and it's using a midi style so yes it's saving all them.
If I solo the track
Alt+2 then Alt+8 Solo the Melody track then
File > Save Special > Save Midi file > Ok Save as file
it will save just that track with the same name as MGU

So will have to script it to go through the folders, list the MGUs then
paste the path in the Open dialog
E:\bb\Drums\Nashville68^\Nashville68^_140_Style.MGU
Enter
solo the melody track
save to midi
then open next MGU in list

Hopefully that should get them all as a single midi drum track.

Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 248
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 248
It seems to work ok when I test i manually with the same file as above.

However I have 9 tracks in the mixer 1 Bass, 2, Piano, 3 Drums - Alt+5, 4 Guitar 1, 5 strings, 6 Guitar - Alt+8, 7 Soloist, 8 Thru, 9 Audio - Alt???)

I need to mute all and then enable the Drums and the Audio track.
Then I get the single drum track in the midi.

However I can't find any Alt key for the Audio track, the manual for hot keys stops at Alt+9 but that will enable the soloist track, I haven't found any for the Audio track.

I also guess that all MGUs must have the same order of the drum and audio track in order for the script to work if I can find an Alt key for the audio track.

Post your own Tips and Tricks here
Joined: Jun 2009
Posts: 2,465
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,465
If you look at the Melody track in the Piano Roll you will see the RealChart Drum Midi.
If you solo that track then save to midi you should get the midi notes that are the same as the wma file:
Nashville68^_140_Style.mid = Nashville68^_140_Style.wma

There is no shortcut for the Audio track that I can see.

Attached Files (Click to download or enlarge) (Only available when you are logged in)
BB-RC-DRums-Melody-Track.png (108.75 KB, 84 downloads)
BB23-RC-RealDrums.png (111.62 KB, 84 downloads)
Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 248
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 248
Thanks for the help it works now.

I was a bit confused since I did not see any melody track only a guitar2 track.
I will try to put it into the script later on, may take a while but I am sure it will work.

Post your own Tips and Tricks here
Joined: Jun 2009
Posts: 2,465
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,465
This seems to work but may need some tweaking with the Sleep, delays

Code:
#NoEnv
#SingleInstance Force

dir:= "E:\bb\Drums2"

Loop Files, %dir%\*.MGU, R  ; Recurse into subfolders.
 {

  WinActivate, ahk_class TBandWindow
  WinMenuSelectItem, ahk_class TBandWindow, , File, Open
  WinWait, ahk_class #32770
  Sleep, 2000
  SendRaw, %A_LoopFileFullPath%
  Sleep, 2000
  Send, {ENTER}
  Sleep, 3000
  Send, !2  : Solo Melody
  Send, !8  : Solo Melody
  Sleep, 1000
  ;MsgBox, Save
  WinActivate, ahk_class TBandWindow
  WinMenuSelectItem, ahk_class TBandWindow, , File, Save Special, Save Song as MIDI File
  WinWait, ahk_class TMIDIexportDlg
  Sleep, 2000
  Send, {ENTER}
  WinWait, ahk_class #32770
  Sleep, 3000
  Send, {ENTER}

  Sleep, 2000


  if WinExist("ahk_class TxForm") or WinExist("ahk_class" Overwrite file?)
  {  
     ;MsgBox, Overwrite?
	 WinActivate, ahk_class Overwrite file? ;TxForm
     ;Sleep, 500
     Send, y
	 ;WinWaitClose, ahk_class TxForm
  }
 

  Sleep, 1000
  Send, !{F4}
  Sleep, 2000

Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 248
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 248
Thanks for the help. It works fine. I have tested it for a few of the drum folders.

Previous Thread
Next Thread
Go To

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 PowerTracks Pro Audio 2024 Today!

Add updated printing options, enhanced tracks settings, smoother use of MGU and SGU (BB files) within PowerTracks, and more with the latest PowerTracks Pro Audio 2024 update!

Learn more about this free update for PowerTracks Pro Audio & download it at www.pgmusic.com/support_windows_pt.htm#2024_5

The Newest RealBand 2024 Update is Here!

The newest RealBand 2024 Build 5 update is now available!

Download and install this to your RealBand 2024 for updated print options, streamlined loading and saving of .SGU & MGU (BB) files, and to add a number of program adjustments that address user-reported bugs and concerns.

This free update is available to all RealBand 2024 users. To learn more about this update and download it, head to www.pgmusic.com/support.realband.htm#20245

The Band-in-a-Box® Flash Drive Backup Option

Today (April 5) is National Flash Drive Day!

Did you know... not only can you download your Band-in-a-Box® Pro, MegaPAK, or PlusPAK purchase - you can also choose to add a flash drive backup copy with the installation files for only $15? It even comes with a Band-in-a-Box® keychain!

For the larger Band-in-a-Box® packages (UltraPAK, UltraPAK+, Audiophile Edition), the hard drive backup copy is available for only $25. This will include a preinstalled and ready to use program, along with your installation files.

Backup copies are offered during the checkout process on our website.

Already purchased your e-delivery version, and now you wish you had a backup copy? It's not too late! If your purchase was for the current version of Band-in-a-Box®, you can still reach out to our team directly to place your backup copy order!

Note: the Band-in-a-Box® keychain is only included with flash drive backup copies, and cannot be purchased separately.

Handy flash drive tip: Always try plugging in a USB device the wrong way first? If your flash drive (or other USB plug) doesn't have a symbol to indicate which way is up, look for the side with a seam on the metal connector (it only has a line across one side) - that's the side that either faces down or to the left, depending on your port placement.

Update your Band-in-a-Box® 2024 for Windows® Today!

Update your Band-in-a-Box® 2024 for Windows for free with build 1111!

With this update, there's more control when saving images from the Print Preview window, we've added defaults to the MultiPicker for sorting and font size, updated printing options, updated RealTracks and other content, and addressed user-reported issues with the StylePicker, MIDI Soloists, key signature changes, and more!

Learn more about this free update for Band-in-a-Box® 2024 for Windows at www.pgmusic.com/support_windowsupdates.htm#1111

Band-in-a-Box® 2024 Review: 4.75 out of 5 Stars!

If you're looking for a in-depth review of the newest Band-in-a-Box® 2024 for Windows version, you'll definitely find it with Sound-Guy's latest review, Band-in-a-Box® 2024 for Windows Review: Incredible new capabilities to experiment, compose, arrange and mix songs.

A few excerpts:
"The Tracks view is possibly the single most powerful addition in 2024 and opens up a new way to edit and generate accompaniments. Combined with the new MultiPicker Library Window, it makes BIAB nearly perfect as an 'intelligent' composer/arranger program."

"MIDI SuperTracks partial generation showing six variations – each time the section is generated it can be instantly auditioned, re-generated or backed out to a previous generation – and you can do this with any track type. This is MAJOR! This takes musical experimentation and honing an arrangement to a new level, and faster than ever."

"Band in a Box continues to be an expansive musical tool-set for both novice and experienced musicians to experiment, compose, arrange and mix songs, as well as an extensive educational resource. It is huge, with hundreds of functions, more than any one person is likely to ever use. Yet, so is any DAW that I have used. BIAB can do some things that no DAW does, and this year BIAB has more DAW-like functions than ever."

Convenient Ways to Listen to Band-in-a-Box® Songs Created by Program Users!

The User Showcase Forum is an excellent place to share your Band-in-a-Box® songs and listen to songs other program users are creating!

There are other places you can listen to these songs too! Visit our User Showcase page to sort by genre, artist (forum name), song title, and date - each listing will direct you to the forum post for that song.

If you'd rather listen to these songs in one place, head to our Band-in-a-Box® Radio, where you'll have the option to select the genre playlist for your listening pleasure. This page has SoundCloud built in, so it won't redirect you. We've also added the link to the Artists SoundCloud page here, and a link to their forum post.

We hope you find some inspiration from this amazing collection of User Showcase Songs!

Congratulations to the 2023 User Showcase Award Winners!

We've just announced the 2023 User Showcase Award Winners!

There are 45 winners, each receiving a Band-in-a-Box 2024 UltraPAK! Read the official announcement to see if you've won.

Our User Showcase Forum receives more than 50 posts per day, with people sharing their Band-in-a-Box songs and providing feedback for other songs posted.

Thank you to everyone who has contributed!

Forum Statistics
Forums66
Topics81,579
Posts734,675
Members38,499
Most Online2,537
Jan 19th, 2020
Newest Members
Tusar Sarkar, RTW, wtsy365, DerFlex, xabialonso259@gmai
38,499 Registered Users
Top Posters(30 Days)
MarioD 200
DC Ron 108
dcuny 88
WaoBand 75
Today's Birthdays
AlberMaxSax, Lloyd Morris
Powered by UBB.threads™ PHP Forum Software 7.7.5