CHAI SDK
Version 1.3
|
Event message dedicated class. More...
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 void | SetGate (CPNS::Enums::EventGateModes const gate)=0 |
Set the Gate information. More... | |
virtual CPNS::Enums::EventGateModes | GetGate () const =0 |
Get the Gate information. More... | |
virtual CPNS::boolean | IsImpulseAvailable () const =0 |
Check if Impulse is available. More... | |
virtual void | SetImpulse (CPNS::uint16 const wImpulse)=0 |
Set Impulse data. More... | |
virtual CPNS::uint16 | GetImpulse () const =0 |
Get the Impulse value. More... | |
virtual void | SetMIDIImpulse (CPNS::byte const bImpulse)=0 |
Set Impulse data in 7 bits. More... | |
virtual CPNS::byte | GetMIDIImpulse () const =0 |
Get the Impulse value in 7 bits. More... | |
virtual CPNS::boolean | IsToneAvailable () const =0 |
Check if Tone is available. More... | |
virtual void | SetTone (CPNS::uint16 const wTone)=0 |
Set Tone data A semitone value placed in the bits 15 to 8, where value 185 is the note A above middle C, usually with a reference frequency of 440Hz. More... | |
virtual CPNS::uint16 | GetTone () const =0 |
Get the Tone value A semitone value placed in the bits 15 to 8, where value 185 is the note A above middle C, usually with a reference frequency of 440Hz. More... | |
virtual void | SetMIDINote (CPNS::byte const bNote)=0 |
Set Tone data from MIDI note. More... | |
virtual CPNS::byte | GetMIDINote () const =0 |
Get the Tone value in 7 bits. More... | |
virtual CPNS::boolean | IsWaveSettingAvailable () const =0 |
Check if wave settings are available. More... | |
virtual void | SetWaveSettingStartPoint (CPNS::uint16 const wValue)=0 |
Set the Wave Settings start point Tells the start point as a position within the selected boundaries. More... | |
virtual CPNS::uint16 | GetWaveSettingStartPoint () const =0 |
Get the Wave Settings start point. More... | |
virtual void | SetWaveSettingBoundaries (CPNS::Enums::EventWaveBoundaries const eValue)=0 |
Set the Wave Settings boundaries Tells what portion of the wave and loop should be considered. More... | |
virtual CPNS::Enums::EventWaveBoundaries | GetWaveSettingBoundaries () const =0 |
Get the Wave Settings boundaries. More... | |
virtual void | SetWaveSettingReset (CPNS::boolean const fValue)=0 |
Set the Wave Settings reset Tells the wave reset value that overrides the default value as defined by the Gate mode. More... | |
virtual CPNS::boolean | GetWaveSettingReset () const =0 |
Get the Wave Settings reset. More... | |
virtual void | SetOffsetTone (CPNS::boolean const fValue)=0 |
Set the Offset tone flag Tells if the Tone information is absolute or relative. More... | |
virtual CPNS::boolean | GetOffsetTone () const =0 |
Get the Offset tone flag Tells if the Tone information is absolute or relative. 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::ICHAI * | GetCHAI ()=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... | |
Event message dedicated class.
|
pure virtual |
Get the Gate information.
|
pure virtual |
Get the Impulse value.
|
pure virtual |
Get the Impulse value in 7 bits.
|
pure virtual |
Get the Tone value in 7 bits.
|
pure virtual |
Get the Offset tone flag Tells if the Tone information is absolute or relative.
|
pure virtual |
Get the Tone value A semitone value placed in the bits 15 to 8, where value 185 is the note A above middle C, usually with a reference frequency of 440Hz.
A fine pitch setting, which is a fractional value in the bottom 8 bits, allowing a precision of 1/256th of a semitone. So the data format is: tone = 256 * (note_number + 116) Frequency in Hz: 440.0f * pow(2.0f, ((wTone - 47360.0f)/3072.0f)) Some values:
|
pure virtual |
Get the transaction status.
|
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".
|
pure virtual |
Get the Wave Settings boundaries.
|
pure virtual |
Get the Wave Settings reset.
|
pure virtual |
Get the Wave Settings start point.
|
pure virtual |
Check if Impulse is available.
|
pure virtual |
Check if Tone is available.
|
pure virtual |
Check if VoiceID is available.
|
pure virtual |
Check if wave settings are available.
|
pure virtual |
Set the Gate information.
[in] | gate | the Gate value |
|
pure virtual |
Set Impulse data.
[in] | wImpulse | the Impulse |
|
pure virtual |
Set Impulse data in 7 bits.
[in] | bImpulse | the Impulse in 7 bits |
|
pure virtual |
Set Tone data from MIDI note.
[in] | bNote | the MIDI note |
|
pure virtual |
Set the Offset tone flag Tells if the Tone information is absolute or relative.
[in] | fValue | FALSE if the Tone is absolute, TRUE if the Tone is relative |
|
pure virtual |
Set Tone data A semitone value placed in the bits 15 to 8, where value 185 is the note A above middle C, usually with a reference frequency of 440Hz.
A fine pitch setting, which is a fractional value in the bottom 8 bits, allowing a precision of 1/256th of a semitone. So the data format is: tone = 256 * (note_number + 116) Frequency in Hz: 440.0f * pow(2.0f, ((wTone - 47360.0f)/3072.0f)) Some values:
[in] | wTone | the Tone |
|
pure virtual |
Set the transaction status.
[in] | status | The current transaction status |
|
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".
[in] | wValue | the VoiceID |
|
pure virtual |
Set the Wave Settings boundaries Tells what portion of the wave and loop should be considered.
[in] | eValue | one of the EventWaveBoundaries values |
|
pure virtual |
Set the Wave Settings reset Tells the wave reset value that overrides the default value as defined by the Gate mode.
[in] | fValue | FALSE, Wave is not reset, the other Wave Settings fields are ignored. TRUE, the Wave Boundaries and Start Point are applied. |
|
pure virtual |
Set the Wave Settings start point Tells the start point as a position within the selected boundaries.
[in] | wValue | starting point in 1/1440th of length. 0 starts at the beginning, 1439 means playing the last 1440th segment 720 means start playing precisely at half length |