@Lindon - well it looked too good to be true - and it was...
so I:
forked the latest MASTER
changed the code I thought needed changing in ControlModulator.cpp
to this:
const bool isAftertouch = controllerNumber == 129 && (m.isAftertouch() || m.isChannelPressure());
const bool isPitchWheel = controllerNumber == 128 && m.isPitchWheel();
if(isAftertouch || m.isControllerOfType(controllerNumber) || isPitchWheel)
{
if (m.isController())
{
inputValue = (float)m.getControllerValue() / 127.0f;
}
else if (controllerNumber == 128 && m.isPitchWheel())
{
inputValue = (float)m.getPitchWheelValue() / 16383.0f;
}
else if (m.isChannelPressure())
{
inputValue = (float)m.getChannelPressureValue() / 127.0f;
}
else if (m.isAftertouch())
{
const int noteNumber = m.getNoteNumber();
polyValues[noteNumber] = (float)m.getAfterTouchValue() / 127.0f;
inputValue = FloatVectorOperations::findMaximum(polyValues, 128);
jassert(inputValue != -1.0f);
if (inputValue < 0.0f) inputValue = 0.0f;
}
else
{
jassertfalse;
}
inputValue = CONSTRAIN_TO_0_1(inputValue);
float value;
if(useTable) value = table->getInterpolatedValue(inputValue * (float)SAMPLE_LOOKUP_TABLE_SIZE);
else value = inputValue;
if(inverted) value = 1.0f - value;
targetValue = value;
}
basically just setting the midi controller numbers to their correct values in the boolean or statements at the top...
Sadly this makes no difference and I dont know how to get it to provide me with debugging information - the HISE debug build crashes out with errors...and even if it didnt I wouldnt know what to add in that was the same as Console.print("something") and I wouldnt know where to look even if I did...
So anyone got any clues, or is this back to @Christoph ?
It occurs to me that i should remove any possibility that its my hardware doing this (an Arturia KeyLab) so can anyone else please run this wildly simple snippet:
HiseSnippet 677.3ocsUs0aSCCE1tqdhVtHFhe.Q6oVwnJE1FH1CLVufpftUQFS71jmiaq0RribbFTg3+L+CfiSxVZGYSaQh7PUOmy2mymO2xDshwiiUZDtwwKh3H7iHdKjl48lSERzn9H7SHiowFt1Iy0AKhnwwbeDFu1GsNvMpiRe986OfFPkLdgKD5Dkfw+rHTXJ7NY+OIBBFR84GKBWB816Ohoj8TApDPOqQbQQT14zY7CoVX0HH75C7EFk1yPM7X.yAJ+EdyUeWlg+DQr3r.t0nKxCNnL2ndyEA9St7tFiP35SJt4qkcyeNYrvWbk+hLvSSC3TvX4b.t1pRp9JRp6MIogp.e6AbCxCuj7pmIuMHdLsHxTDwpsGRFIghyTJj1WVVYXQ0dFlzSAHjlNgzy4C0fwULZsqq6VN6351duoIRlQnjNJ4gJC+HYq1M+YyFM+USmqGZ5zRiYeMZUP.WmEFriUA7NQZgzzZLHYnR1YF2T.7vjvyrvcdgyluaS32RQcBMHg2pc68t1Kz17nuMozRld9a4bg8DtBHjQWsjs9cqjwxxiKATIGIElih341EE0tkTTQ4EB3eecTepgZqy49.bQbsQXkCtO+BXnIqp2fzmGetQEAiM+SKAzXp7SBnlU6Vsik4Af7wJsE1RuLVXVr7X68nE1szV3Rus2Q4tAYhvvlWtdqUhdgr1+a8luP3wjASmxYlBwVmL7aUc5+dHkunRLB4rwTiV7CDl.yIdvNQFGThTxCfWDAWy1QkY6ZssYFOtzO03OvSdvtVabdvtWFDERYZ0orrIE6JmGj5AzjLcaaCXsOX6zEkN8.7HtcbQgvlvSYLap3kf1Kmyqp.mWWANaWAN6TAN6VANuoBbd6sxw9QnOjXTgYiIfiICRWifwCjTnKKsiD8Wjb0bzI
you should see the controller number and the reported value showing up in the console...where for me it shows
129:<the midi note velocity>