I have a question as well about this. Loops are something you could do in a program like audacity right? Just loop a BGM and import?
And check this out... for a "specific trainer" or "trainertype" I found this on the Wiki. Go to the wiki then go to defining a trainer.
If you look at line 7...