On Thu, 16 Jun 2016 11:37:06 +0200 Lorenzo Sutton <lorenzofsut...@gmail.com> wrote:
> > > > Cool.. Where does yoshimi pick the bank number (e.g. Arpeggios -> 5, > > Bass -> 10).. It seems *almost* alphabetical with the exception of chip. > > Actually it would be nice to have a script which could generate the rdg > > file on a user's system :) > > Never mind... I figured it out: it's generated depending on the number > of banks.. > > Misc/Bank.cpp: size_t idStep = (size_t)128 / (bankDirsMap.size() + 2); > > I was confused because "chip" came last, but that's because it's > lowercase vs all the other banks. > > This means that probably one could do a script which generates a rgd > file given a yoshimi bank root directory (at least the banks part)... :) > > Lorenzo I'm back :) The bad news is that this time next week I'll be down one wisdom tooth :( NEway Quite correct, but maybe I should make more fuss about yoshimi's "doc" directory. There's a very detailed explanation of the root/bank/instrument structure there in a text file called banks.txt :) In short, Rosegarden is probably best off ignoring root and bank IDs, and using just the installed location, simply taking the bank directory names. The Instrument IDs however are an integral part of the filename so must be included. The clever thing about the way this is structured is that adding new roots or banks will never change the IDs of the existing ones (unless you lose your .config/yoshimi/yoshimi.banks file somehow) and that is aimed purely at those wanting to make bank and program changes via MIDI. Also, the user can reorder roots and banks with new IDs without modifying the directories/files themselves. However, I have no intention of increasing the number of default banks so they shouldn't change anyway. Now I don't know if all that makes things simpler or more complicated. -- W J G ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381 _______________________________________________ Rosegarden-user mailing list Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-user