So finally decided to dive in the SDK.
I am just looking now with some examples and trial and error...but mostly error.
I took the MIDI Transpose demonstration and was looking at how to start adding nodes/parameters.
I copied the following from case 2 of the
Code: Select all
void MidiTransposeExampleExample::onGetParamInfo (int ParamIndex, TParamInfo* pParamInfo)Code: Select all
case 3:
pParamInfo->ParamType = ptDataFader;
pParamInfo->Caption = "velo";
pParamInfo->IsInput = TRUE;
pParamInfo->IsOutput = FALSE;
pParamInfo->MinValue = 0.0f;
pParamInfo->MaxValue = 127.0f;
pParamInfo->DefaultValue = 85.0f;
pParamInfo->Symbol = "v";
pParamInfo->Format = "%.0f";
pParamInfo->IsStoredInPreset = TRUE;
pParamInfo->CallBackType = ctImmediate;
pParamInfo->EventPtr = &fdrVelo;
break;I also went further to read in the value maybe thinking since I did not access it, for some reason it was not created. so OnProcess I put the following:
Code: Select all
int velo = (int)sdkGetEvtData(fdrVelo);Am I doing something wrong, or missing something?
Like I said I literally just jumped back in on the SDK, it's been many years (since the first HH SDKs, that I even messed around with).
-s
