[yoshimi] Re: Back on Banks

  • From: Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Tue, 4 Feb 2020 20:58:16 +0000

In the current master banks code is now considerably leaner, and at startup,
seems to run quite a bit faster here.

Previously if someone added a bank via the filing system instead of through
Yoshimi that could mess up the ordering of the existing ones. This no longer
happens, the bank is added in an available slot - if there is one.

The spacing of banks on a first time start is more even. they are initially
spaced 5 apart, then if there are a lot, the code goes through again sitting
exactly between the first pass. This maximises the space for later adjustments.


I haven't yet fully set up the .local/yoshimi/banks option.
What I'm thinking of is to look for the directory, and if it's missing create
it first, *then* ask if the user wants to copy in the default files. If the
answer is 'no' then the directory will be left there empty, otherwise all the
available default ones will be copied in but a test will be made for
duplicates, and only the most recent will be used.

On subsequent runs the directory will be seen so the same request won't be made
again regardless. Also the bank code can tell the difference between an empty
directory and one with valid banks in it.

There may yet be bugs - I'm not aware of any though.

As usual all comments welcome.

-- 
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
Yoshimi source code is available from either: 
https://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: