Code: Select all
CMyPlugin::CMyPlugin( TJBox_Float32 iSampleRate ) :
fCustomProps( JBox_GetMotherboardObjectRef( "/custom_properties" ) ),
fNoteStates( JBox_GetMotherboardObjectRef( "/note_states" ) ),
fGateInCVJackRef( JBox_GetMotherboardObjectRef( "/cv_inputs/gate_cv" ) ),
fGateOutCVJackRef( JBox_GetMotherboardObjectRef( "/cv_outputs/gate_out" ) ),
fTriggerOutCVJackRef( JBox_GetMotherboardObjectRef( "/cv_outputs/trigger_out" ) ),
fNoteOutCVJackRef( JBox_GetMotherboardObjectRef( "/cv_outputs/note_out" ) ),
fTriggerNoteOutCVJackRef( JBox_GetMotherboardObjectRef( "/cv_outputs/trigger_note_out" ) ),
fSampleRate( iSampleRate ),
fSecondsUntilGateInOutLampTurnOff( -1.f ),
fSecondsUntilTriggerTurnOff( -1.f ),
fGateInOutLampIsOnPropertyRef( JBox_MakePropertyRef( fCustomProps, "gateInOutLampIsOn" ) ),
fTriggerOutLampIsOnPropertyRef( JBox_MakePropertyRef( fCustomProps, "triggerOutLampIsOn" ) ),
fNotesArePressedPropertyRef( JBox_MakePropertyRef( fCustomProps, "notesArePressed" ) ),
fTriggerNotePropertyRef( JBox_MakePropertyRef( fCustomProps, "triggerNote" ) ),
fGateInConnectedCVInputRef( JBox_MakePropertyRef( fGateInCVJackRef, "connected" ) ),
fGateInValuePropertyRef( JBox_MakePropertyRef( fGateInCVJackRef, "value" ) ),
fNoteOutCVJackValuePropertyRef( JBox_MakePropertyRef( fNoteOutCVJackRef, "value" ) ),
fGateOutCVJackValuePropertyRef( JBox_MakePropertyRef( fGateOutCVJackRef, "value" ) ),
fTriggerOutCVJackValuePropertyRef( JBox_MakePropertyRef( fTriggerOutCVJackRef, "value" ) ),
fTriggerNoteOutCVJackValuePropertyRef( JBox_MakePropertyRef( fTriggerNoteOutCVJackRef, "value" ) ),
fNewNotePropertyRef( JBox_MakePropertyRef( fCustomProps, "newNote" ) ),
fNewTriggerPropertyRef( JBox_MakePropertyRef( fCustomProps, "newTrigger" ) ),
fNewTrigger( false ),
fNewGate( false ),
fLastGateCV( 0 ),
fNoteCV( 0.f )
{}
Code: Select all
MyPlugin.cpp(13,2): warning: field 'fGateOutCVJackRef' will be initialized after field 'fTriggerOutCVJackRef'
fGateOutCVJackRef( JBox_GetMotherboardObjectRef( "/cv_outputs/gate_out" ) ),
^
MyPlugin.cpp(16,2): warning: field 'fTriggerNoteOutCVJackRef' will be initialized after field 'fSampleRate'
fTriggerNoteOutCVJackRef( JBox_GetMotherboardObjectRef( "/cv_outputs/trigger_note_out" ) ),
^
MyPlugin.cpp(23,2): warning: field 'fTriggerNotePropertyRef' will be initialized after field 'fGateInConnectedCVInputRef'
fTriggerNotePropertyRef( JBox_MakePropertyRef( fCustomProps, "triggerNote" ) ),
^
MyPlugin.cpp(28,2): warning: field 'fTriggerOutCVJackValuePropertyRef' will be initialized after field 'fTriggerNoteOutCVJackValuePropertyRef'
fTriggerOutCVJackValuePropertyRef( JBox_MakePropertyRef( fTriggerOutCVJackRef, "value" ) ),
^
MyPlugin.cpp(33,2): warning: field 'fNewGate' will be initialized after field 'fLastGateCV'
fNewGate( false ),
^
5 warnings generated.