This is a topic that's been mentioned before.

We do have this in place, but with hindsight I think I went about it the wrong
way.

My suggestion for an alternative would be a static header file with mini
functions that would take three parameters by reference and return them as min,
max, default. These would have to be floats to handle all types. At the same
time they could return a char with the bits set to denote whether this is to be
regarded as an integer and whether it is MIDI learnable. If I understand this
right the calling function could also send NULL for entries it wasn't
interested in.

Like this it would be readable everywhere without significant overhead.

e.g.

// some function
float default;
char flags = limits::partvolume(NULL, NULL, default);
// other stuff

// another function
float min, max;
limits::voicedetune(min, max, NULL);
// other stuff

Does this seem workable?
Could it be done better?

-- 
Will


_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel

Reply via email to