Previous Thread
Index
Next Thread
Print Thread
Go To
Post your own Tips and Tricks here
Joined: Jun 2009
Posts: 2,651
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,651
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: 281
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 281
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,651
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,651
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: 281
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 281
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,651
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,651
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: 281
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 281
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,651
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,651
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: 281
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 281
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,651
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,651
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, 85 downloads)
BB23-RC-RealDrums.png (111.62 KB, 85 downloads)
Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 281
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 281
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,651
Veteran
OP Offline
Veteran
Joined: Jun 2009
Posts: 2,651
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: 281
S
Apprentice
Offline
Apprentice
S
Joined: Sep 2013
Posts: 281
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
Video - Band-in-a-Box® DAW Plugin Version 6 for Mac®: New Features for Reaper

Band-in-a-Box® 2024 includes built-in specific support for the Reaper® DAW API, allowing direct transfer of Band-in-a-Box® files to/from Reaper tracks, including tiny lossless files of instructions which play audio instantly from disk.

We demonstrate the new Reaper features in the Band-in-a-Box® VST DAW Plugin 6.0 in our video, Band-in-a-Box® DAW Plugin Version 6 for Mac®: New Features for Reaper

Band-in-a-Box® 2024 for Mac® - Update Today!

Already grabbed your copy of Band-in-a-Box® 2024 for Mac®? Head to our Support Page to download build 803 and update your Band-in-a-Box® 2024 installation with the latest version developed by our team!

Learn more & download now.

Band-in-a-Box® 2024 for Mac® Video - Over 50 New Features and Enhancements!

Read all about the 50+ newest features in Band-in-a-Box® 2024 for Mac®, or you can watch our video "Band-in-a-Box® 2024 for Mac®: Over 50 New Features and Enhancements!" to see it in action!

Band-in-a-Box® 2024 for Mac® Video - DAW Plugin Version 6 New Features

The new Band-in-a-Box® VST DAW Plugin Version 6 for Mac® adds over 20 new features!

We show them off in our video: Band-in-a-Box® DAW Plugin Version 6 for Mac®: New Features

The Band-in-a-Box® 2024 for Mac® Free Bonus PAK!

Along with the 50+ new features added with Band-in-a-Box® 2024 for Mac®, we've also released an awesome collection of new Add-ons! On top of the 222 new RealTracks (+50 bonus RealTracks), we've also released new MIDI SuperTracks, Instrumental Studies, "Songs with Vocals" Artist Performance Sets, Playable RealTracks Set 3, Playable RealDrums Set 2, and two new sets of "RealDrums Stems."

Order Band-in-a-Box® 2024 for Mac during our special (which ends July 31st) and you'll receive a Free Bonus PAK that includes a lot of these new Add-ons:
- MIDI Styles Set 88: "Look Ma! More MIDI 11: SynthMaster"
- Instrumental Studies Set 20: New Orleans Piano
- MIDI SuperTracks Set 40: More SynthMaster
- MIDI SuperTracks Set 43: Rock & Pop Keys
- Artist Performance Set 15: Songs with Vocals volume 5
- Playable RealTracks Set 3
- Playable RealDrums Set 2
- SynthMaster Sounds and Styles, with audio demos
- RealCombos 2024 Booster PAK:
*For Pro customers, this includes 35 new RealTracks and 58 new RealStyles.
*For MegaPAK customers, this includes 25 new RealTracks and 45 new RealStyles.
*For UltraPAK customers, this includes 28 new RealStyles.

- RealDrums Stems Set 6: More Pop, Rock & Country

Want even more new Add-ons? Boost your Free Bonus PAK to a 2024 49-PAK for just $49 and add even more new Add-ons to your collection:
- 50 Bonus Unreleased RealTracks & RealDrums
- MIDI Styles Set 89: "Look Ma! More MIDI 12: Funk, Jazz & Blues Keys"
- Instrumental Studies Set 21: '80s Hard Rock Guitar
- MIDI SuperTracks Set 41: Jazz Comping & Soloing Piano
- MIDI SuperTracks Set 42: Soul & New Orleans Keys
- Artist Performance Set 16: Songs with Vocals volume 6
- RealDrums Stems Set 5: Jazz, Latin, Funk & World

Listen to Demos of the Free Bonus PAK & 49-PAK: https://youtu.be/ZezLjinyb-4

Band-in-a-Box® 2024 for Mac® Video - Boot Camp: Working with the Newest Features!

Band-in-a-Box 2024 for Mac includes over 50 new features!

Watch our Band-in-a-Box® 2024 for Mac® Boot Camp: Working with the Newest Features video, and follow along as we demonstrate how to create a new song from scratch using some of the major new features in Band-in-a-Box® 2024 for Mac®, like the Chord Progression Builder, the new MultiPicker Library Window, and the new Tracks Window!

Watch: Band-in-a-Box® 2024 for Mac® Boot Camp: Working with the Newest Features

Band-in-a-Box® 2024 for Mac® Videos: One-Stop Shopping!

With the release of Band-in-a-Box® 2024 for Mac®, we're adding new videos to our YouTube channel. We'll also post them here when they are published so that you can easily find all of our Band-in-a-Box® 2024 for Mac® videos in one place!

The Band-in-a-Box® 2024 for Mac videos released as-of June 28, 2024 are:

Band-in-a-Box® 2024 for Mac® - Everything you need to know in under 8 minutes!

Band-in-a-Box® 2024 for Mac® - The New Tracks Window Explained

Band-in-a-Box® 2024 for Mac® - RealCombos Booster PAK Styles Demo

Band-in-a-Box® 2024 for Mac® - 49-PAK Overview

Band-in-a-Box® 2024 for Mac® - 222 New RealTracks Overview

Forum Statistics
Forums65
Topics82,382
Posts743,947
Members38,761
Most Online2,537
Jan 19th, 2020
Newest Members
ravshmuel, Bigfan, Bob Bethune, TomBomb, joseakio
38,761 Registered Users
Top Posters(30 Days)
MarioD 140
DC Ron 83
rsdean 80
DrDan 63
Today's Birthdays
CharlyFranks
Powered by UBB.threads™ PHP Forum Software 7.7.5