[yoshimi] Re: An unexpected issue (mostly of interest to developers)

  • From: Kristian Amlie <kristian@xxxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Sat, 20 Mar 2021 17:55:16 +0100



On 20.03.2021 16:17, Will Godfrey wrote:

On Sat, 20 Mar 2021 14:48:50 +0100
Kristian Amlie <kristian@xxxxxxxxxx> wrote:

The bug you described might affect me! I have not tried because my setup
is a bit messed up right now. But if so, it only affects one patch, and
now that I know about it, I can work around it.

The workaround for loading old patches is one thing, but do I understand
correctly from what you said that the problem is still there for future
versions as well? I mean, the number system is still in use?

The number system is still in use just for MIDI-learn. That is why I think
parsing the text would be the better solution - and would be a complete future
proof one.

However new controls can be *added* but not inserted between existing adjacent
ones.

Looking at the the Control Numbers spreadsheet for addSynth:

randomWidth is numerically 5 and detuneFrequency is 32, so you can safely
insert a new control before randomWidth, but there is room for another 27
controls before you get to detunefrequency.

There is an even bigger gap between relativeBandwidth and stereo.

Effects have to be handled with care, but they always were a bit 'strange'!

Part level controls are more 'busy' but there are gaps, and I don't see much
more being added to them.

Config, Presets, Bank, Vector have no learnable controls at all so they are
quite safe to move about. 

I see. I agree that using the names is the best approach. OTOH, the
quickest fix of all is to simply document this in the code, and not move
the numbers about. Not sure how realistic that is in practice, but as a
stop gap solution it might be good enough.

I'd rather not attack this right now, since I'm deep into other things.

-- 
Kristian
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: