CHAI SDK  Version 1.3
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
CPNS::IModifierMessage Class Referenceabstract

Modifier message dedicated class. More...

+ Inheritance diagram for CPNS::IModifierMessage:
+ Collaboration diagram for CPNS::IModifierMessage:

Public Member Functions

virtual void SetTransaction (CPNS::Enums::TransactionModes const status)=0
 Set the transaction status. More...
 
virtual
CPNS::Enums::TransactionModes 
GetTransaction () const =0
 Get the transaction status. More...
 
virtual CPNS::boolean IsVoiceIDAvailable () const =0
 Check if VoiceID is available. More...
 
virtual void SetVoiceID (CPNS::uint16 const wValue)=0
 Set VoiceID data The Voice ID information can be used to reconcile Events, Modifiers, Selectors and Texts. More...
 
virtual CPNS::uint16 GetVoiceID () const =0
 Get the VoiceID value The Voice ID information can be used to reconcile Events, Modifiers, Selectors and Texts. More...
 
virtual CPNS::boolean IsAutomationAvailable () const =0
 Check if automation settings are available. More...
 
virtual void SetAutomationState (CPNS::Enums::PerformanceMessageAutomationStates const eValue)=0
 Set Automation state. More...
 
virtual
CPNS::Enums::PerformanceMessageAutomationStates 
GetAutomationState () const =0
 Get Automation state. More...
 
virtual void SetAutomationTouch (CPNS::boolean const fValue)=0
 Set Automation touch. More...
 
virtual CPNS::boolean GetAutomationTouch () const =0
 Get Automation touch. More...
 
virtual void SetAutomationWTE (CPNS::boolean const fValue)=0
 Set Automation Write-to-End/Latch mode. More...
 
virtual CPNS::boolean GetAutomationWTE () const =0
 Get Automation Write-to-End/Latch mode. More...
 
virtual CPNS::boolean IsIndexAvailable () const =0
 Check if Index is available. More...
 
virtual void SetIndex (CPNS::uint16 const wValue)=0
 Set Index value. More...
 
virtual CPNS::uint16 GetIndex () const =0
 Get Index value. More...
 
virtual CPNS::boolean IsMorphAvailable () const =0
 Check if Morph is available. More...
 
virtual void SetMorph (CPNS::uint16 const wTime)=0
 Set Morph time value. More...
 
virtual CPNS::uint16 GetMorph () const =0
 Get Morph time value. More...
 
virtual void SetPreLoad (CPNS::boolean const fValue)=0
 Set the profile's Preload flag If Preload is set, the device should prepare to apply the message's value but do not commit until : More...
 
virtual CPNS::boolean GetPreLoad () const =0
 Get the profile's Preload flag If Preload is set, the device should prepare to apply the message's value but do not commit until : More...
 
virtual void SetRelativeMode (CPNS::Enums::RelativeMode const mode)=0
 Specifies if the value is relative or not. More...
 
virtual CPNS::Enums::RelativeMode GetRelativeMode () const =0
 Get the relative mode. More...
 
virtual void SetSourceType (CPNS::Enums::PerformanceMessageSources const source)=0
 Set the Source type Tells about the message's kind of source. More...
 
virtual
CPNS::Enums::PerformanceMessageSources 
GetSourceType () const =0
 Get the Source type Tells about the message's kind of source. More...
 
virtual void SetTrigger (CPNS::boolean const fValue)=0
 Set the Trigger flag Apply again the message, even the current value is already the message's value, or activate the pre-loaded settings. More...
 
virtual CPNS::boolean GetTrigger () const =0
 Get the Trigger flag Apply again the message, even the current value is already the message's value, or activate the pre-loaded settings. More...
 
virtual void SetNumber (CPNS::uint16 const wNumber)=0
 Set the message Number. More...
 
virtual CPNS::uint16 GetNumber () const =0
 Get the message's number. More...
 
virtual void SetValue (CPNS::Value const &value)=0
 Set the Modifier's value. More...
 
virtual CPNS::Value GetValue () const =0
 Get the Modifier's value. More...
 
- Public Member Functions inherited from CPNS::IBaseMessage
virtual CPNS::IEventMessageGetIEventMessage () const =0
 Check message type and return an IEventMessage object pointer if type match. More...
 
virtual CPNS::IModifierMessageGetIModifierMessage () const =0
 Check message type and return an IModifierMessage object pointer if type match. More...
 
virtual CPNS::ISelectorMessageGetISelectorMessage () const =0
 Check message type and return an ISelectorMessage object pointer if type match. More...
 
virtual CPNS::ITextMessageGetITextMessage () const =0
 Check message type and return an ITextMessage object pointer if type match. More...
 
virtual CPNS::IMIDISysexMessageGetIMIDISysexMessage () const =0
 Check message type and return an IMIDISysexMessage object pointer if type match. More...
 
virtual
CPNS::IDataTransferMessage
GetIDataTransferMessage () const =0
 Check message type and return an IDataTransferMessage object pointer if type match. More...
 
virtual
CPNS::CombinedTimeStampFlags 
GetTimeStampFlags () const =0
 Get time stamp flags, informing about time stamp types available and offline mode. More...
 
virtual CPNS::SongPosition GetTimeStampSongPosition () const =0
 Get the Song Position time stamp. More...
 
virtual CPNS::SystemTime GetTimeStampSystemTime () const =0
 Get the System Time time stamp. More...
 
virtual CPNS::Endpoint GetSource () const =0
 Get the message source endpoint. More...
 
virtual CPNS::uint16 GetDestinationNumber () const =0
 Get the number of destinations This methods is only useful in case of message trapped during recording session. More...
 
virtual CPNS::Endpoint GetDestination (CPNS::uint16 const wDestinationIndex)=0
 Get a destination Get the number of destinations This methods is only useful in case of message trapped during recording session. More...
 
- Public Member Functions inherited from CPNS::IHookedObject
virtual void Acquire ()=0
 Acquire an object. More...
 
virtual void Release ()=0
 Release an object. More...
 
virtual CPNS::uint32 GetHookCounter () const =0
 Get object's hook counter. More...
 
- Public Member Functions inherited from CPNS::IObject
virtual CPNS::ICHAIGetCHAI ()=0
 Get a pointer to the CHAI hosting this object. More...
 
virtual void RegisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0
 Register an Object's notification handler. More...
 
virtual void UnregisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0
 Unregister an Object's notification handler. More...
 
virtual CPNS::Enums::ObjectTypes GetObjectType () const =0
 Get the object type. More...
 
virtual CPNS::uint32 GetHandle () const =0
 Get a unique handle to the object if this object is handled by the trashcan. More...
 
virtual void SetUserDataPtr (void const *const pData)=0
 Set a custom user ptr data. More...
 
virtual void * GetUserDataPtr () const =0
 Get custom user ptr data. More...
 
virtual void SetUserDataUInt32 (const CPNS::uint32 dwData)=0
 Set a custom user uint32 data. More...
 
virtual CPNS::uint32 GetUserDataUInt32 () const =0
 Get custom user uint32 data. More...
 

Detailed Description

Modifier message dedicated class.

Member Function Documentation

virtual CPNS::Enums::PerformanceMessageAutomationStates CPNS::IModifierMessage::GetAutomationState ( ) const
pure virtual

Get Automation state.

Returns
the automation state
virtual CPNS::boolean CPNS::IModifierMessage::GetAutomationTouch ( ) const
pure virtual

Get Automation touch.

Returns
state of the touch sensor, TRUE if touching.
virtual CPNS::boolean CPNS::IModifierMessage::GetAutomationWTE ( ) const
pure virtual

Get Automation Write-to-End/Latch mode.

Returns
TRUE, Write-to-End FALSE, Latch
virtual CPNS::uint16 CPNS::IModifierMessage::GetIndex ( ) const
pure virtual

Get Index value.

Returns
Index value
virtual CPNS::uint16 CPNS::IModifierMessage::GetMorph ( ) const
pure virtual

Get Morph time value.

Returns
Morph time value
virtual CPNS::uint16 CPNS::IModifierMessage::GetNumber ( ) const
pure virtual

Get the message's number.

Returns
the message's number
virtual CPNS::boolean CPNS::IModifierMessage::GetPreLoad ( ) const
pure virtual

Get the profile's Preload flag If Preload is set, the device should prepare to apply the message's value but do not commit until :

  • the same message arrives with Trigger profile set and Preload flag clear.
  • a SIG_PreloadCommit or SIG_PreloadCancel signal is received
    Returns
    Preload status
virtual CPNS::Enums::RelativeMode CPNS::IModifierMessage::GetRelativeMode ( ) const
pure virtual

Get the relative mode.

If the value is relative, it can be casted as an int16. Generally used by push buttons and rotary encoders.

Returns
Relative mode
virtual CPNS::Enums::PerformanceMessageSources CPNS::IModifierMessage::GetSourceType ( ) const
pure virtual

Get the Source type Tells about the message's kind of source.

Returns
A PerformanceMessageSources value
virtual CPNS::Enums::TransactionModes CPNS::IModifierMessage::GetTransaction ( ) const
pure virtual

Get the transaction status.

Returns
one of the TransactionModes values
virtual CPNS::boolean CPNS::IModifierMessage::GetTrigger ( ) const
pure virtual

Get the Trigger flag Apply again the message, even the current value is already the message's value, or activate the pre-loaded settings.

Returns
Trigger value
virtual CPNS::Value CPNS::IModifierMessage::GetValue ( ) const
pure virtual

Get the Modifier's value.

Returns
the message's value
virtual CPNS::uint16 CPNS::IModifierMessage::GetVoiceID ( ) const
pure virtual

Get the VoiceID value The Voice ID information can be used to reconcile Events, Modifiers, Selectors and Texts.

The range 0xFF00 to 0xFF7F is reserved for MIDI backward compatibility. A MIDI to CopperLan translator automatically set the VoiceID to the value 0xFF00 + MIDI note. Value 0xFFFE is reserved and means "Voice ID unavailable". Value 0xFFFF is reserved and means "All Voice IDs".

Warning
If no VoiceID is present in the message, and if the application needs a VoiceID, it is recommended to use the tone information in place of the missing VoiceID.
Returns
the VoiceID value
virtual CPNS::boolean CPNS::IModifierMessage::IsAutomationAvailable ( ) const
pure virtual

Check if automation settings are available.

Returns
TRUE if profile bit MP_Automation is set
virtual CPNS::boolean CPNS::IModifierMessage::IsIndexAvailable ( ) const
pure virtual

Check if Index is available.

Returns
TRUE if MP_IndexAvailable profile bit set
virtual CPNS::boolean CPNS::IModifierMessage::IsMorphAvailable ( ) const
pure virtual

Check if Morph is available.

Returns
TRUE if MP_MorphAvailable profile bit set
virtual CPNS::boolean CPNS::IModifierMessage::IsVoiceIDAvailable ( ) const
pure virtual

Check if VoiceID is available.

Returns
TRUE if VoiceID data is available (EP_VoiceID is set)
virtual void CPNS::IModifierMessage::SetAutomationState ( CPNS::Enums::PerformanceMessageAutomationStates const  eValue)
pure virtual

Set Automation state.

Remarks
Automatically set the MP_Automation profile bit
Parameters
[in]eValuethe automation state
virtual void CPNS::IModifierMessage::SetAutomationTouch ( CPNS::boolean const  fValue)
pure virtual

Set Automation touch.

Remarks
Automatically set the MP_Automation profile bit
Parameters
[in]fValuestate of the touch sensor, TRUE if touching.
virtual void CPNS::IModifierMessage::SetAutomationWTE ( CPNS::boolean const  fValue)
pure virtual

Set Automation Write-to-End/Latch mode.

Remarks
Automatically set the MP_Automation profile bit
Parameters
[in]fValueTRUE, Write-to-End FALSE, Latch
virtual void CPNS::IModifierMessage::SetIndex ( CPNS::uint16 const  wValue)
pure virtual

Set Index value.

Remarks
Automatically set the MP_IndexAvailable profile bit
Parameters
[in]wValueIndex value
virtual void CPNS::IModifierMessage::SetMorph ( CPNS::uint16 const  wTime)
pure virtual

Set Morph time value.

Remarks
Automatically set the MP_MorphAvailable profile bit
Parameters
[in]wTimeMorph time value, specified in DT_TLIN16D
virtual void CPNS::IModifierMessage::SetNumber ( CPNS::uint16 const  wNumber)
pure virtual

Set the message Number.

Remarks
Standard Modifier numbers are available from CPNS::Enums::Modifiers
Parameters
[in]wNumberthe message's number
virtual void CPNS::IModifierMessage::SetPreLoad ( CPNS::boolean const  fValue)
pure virtual

Set the profile's Preload flag If Preload is set, the device should prepare to apply the message's value but do not commit until :

  • the same message arrives with Trigger profile set and Preload flag clear.
  • a SIG_PreloadCommit or SIG_PreloadCancel signal is received
    Parameters
    [in]fValuePreload status
virtual void CPNS::IModifierMessage::SetRelativeMode ( CPNS::Enums::RelativeMode const  mode)
pure virtual

Specifies if the value is relative or not.

If the value is relative, it can be casted as an int16. Generally used by push buttons and rotary encoders.

Parameters
[in]fValueRelative mode
virtual void CPNS::IModifierMessage::SetSourceType ( CPNS::Enums::PerformanceMessageSources const  source)
pure virtual

Set the Source type Tells about the message's kind of source.

Parameters
[in]sourceA PerformanceMessageSources value
virtual void CPNS::IModifierMessage::SetTransaction ( CPNS::Enums::TransactionModes const  status)
pure virtual

Set the transaction status.

Parameters
[in]statusThe current transaction status
virtual void CPNS::IModifierMessage::SetTrigger ( CPNS::boolean const  fValue)
pure virtual

Set the Trigger flag Apply again the message, even the current value is already the message's value, or activate the pre-loaded settings.

Parameters
[in]fValueTrigger value
virtual void CPNS::IModifierMessage::SetValue ( CPNS::Value const &  value)
pure virtual

Set the Modifier's value.

Parameters
[in]valuethe message's value
virtual void CPNS::IModifierMessage::SetVoiceID ( CPNS::uint16 const  wValue)
pure virtual

Set VoiceID data The Voice ID information can be used to reconcile Events, Modifiers, Selectors and Texts.

The range 0xFF00 to 0xFF7F is reserved for MIDI backward compatibility. A MIDI to CopperLan translator automatically set the VoiceID to the value 0xFF00 + MIDI note. Value 0xFFFE is reserved and means "Voice ID unavailable". Value 0xFFFF is reserved and means "All Voice IDs".

Remarks
Automatically set the EP_VoiceID profile bit
Warning
If no VoiceID is present in the message, and if the application needs a VoiceID, it is recommended to use the tone information in place of the missing VoiceID.
Parameters
[in]wValuethe VoiceID