It's pretty basic, the instruments are recorded in many chords and keys, when you enter a chord it will search all the recorded material for a section to fit.
The best way is look at Make your own UserTrack with Band-in-a-Box® 2014 and higher and Making RealDrums Styles with Band-in-a-Box®