Here is what I currently have:
Code: Select all
void CTriggerHappy::HandleNotePressed( const TJBox_PropertyDiff iPropertyDiffs[], TJBox_UInt32 iDiffCount ){
for( TJBox_UInt32 i = 0; i < iDiffCount; ++i ){
if( iPropertyDiffs[ i ].fPropertyRef.fObject == fNoteStates ){
TJBox_Float64 velocity = JBox_GetNumber( iPropertyDiffs[ i ].fCurrentValue );
if( velocity > 0.f ){
JBox_StoreMOMProperty( fNoteOutCVJackRef, JBox_MakeNumber( iPropertyDiffs[ i ].fPropertyRef.fKey ) );
break;
}
}
}
}
Here are the current build errors:
Code: Select all
TriggerHappy.cpp:52:44: error: no matching function for call to 'JBox_MakeNumber'
JBox_StoreMOMProperty( fNoteOutCVJackRef, JBox_MakeNumber( noteNumber ) );
^~~~~~~~~~~~~~~
..\..\..\..\Public\Documents\ReasonStudios\JukeboxSDK_4.2.0\SDK\API\Jukebox.h:758:13: note: candidate function not
viable: no known conversion from 'char *' to 'TJBox_Float64' (aka 'double') for 1st argument; dereference the
argument with *
TJBox_Value JBox_MakeNumber(TJBox_Float64 iNumber);
^
TriggerHappy.cpp:61:23: error: cannot initialize a parameter of type 'char *' with an lvalue of type
'const TJBox_PropertyKey' (aka 'char const[36]')
SetNoteOutCVJack( iPropertyDiffs[ i ].fPropertyRef.fKey );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TriggerHappy.cpp:51:57: note: passing argument to parameter 'noteNumber' here
void CTriggerHappy::SetNoteOutCVJack( TJBox_PropertyKey noteNumber ){
^
2 errors generated.
Build ERROR!