in C++ enum values/offsets can be any constant expression.

So, in globals.h I've now set AddVoice1 to NUM_VOICES, and AddMod1 to
AddVoice1 + NUM_VOICES. Everything tracks quite happily, including previous
MIDI-learn files with both voice and modulator controls.

Changing NUM_VOICES could now change the number of voices (not that there's any
point in doing it). I proved this for the CLI only by temporarily setting it to
12, and messing about with both extremes. It doesn't work for the GUI because I
had to hard code voice tabs to replace the FLTK ones.


On the downside, setting -Wno-deprecated in CMaleLists.txt now doesn't seem to
work, yet it seemed to earlier - I've no idea why :(


It seems that if no 'BuildFor' options are set at all in cmake then O3 is set,
not O0 (around line 262)

HoHum...

-- 
Will J Godfrey
https://willgodfrey.bandcamp.com/
http://yoshimi.github.io
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-devel mailing list
Yoshimi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel

Reply via email to