That should be all doable, bbw2 would just generate and play in RAM from the first 4 bars of chords at the start of the song or from the selected bars. You can have an option to write those bars from RAM to wav and insert in the track if you like it else generate again.