If the backing tracks are BIAB generated with your own original music or music in the public domain then I'd say Definitely legal.
However if they are BIAB generated but are covers of copyrighted songs then you could have a problem.

Tim