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: 326
S
Journeyman
Offline
Journeyman
S
Joined: Sep 2013
Posts: 326
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: 326
S
Journeyman
Offline
Journeyman
S
Joined: Sep 2013
Posts: 326
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: 326
S
Journeyman
Offline
Journeyman
S
Joined: Sep 2013
Posts: 326
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: 326
S
Journeyman
Offline
Journeyman
S
Joined: Sep 2013
Posts: 326
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, 86 downloads)
BB23-RC-RealDrums.png (111.62 KB, 86 downloads)
Post your own Tips and Tricks here
Joined: Sep 2013
Posts: 326
S
Journeyman
Offline
Journeyman
S
Joined: Sep 2013
Posts: 326
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: 326
S
Journeyman
Offline
Journeyman
S
Joined: Sep 2013
Posts: 326
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
Generate Lyrics for your Band-in-a-Box songs with LyricLab!

Need some lyrics to complete your Band-in-a-Box song? LyricLab is here to help!

LyricLab (by Joanne Cooper) is an AI-powered tool designed to quickly create lyrics and chords to fit your music. Just enter a rough idea of your lyrics, and let the AI bring them to life. Once you're happy with the results, simply import the LyricLab file into Band-in-a-Box® 2024 or newer. From there, you can pick your style and generate melodies to match your song’s chords!

Learn more about LyricLab here!

Watch the video.


Band-in-a-Box 2024 Italian for Mac is Here!

Ci siamo dati da fare e abbiamo aggiunto oltre 50 nuove funzionalità e una straordinaria raccolta di nuovi contenuti, tra cui 222 RealTracks, nuovi RealStyles, MIDI SuperTracks, Instrumental Studies, "Songs with Vocals" Artist Performance Sets, Playable RealTracks Set 3, Playable RealDrums Set 2, due nuovi set di "RealDrums Stems", XPro Styles PAK 6, Xtra Styles PAK 17 e altro ancora!

Tutti Pacchetti | Nuove Caratteristiche

Band-in-a-Box® 2024 German for Mac is Here!

Band-in-a-Box® 2024 für Mac Deutsch ist verfügbar!

Wir waren fleißig und haben über 50 neue Funktionen und eine erstaunliche Sammlung neuer Inhalte hinzugefügt, darunter 222 RealTracks, neue RealStyles, MIDI SuperTracks, Instrumental Studies, "Songs with Vocals" Artist Performance Sets, abspielbare RealTracks Set 3, abspielbare RealDrums Set 2, zwei neue Sets von "RealDrums Stems", XPro Styles PAK & 7, Xtra Styles PAK 17 & 18, und mehr!

Paket | Was ist Neu

Band-in-a-Box® 2024 French for Mac® is Here!

Band-in-a-Box® 2024 apporte plus de 50 fonctions nouvelles ainsi qu'une importante de contenus nouveaux à savoir : 222 RealTracks, des RealStyles nouveaux, des SuperTracks MIDI, des Etudes d'Instruments, des Prestations d'Artistes, des "Morceaux avec Choeurs", un Set 3 de Tracks Jouables, un Set 2 de RealDrums Jouables, deux nouveaux Sets de "RealDrums Stems", des Styles XPro PAK 6 & 7, des Xtra Styles PAK 17 & 18, et bien plus encore!

New! XPro Styles PAK 7 for Band-in-a-Box 2024 for Mac!

We've just released XPro Styles PAK 7 with 100 brand new RealStyles, plus 50 RealTracks and RealDrums that are sure to delight!

With XPro Styles PAK 7 you can expect 25 rock & pop, 25 jazz, and 25 country styles, as well as 25 of this year's wildcard genre: Celtic!

Here's a small sampling of what XPro Styles PAK 7 has to offer: energetic rock jigs, New Orleans funk, lilting jazz waltzes, fast Celtic punk, uptempo train beats, gritty grunge, intense jazz rock, groovy EDM, soulful R&B, soft singer-songwriter pop, country blues rock, and many more!

Special Pricing! Until September 30, 2024, all the XPro Styles PAKs 1 - 7 are on sale for only $29 ea (Reg. $49 ea)! Supercharge your Band-in-a-Box 2024® with XPro Styles PAK 7! Order now!

Learn more and listen to demos of XPro Styles PAKs.

Watch the XPro Styles PAK 7 Overview & Styles Demos video.

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

New! Xtra Styles PAK 18 for Band-in-a-Box 2024 for Mac!

Xtra Styles PAK 18 for Band-in-a-Box version 2024 is here with 200 brand new styles to take for a spin!

Along with 50 new styles each for the rock & pop, jazz, and country genres, we’ve put together a collection of styles using sounds from the SynthMaster plugin!

In this PAK you'll find: dubby reggae grooves, rootsy Americana, LA jazz pop, driving pop rock, mellow electronica, modern jazz fusion, spacey country ballads, Motown shuffles, energetic EDM, and plenty of synth heavy grooves! Xtra Style PAK 18 features these styles and many, many more!

Special Pricing! Until September 30, 2024, all the Xtra Styles PAKs 1 - 18 are on sale for only $29 ea (Reg. $49 ea)! Expand your Band-in-a-Box 2024® library with Xtra Styles PAK 18! Order now!

Learn more and listen to demos of the Xtra Styles PAK 18 here.

Watch the Xtra Styles PAK 18 Overview & Styles Demos video.

Note: The Xtra Styles require the UltraPAK, UltraPAK+, or Audiophile Edition of Band-in-a-Box®. (Xtra Styles PAK 18 requires the 2024 UltraPAK/UltraPAK+/Audiophile Edition. They will not work with the Pro or MegaPAK version because they need the RealTracks from the UltraPAK, UltraPAK+, or Audiophile Edition.

New! Xtra Styles PAK 18 for Band-in-a-Box 2024 for Windows!

Xtra Styles PAK 18 for Band-in-a-Box version 2024 is here with 200 brand new styles to take for a spin!

Along with 50 new styles each for the rock & pop, jazz, and country genres, we’ve put together a collection of styles using sounds from the SynthMaster plugin!

In this PAK you'll find: dubby reggae grooves, rootsy Americana, LA jazz pop, driving pop rock, mellow electronica, modern jazz fusion, spacey country ballads, Motown shuffles, energetic EDM, and plenty of synth heavy grooves! Xtra Style PAK 18 features these styles and many, many more!

Special Pricing! Until September 30, 2024, all the Xtra Styles PAKs 1 - 18 are on sale for only $29 ea (Reg. $49 ea)! Expand your Band-in-a-Box 2024® library with Xtra Styles PAK 18! Order now!

Learn more and listen to demos of the Xtra Styles PAK 18 here.

Watch the Xtra Styles PAK 18 Overview & Styles Demos video.

Note: The Xtra Styles require the UltraPAK, UltraPAK+, or Audiophile Edition of Band-in-a-Box®. (Xtra Styles PAK 18 requires the 2024 UltraPAK/UltraPAK+/Audiophile Edition. They will not work with the Pro or MegaPAK version because they need the RealTracks from the UltraPAK, UltraPAK+, or Audiophile Edition.

Forum Statistics
Forums65
Topics82,911
Posts753,159
Members39,028
Most Online3,932
Nov 19th, 2024
Newest Members
Jean-Laurent, dongordo, xaos, sfloyd, Jack Peterson
39,027 Registered Users
Top Posters(30 Days)
MarioD 156
DC Ron 102
jpettit 95
DrDan 88
rsdean 82
dcuny 81
Today's Birthdays
alvaro clemente1, mhill, Rick Hansen
Powered by UBB.threads™ PHP Forum Software 7.7.5