linuxsampler 2.3.1
LinuxSampler::EngineChannel Class Referenceabstract

Channel Interface for LinuxSampler Sampler Engines. More...

#include <EngineChannel.h>

Public Member Functions

virtual void Reset ()=0
 
virtual void SendNoteOn (uint8_t Key, uint8_t Velocity, uint8_t MidiChannel)=0
 
virtual void SendNoteOn (uint8_t Key, uint8_t Velocity, uint8_t MidiChannel, int32_t FragmentPos)=0
 
virtual void SendNoteOff (uint8_t Key, uint8_t Velocity, uint8_t MidiChannel)=0
 
virtual void SendNoteOff (uint8_t Key, uint8_t Velocity, uint8_t MidiChannel, int32_t FragmentPos)=0
 
virtual void SendPitchbend (int Pitch, uint8_t MidiChannel)=0
 
virtual void SendPitchbend (int Pitch, uint8_t MidiChannel, int32_t FragmentPos)=0
 
virtual void SendControlChange (uint8_t Controller, uint8_t Value, uint8_t MidiChannel)=0
 
virtual void SendControlChange (uint8_t Controller, uint8_t Value, uint8_t MidiChannel, int32_t FragmentPos)=0
 
virtual void SendProgramChange (uint8_t Program)=0
 
virtual void SendChannelPressure (uint8_t Value, uint8_t MidiChannel)=0
 
virtual void SendChannelPressure (uint8_t Value, uint8_t MidiChannel, int32_t FragmentPos)=0
 
virtual void SendPolyphonicKeyPressure (uint8_t Key, uint8_t Value, uint8_t MidiChannel)=0
 
virtual void SendPolyphonicKeyPressure (uint8_t Key, uint8_t Value, uint8_t MidiChannel, int32_t FragmentPos)=0
 
virtual bool StatusChanged (bool bNewStatus=false)=0
 
virtual float Volume ()=0
 
virtual void Volume (float f)=0
 
virtual float Pan ()=0
 
virtual void Pan (float f)=0
 
virtual uint Channels ()=0
 
virtual void Connect (AudioOutputDevice *pAudioOut)=0
 
virtual void DisconnectAudioOutputDevice ()=0
 
virtual AudioOutputDeviceGetAudioOutputDevice ()=0
 
virtual void SetOutputChannel (uint EngineAudioChannel, uint AudioDeviceChannel)=0
 
virtual int OutputChannel (uint EngineAudioChannel)=0
 
virtual void Connect (MidiInputPort *pMidiPort)=0
 
virtual void Disconnect (MidiInputPort *pMidiPort)=0
 
virtual void DisconnectAllMidiInputPorts ()=0
 
virtual uint GetMidiInputPortCount ()=0
 
virtual MidiInputPortGetMidiInputPort (uint index)=0
 
virtual midi_chan_t MidiChannel ()=0
 
virtual void SetMidiChannel (midi_chan_t MidiChannel)=0
 
virtual void Connect (MidiInputPort *pMidiPort, midi_chan_t MidiChannel) DEPRECATED_API=0
 
virtual void DisconnectMidiInputPort () DEPRECATED_API=0
 
virtual MidiInputPortGetMidiInputPort () DEPRECATED_API=0
 
virtual void Connect (VirtualMidiDevice *pDevice)=0
 
virtual void Disconnect (VirtualMidiDevice *pDevice)=0
 
virtual void PrepareLoadInstrument (const char *FileName, uint Instrument)=0
 
virtual void LoadInstrument ()=0
 
virtual String InstrumentFileName ()=0
 Returns the file name of the currently loaded instrument. Equivalent as calling InstrumentFileName(0).
 
virtual String InstrumentFileName (int index)
 
virtual String InstrumentName ()=0
 
virtual int InstrumentIndex ()=0
 
virtual int InstrumentStatus ()=0
 
virtual EngineGetEngine ()=0
 
virtual String EngineName ()=0
 
virtual FxSendAddFxSend (uint8_t MidiCtrl, String Name="") throw (Exception) =0
 
virtual FxSendGetFxSend (uint FxSendIndex)=0
 
virtual uint GetFxSendCount ()=0
 
virtual void RemoveFxSend (FxSend *pFxSend)=0
 
void SetMute (int state) throw (Exception)
 Sets the mute state of this channel.
 
int GetMute ()
 Determines whether this channel is muted.
 
void SetSolo (bool solo)
 Sets the solo state of this channel.
 
bool GetSolo ()
 Determines whether this is a solo channel.
 
uint8_t GetMidiProgram ()
 Returns current MIDI program (change) number of this EngineChannel.
 
void SetMidiProgram (uint8_t Program)
 Change EngineChannel's MIDI program.
 
uint8_t GetMidiBankMsb ()
 Returns current MIDI bank MSB (coarse) number of this EngineChannel.
 
void SetMidiBankMsb (uint8_t BankMSB)
 Change current MIDI bank MSB (coarse) number of this EngineChannel.
 
uint8_t GetMidiBankLsb ()
 Returns current MIDI bank LSB (fine) number of this EngineChannel.
 
void SetMidiBankLsb (uint8_t BankLSB)
 Change current MIDI bank LSB (fine) number of this EngineChannel.
 
bool UsesNoMidiInstrumentMap ()
 Returns true if this EngineChannel is using no MIDI instrument map at all, that is if it will ignore all MIDI program change messages.
 
bool UsesDefaultMidiInstrumentMap ()
 Returns true if this EngineChannel is using the default MIDI instrument map for handling MIDI program changes.
 
int GetMidiInstrumentMap () throw (Exception)
 Returns ID of the MIDI instrument map currently used by this EngineChannel to handle MIDI program changes.
 
void SetMidiInstrumentMapToNone ()
 Let this EngineChannel use no MIDI instrument map at all, that is to let it ignore all MIDI program change messages.
 
void SetMidiInstrumentMapToDefault ()
 Let this EngineChannel use the default MIDI instrument map to handle MIDI program changes.
 
void SetMidiInstrumentMap (int MidiMap) throw (Exception)
 Set a specific MIDI instrument map this EngineChannel should use to handle MIDI program changes.
 
void SetMidiRpnParameterMsb (uint8_t ParamMSB)
 Set MIDI Registered Parameter Number (RPN) (upper 7 bits / coarse).
 
void SetMidiRpnParameterLsb (uint8_t ParamLSB)
 Set MIDI Registered Parameter Number (RPN) (lower 7 bits / fine).
 
void SetMidiRpnDataMsb (uint8_t DataMSB)
 Set new MSB data value (upper 7 bits / coarse) for currently selected MIDI Registered Parameter Number (RPN).
 
void SetMidiRpnDataLsb (uint8_t DataLSB)
 Set new LSB data value (lower 7 bits / fine) for currently selected MIDI Registered Parameter Number (RPN).
 
void SetMidiRpnData (int Data)
 Set new data value (14 bits, MSB and LSB data combined) for currently selected MIDI Registered Parameter Number (RPN).
 
void ResetMidiRpnParameter ()
 Reset to no RPN parameter currently selected.
 
void SetMidiNrpnParameterMsb (uint8_t ParamMSB)
 Set MIDI Non-Registered Parameter Number (NRPN) (upper 7 bits / coarse).
 
void SetMidiNrpnParameterLsb (uint8_t ParamLSB)
 Set MIDI Non-Registered Parameter Number (NRPN) (lower 7 bits / fine).
 
void SetMidiNrpnDataMsb (uint8_t DataMSB)
 Set new MSB data value (upper 7 bits / coarse) for currently selected MIDI Non-Registered Parameter Number (NRPN).
 
void SetMidiNrpnDataLsb (uint8_t DataLSB)
 Set new LSB data value (lower 7 bits / fine) for currently selected MIDI Non-Registered Parameter Number (NRPN).
 
void SetMidiNrpnData (int Data)
 Set new data value (14 bits, MSB and LSB data combined) for currently selected MIDI Non-Registered Parameter Number (NRPN).
 
void ResetMidiNrpnParameter ()
 Reset to no NRPN parameter currently selected.
 
int GetMidiRpnParameter ()
 Get currently selected MIDI Registered Parameter Number (RPN), this method will return the already merged 14 bit parameter number (MSB and LSB value combined).
 
int GetMidiRpnData ()
 Get current data value of currently selected MIDI Registered Parameter Number (RPN), this method will return the already merged 14 bit data value (MSB and LSB data values combined).
 
int GetMidiNrpnParameter ()
 Get currently selected MIDI Non-Registered Parameter Number (NRPN), this method will return the already merged 14 bit value (MSB and LSB value combined).
 
int GetMidiNrpnData ()
 Get current data value of currently selected MIDI Non-Registered Parameter Number (NRPN), this method will return the already merged 14 bit data value (MSB and LSB data values combined).
 
void AddFxSendCountListener (FxSendCountListener *l)
 Registers the specified listener to be notified when the number of effect sends on this channel is changed.
 
void RemoveFxSendCountListener (FxSendCountListener *l)
 Removes the specified listener.
 
void RemoveAllFxSendCountListeners ()
 Removes all listeners.
 
uint GetVoiceCount ()
 Gets the current number of active voices.
 
void SetVoiceCount (uint Voices)
 Sets the current number of active voices.
 
uint GetDiskStreamCount ()
 Gets the current number of active disk streams.
 
void SetDiskStreamCount (uint Streams)
 Sets the current number of active disk streams.
 
SamplerChannelGetSamplerChannel ()
 
void SetSamplerChannel (SamplerChannel *pChannel)
 
SamplerGetSampler ()
 Returns the sampler to which this channel belongs.
 
void ExecuteProgramChange (uint32_t Program)
 Performs a program change on the channel.
 
void SetMidiRpnControllerMsb (uint8_t CtrlMSB) DEPRECATED_API
 Set MIDI Registered Parameter Number (RPN) Controller (upper 8 bits / coarse).
 
void SetMidiRpnControllerLsb (uint8_t CtrlLSB) DEPRECATED_API
 Set MIDI Registered Parameter Number (RPN) Controller (lower 8 bits / fine).
 
void ResetMidiRpnController () DEPRECATED_API
 Reset to no RPN controller currently selected.
 
void SetMidiNrpnControllerMsb (uint8_t CtrlMSB) DEPRECATED_API
 Set MIDI Non-Registered Parameter Number (NRPN) Controller (upper 8 bits / coarse).
 
void SetMidiNrpnControllerLsb (uint8_t CtrlLSB) DEPRECATED_API
 Set MIDI Non-Registered Parameter Number (NRPN) Controller (lower 8 bits / fine).
 
void ResetMidiNrpnController () DEPRECATED_API
 Reset to no NRPN controller currently selected.
 
int GetMidiRpnController () DEPRECATED_API
 Get currently selected MIDI Registered Parameter Number (RPN) Controller, this method will return the already merged value (MSB and LSB value).
 
int GetMidiNrpnController () DEPRECATED_API
 Get currently selected MIDI Non-Registered Parameter Number (NRPN) Controller, this method will return the already merged value (MSB and LSB value).
 

Protected Member Functions

 EngineChannel ()
 
virtual ~EngineChannel ()
 
void fireFxSendCountChanged (int ChannelId, int NewCount)
 Notifies listeners that the number of effect sends on a this channel is changed.
 

Friends

class EngineChannelFactory
 

Detailed Description

Channel Interface for LinuxSampler Sampler Engines.

Every sampler engine can be used on several sampler channels and usually the same Engine instance is used on multiple sampler channels. For this every sampler engine must also implement a class which handles all channel dependant parameters and channel dependant execution code.

This abstract base interface class defines all mandatory methods which have to be implemented by all engine channel implementations.

Definition at line 54 of file EngineChannel.h.

Constructor & Destructor Documentation

◆ EngineChannel()

LinuxSampler::EngineChannel::EngineChannel ( )
protected

◆ ~EngineChannel()

virtual LinuxSampler::EngineChannel::~EngineChannel ( )
protectedvirtual

Member Function Documentation

◆ AddFxSend()

virtual FxSend * LinuxSampler::EngineChannel::AddFxSend ( uint8_t  MidiCtrl,
String  Name = "" 
)
throw (Exception
)
pure virtual

◆ AddFxSendCountListener()

void LinuxSampler::EngineChannel::AddFxSendCountListener ( FxSendCountListener l)

Registers the specified listener to be notified when the number of effect sends on this channel is changed.

◆ Channels()

virtual uint LinuxSampler::EngineChannel::Channels ( )
pure virtual

◆ Connect() [1/4]

virtual void LinuxSampler::EngineChannel::Connect ( AudioOutputDevice pAudioOut)
pure virtual

◆ Connect() [2/4]

virtual void LinuxSampler::EngineChannel::Connect ( MidiInputPort pMidiPort)
pure virtual

◆ Connect() [3/4]

virtual void LinuxSampler::EngineChannel::Connect ( MidiInputPort pMidiPort,
midi_chan_t  MidiChannel 
)
pure virtual

◆ Connect() [4/4]

virtual void LinuxSampler::EngineChannel::Connect ( VirtualMidiDevice pDevice)
pure virtual

◆ Disconnect() [1/2]

virtual void LinuxSampler::EngineChannel::Disconnect ( MidiInputPort pMidiPort)
pure virtual

◆ Disconnect() [2/2]

virtual void LinuxSampler::EngineChannel::Disconnect ( VirtualMidiDevice pDevice)
pure virtual

◆ DisconnectAllMidiInputPorts()

virtual void LinuxSampler::EngineChannel::DisconnectAllMidiInputPorts ( )
pure virtual

◆ DisconnectAudioOutputDevice()

virtual void LinuxSampler::EngineChannel::DisconnectAudioOutputDevice ( )
pure virtual

◆ DisconnectMidiInputPort()

virtual void LinuxSampler::EngineChannel::DisconnectMidiInputPort ( )
pure virtual

◆ EngineName()

virtual String LinuxSampler::EngineChannel::EngineName ( )
pure virtual

◆ ExecuteProgramChange()

void LinuxSampler::EngineChannel::ExecuteProgramChange ( uint32_t  Program)

Performs a program change on the channel.

This method is not real-time safe.

◆ fireFxSendCountChanged()

void LinuxSampler::EngineChannel::fireFxSendCountChanged ( int  ChannelId,
int  NewCount 
)
protected

Notifies listeners that the number of effect sends on a this channel is changed.

Parameters
ChannelIdThe numerical ID of the sampler channel.
NewCountThe new number of sampler channels.

◆ GetAudioOutputDevice()

virtual AudioOutputDevice * LinuxSampler::EngineChannel::GetAudioOutputDevice ( )
pure virtual

◆ GetDiskStreamCount()

uint LinuxSampler::EngineChannel::GetDiskStreamCount ( )

Gets the current number of active disk streams.

◆ GetEngine()

virtual Engine * LinuxSampler::EngineChannel::GetEngine ( )
pure virtual

◆ GetFxSend()

virtual FxSend * LinuxSampler::EngineChannel::GetFxSend ( uint  FxSendIndex)
pure virtual

◆ GetFxSendCount()

virtual uint LinuxSampler::EngineChannel::GetFxSendCount ( )
pure virtual

◆ GetMidiBankLsb()

uint8_t LinuxSampler::EngineChannel::GetMidiBankLsb ( )

Returns current MIDI bank LSB (fine) number of this EngineChannel.

◆ GetMidiBankMsb()

uint8_t LinuxSampler::EngineChannel::GetMidiBankMsb ( )

Returns current MIDI bank MSB (coarse) number of this EngineChannel.

◆ GetMidiInputPort() [1/2]

virtual MidiInputPort * LinuxSampler::EngineChannel::GetMidiInputPort ( )
pure virtual

◆ GetMidiInputPort() [2/2]

virtual MidiInputPort * LinuxSampler::EngineChannel::GetMidiInputPort ( uint  index)
pure virtual

◆ GetMidiInputPortCount()

virtual uint LinuxSampler::EngineChannel::GetMidiInputPortCount ( )
pure virtual

◆ GetMidiInstrumentMap()

int LinuxSampler::EngineChannel::GetMidiInstrumentMap ( )
throw (Exception
)

Returns ID of the MIDI instrument map currently used by this EngineChannel to handle MIDI program changes.

You should always call UsesNoMidiInstrumentMap() and UsesDefaultMidiInstrumentMap() before calling this method to check if this EngineChannel is probably using the default map or no map at all, because in these two particular cases this method would throw an exception!

Exceptions
Exception- if EngineChannel is set to no map at all or is set to the default map
See also
UsesNoMidiInstrumentMap()
UsesDefaultMidiInstrumentMap()

◆ GetMidiNrpnController()

int LinuxSampler::EngineChannel::GetMidiNrpnController ( )

Get currently selected MIDI Non-Registered Parameter Number (NRPN) Controller, this method will return the already merged value (MSB and LSB value).

WARNING: you have to call ResetMidiNrpnController() after using this value, otherwise all subsequent MIDI CC #6 (Data) messages are interpreted as NRPN controller value messages.

Returns
currently selected NRPN controller number, a negative value if no NRPN controller currently selected
Deprecated:
Use GetMidiNrpnParameter() instead.

◆ GetMidiNrpnData()

int LinuxSampler::EngineChannel::GetMidiNrpnData ( )

Get current data value of currently selected MIDI Non-Registered Parameter Number (NRPN), this method will return the already merged 14 bit data value (MSB and LSB data values combined).

Returns
latest data value (14 bits) of currently selected NRPN parameter, zero otherwise

◆ GetMidiNrpnParameter()

int LinuxSampler::EngineChannel::GetMidiNrpnParameter ( )

Get currently selected MIDI Non-Registered Parameter Number (NRPN), this method will return the already merged 14 bit value (MSB and LSB value combined).

WARNING: you have to call ResetMidiNrpnParameter() after using this value, otherwise all subsequent MIDI CC #6 (Data) messages are interpreted as NRPN value messages.

Returns
currently selected (14 bit) NRPN number, a negative value if no NRPN parameter currently selected

◆ GetMidiProgram()

uint8_t LinuxSampler::EngineChannel::GetMidiProgram ( )

Returns current MIDI program (change) number of this EngineChannel.

◆ GetMidiRpnController()

int LinuxSampler::EngineChannel::GetMidiRpnController ( )

Get currently selected MIDI Registered Parameter Number (RPN) Controller, this method will return the already merged value (MSB and LSB value).

WARNING: you have to call ResetMidiRpnController() after using this value, otherwise all subsequent MIDI CC #6 (Data) messages are interpreted as RPN controller value messages.

Returns
currently selected RPN controller number, a negative value if no RPN controller currently selected
Deprecated:
Use GetMidiRpnParameter() instead.

◆ GetMidiRpnData()

int LinuxSampler::EngineChannel::GetMidiRpnData ( )

Get current data value of currently selected MIDI Registered Parameter Number (RPN), this method will return the already merged 14 bit data value (MSB and LSB data values combined).

Returns
latest data value (14 bits) of currently selected RPN parameter, zero otherwise

◆ GetMidiRpnParameter()

int LinuxSampler::EngineChannel::GetMidiRpnParameter ( )

Get currently selected MIDI Registered Parameter Number (RPN), this method will return the already merged 14 bit parameter number (MSB and LSB value combined).

WARNING: you have to call ResetMidiRpnParameter() after using this value, otherwise all subsequent MIDI CC #6 (Data) messages are interpreted as RPN value messages.

Returns
currently selected (14 bit) RPN number, a negative value if no RPN parameter currently selected

◆ GetMute()

int LinuxSampler::EngineChannel::GetMute ( )

Determines whether this channel is muted.

Returns
1 if the channel is muted, 0 if the channel is not muted and -1 if the channel is muted because of presence of at least one solo channel.

◆ GetSampler()

Sampler * LinuxSampler::EngineChannel::GetSampler ( )

Returns the sampler to which this channel belongs.

◆ GetSamplerChannel()

SamplerChannel * LinuxSampler::EngineChannel::GetSamplerChannel ( )

◆ GetSolo()

bool LinuxSampler::EngineChannel::GetSolo ( )

Determines whether this is a solo channel.

Returns
true if this is a solo channel, false otherwise.

◆ GetVoiceCount()

uint LinuxSampler::EngineChannel::GetVoiceCount ( )

Gets the current number of active voices.

◆ InstrumentFileName() [1/2]

virtual String LinuxSampler::EngineChannel::InstrumentFileName ( )
pure virtual

Returns the file name of the currently loaded instrument. Equivalent as calling InstrumentFileName(0).

◆ InstrumentFileName() [2/2]

virtual String LinuxSampler::EngineChannel::InstrumentFileName ( int  index)
virtual

◆ InstrumentIndex()

virtual int LinuxSampler::EngineChannel::InstrumentIndex ( )
pure virtual

◆ InstrumentName()

virtual String LinuxSampler::EngineChannel::InstrumentName ( )
pure virtual

◆ InstrumentStatus()

virtual int LinuxSampler::EngineChannel::InstrumentStatus ( )
pure virtual

◆ LoadInstrument()

virtual void LinuxSampler::EngineChannel::LoadInstrument ( )
pure virtual

◆ MidiChannel()

virtual midi_chan_t LinuxSampler::EngineChannel::MidiChannel ( )
pure virtual

◆ OutputChannel()

virtual int LinuxSampler::EngineChannel::OutputChannel ( uint  EngineAudioChannel)
pure virtual

◆ Pan() [1/2]

virtual float LinuxSampler::EngineChannel::Pan ( )
pure virtual

◆ Pan() [2/2]

virtual void LinuxSampler::EngineChannel::Pan ( float  f)
pure virtual

◆ PrepareLoadInstrument()

virtual void LinuxSampler::EngineChannel::PrepareLoadInstrument ( const char FileName,
uint  Instrument 
)
pure virtual

◆ RemoveAllFxSendCountListeners()

void LinuxSampler::EngineChannel::RemoveAllFxSendCountListeners ( )

Removes all listeners.

◆ RemoveFxSend()

virtual void LinuxSampler::EngineChannel::RemoveFxSend ( FxSend pFxSend)
pure virtual

◆ RemoveFxSendCountListener()

void LinuxSampler::EngineChannel::RemoveFxSendCountListener ( FxSendCountListener l)

Removes the specified listener.

◆ Reset()

virtual void LinuxSampler::EngineChannel::Reset ( )
pure virtual

◆ ResetMidiNrpnController()

void LinuxSampler::EngineChannel::ResetMidiNrpnController ( )

Reset to no NRPN controller currently selected.

Deprecated:
Use ResetMidiNrpnParameter() instead.

◆ ResetMidiNrpnParameter()

void LinuxSampler::EngineChannel::ResetMidiNrpnParameter ( )

Reset to no NRPN parameter currently selected.

◆ ResetMidiRpnController()

void LinuxSampler::EngineChannel::ResetMidiRpnController ( )

Reset to no RPN controller currently selected.

Deprecated:
Use ResetMidiRpnParameter() instead.

◆ ResetMidiRpnParameter()

void LinuxSampler::EngineChannel::ResetMidiRpnParameter ( )

Reset to no RPN parameter currently selected.

◆ SendChannelPressure() [1/2]

virtual void LinuxSampler::EngineChannel::SendChannelPressure ( uint8_t  Value,
uint8_t  MidiChannel 
)
pure virtual

◆ SendChannelPressure() [2/2]

virtual void LinuxSampler::EngineChannel::SendChannelPressure ( uint8_t  Value,
uint8_t  MidiChannel,
int32_t  FragmentPos 
)
pure virtual

◆ SendControlChange() [1/2]

virtual void LinuxSampler::EngineChannel::SendControlChange ( uint8_t  Controller,
uint8_t  Value,
uint8_t  MidiChannel 
)
pure virtual

◆ SendControlChange() [2/2]

virtual void LinuxSampler::EngineChannel::SendControlChange ( uint8_t  Controller,
uint8_t  Value,
uint8_t  MidiChannel,
int32_t  FragmentPos 
)
pure virtual

◆ SendNoteOff() [1/2]

virtual void LinuxSampler::EngineChannel::SendNoteOff ( uint8_t  Key,
uint8_t  Velocity,
uint8_t  MidiChannel 
)
pure virtual

◆ SendNoteOff() [2/2]

virtual void LinuxSampler::EngineChannel::SendNoteOff ( uint8_t  Key,
uint8_t  Velocity,
uint8_t  MidiChannel,
int32_t  FragmentPos 
)
pure virtual

◆ SendNoteOn() [1/2]

virtual void LinuxSampler::EngineChannel::SendNoteOn ( uint8_t  Key,
uint8_t  Velocity,
uint8_t  MidiChannel 
)
pure virtual

◆ SendNoteOn() [2/2]

virtual void LinuxSampler::EngineChannel::SendNoteOn ( uint8_t  Key,
uint8_t  Velocity,
uint8_t  MidiChannel,
int32_t  FragmentPos 
)
pure virtual

◆ SendPitchbend() [1/2]

virtual void LinuxSampler::EngineChannel::SendPitchbend ( int  Pitch,
uint8_t  MidiChannel 
)
pure virtual

◆ SendPitchbend() [2/2]

virtual void LinuxSampler::EngineChannel::SendPitchbend ( int  Pitch,
uint8_t  MidiChannel,
int32_t  FragmentPos 
)
pure virtual

◆ SendPolyphonicKeyPressure() [1/2]

virtual void LinuxSampler::EngineChannel::SendPolyphonicKeyPressure ( uint8_t  Key,
uint8_t  Value,
uint8_t  MidiChannel 
)
pure virtual

◆ SendPolyphonicKeyPressure() [2/2]

virtual void LinuxSampler::EngineChannel::SendPolyphonicKeyPressure ( uint8_t  Key,
uint8_t  Value,
uint8_t  MidiChannel,
int32_t  FragmentPos 
)
pure virtual

◆ SendProgramChange()

virtual void LinuxSampler::EngineChannel::SendProgramChange ( uint8_t  Program)
pure virtual

◆ SetDiskStreamCount()

void LinuxSampler::EngineChannel::SetDiskStreamCount ( uint  Streams)

Sets the current number of active disk streams.

◆ SetMidiBankLsb()

void LinuxSampler::EngineChannel::SetMidiBankLsb ( uint8_t  BankLSB)

Change current MIDI bank LSB (fine) number of this EngineChannel.

◆ SetMidiBankMsb()

void LinuxSampler::EngineChannel::SetMidiBankMsb ( uint8_t  BankMSB)

Change current MIDI bank MSB (coarse) number of this EngineChannel.

◆ SetMidiChannel()

virtual void LinuxSampler::EngineChannel::SetMidiChannel ( midi_chan_t  MidiChannel)
pure virtual

◆ SetMidiInstrumentMap()

void LinuxSampler::EngineChannel::SetMidiInstrumentMap ( int  MidiMap)
throw (Exception
)

Set a specific MIDI instrument map this EngineChannel should use to handle MIDI program changes.

See also
SetMidiInstrumentMapToNone()
SetMidiInstrumentMapToDefault()
Exceptions
Exception- in case given map does not exist

◆ SetMidiInstrumentMapToDefault()

void LinuxSampler::EngineChannel::SetMidiInstrumentMapToDefault ( )

Let this EngineChannel use the default MIDI instrument map to handle MIDI program changes.

See also
SetMidiInstrumentMapToNone()
SetMidiInstrumentMap()

◆ SetMidiInstrumentMapToNone()

void LinuxSampler::EngineChannel::SetMidiInstrumentMapToNone ( )

Let this EngineChannel use no MIDI instrument map at all, that is to let it ignore all MIDI program change messages.

See also
SetMidiInstrumentMapToDefault()
SetMidiInstrumentMap()

◆ SetMidiNrpnControllerLsb()

void LinuxSampler::EngineChannel::SetMidiNrpnControllerLsb ( uint8_t  CtrlLSB)

Set MIDI Non-Registered Parameter Number (NRPN) Controller (lower 8 bits / fine).

Deprecated:
Use SetMidiNrpnParameterLsb() instead.

◆ SetMidiNrpnControllerMsb()

void LinuxSampler::EngineChannel::SetMidiNrpnControllerMsb ( uint8_t  CtrlMSB)

Set MIDI Non-Registered Parameter Number (NRPN) Controller (upper 8 bits / coarse).

Deprecated:
Use SetMidiNrpnParameterMsb() instead.

◆ SetMidiNrpnData()

void LinuxSampler::EngineChannel::SetMidiNrpnData ( int  Data)

Set new data value (14 bits, MSB and LSB data combined) for currently selected MIDI Non-Registered Parameter Number (NRPN).

◆ SetMidiNrpnDataLsb()

void LinuxSampler::EngineChannel::SetMidiNrpnDataLsb ( uint8_t  DataLSB)

Set new LSB data value (lower 7 bits / fine) for currently selected MIDI Non-Registered Parameter Number (NRPN).

◆ SetMidiNrpnDataMsb()

void LinuxSampler::EngineChannel::SetMidiNrpnDataMsb ( uint8_t  DataMSB)

Set new MSB data value (upper 7 bits / coarse) for currently selected MIDI Non-Registered Parameter Number (NRPN).

◆ SetMidiNrpnParameterLsb()

void LinuxSampler::EngineChannel::SetMidiNrpnParameterLsb ( uint8_t  ParamLSB)

Set MIDI Non-Registered Parameter Number (NRPN) (lower 7 bits / fine).

◆ SetMidiNrpnParameterMsb()

void LinuxSampler::EngineChannel::SetMidiNrpnParameterMsb ( uint8_t  ParamMSB)

Set MIDI Non-Registered Parameter Number (NRPN) (upper 7 bits / coarse).

◆ SetMidiProgram()

void LinuxSampler::EngineChannel::SetMidiProgram ( uint8_t  Program)

Change EngineChannel's MIDI program.

◆ SetMidiRpnControllerLsb()

void LinuxSampler::EngineChannel::SetMidiRpnControllerLsb ( uint8_t  CtrlLSB)

Set MIDI Registered Parameter Number (RPN) Controller (lower 8 bits / fine).

Deprecated:
Use SetMidiRpnParameterLsb() instead.

◆ SetMidiRpnControllerMsb()

void LinuxSampler::EngineChannel::SetMidiRpnControllerMsb ( uint8_t  CtrlMSB)

Set MIDI Registered Parameter Number (RPN) Controller (upper 8 bits / coarse).

Deprecated:
Use SetMidiRpnParameterMsb() instead.

◆ SetMidiRpnData()

void LinuxSampler::EngineChannel::SetMidiRpnData ( int  Data)

Set new data value (14 bits, MSB and LSB data combined) for currently selected MIDI Registered Parameter Number (RPN).

◆ SetMidiRpnDataLsb()

void LinuxSampler::EngineChannel::SetMidiRpnDataLsb ( uint8_t  DataLSB)

Set new LSB data value (lower 7 bits / fine) for currently selected MIDI Registered Parameter Number (RPN).

◆ SetMidiRpnDataMsb()

void LinuxSampler::EngineChannel::SetMidiRpnDataMsb ( uint8_t  DataMSB)

Set new MSB data value (upper 7 bits / coarse) for currently selected MIDI Registered Parameter Number (RPN).

◆ SetMidiRpnParameterLsb()

void LinuxSampler::EngineChannel::SetMidiRpnParameterLsb ( uint8_t  ParamLSB)

Set MIDI Registered Parameter Number (RPN) (lower 7 bits / fine).

◆ SetMidiRpnParameterMsb()

void LinuxSampler::EngineChannel::SetMidiRpnParameterMsb ( uint8_t  ParamMSB)

Set MIDI Registered Parameter Number (RPN) (upper 7 bits / coarse).

◆ SetMute()

void LinuxSampler::EngineChannel::SetMute ( int  state)
throw (Exception
)

Sets the mute state of this channel.

Parameters
state- specifies the mute state of this sampler channel.
Exceptions
Exception- if state does not contain valid value.

◆ SetOutputChannel()

virtual void LinuxSampler::EngineChannel::SetOutputChannel ( uint  EngineAudioChannel,
uint  AudioDeviceChannel 
)
pure virtual

◆ SetSamplerChannel()

void LinuxSampler::EngineChannel::SetSamplerChannel ( SamplerChannel pChannel)

◆ SetSolo()

void LinuxSampler::EngineChannel::SetSolo ( bool  solo)

Sets the solo state of this channel.

Parameters
solo- specifies whether this is a solo channel.

◆ SetVoiceCount()

void LinuxSampler::EngineChannel::SetVoiceCount ( uint  Voices)

Sets the current number of active voices.

◆ StatusChanged()

virtual bool LinuxSampler::EngineChannel::StatusChanged ( bool  bNewStatus = false)
pure virtual

◆ UsesDefaultMidiInstrumentMap()

bool LinuxSampler::EngineChannel::UsesDefaultMidiInstrumentMap ( )

Returns true if this EngineChannel is using the default MIDI instrument map for handling MIDI program changes.

See also
UsesNoMidiInstrumentMap()
GetMidiInstrumentMap()

◆ UsesNoMidiInstrumentMap()

bool LinuxSampler::EngineChannel::UsesNoMidiInstrumentMap ( )

Returns true if this EngineChannel is using no MIDI instrument map at all, that is if it will ignore all MIDI program change messages.

See also
UsesDefaultMidiInstrumentMap()
GetMidiInstrumentMap()

◆ Volume() [1/2]

virtual float LinuxSampler::EngineChannel::Volume ( )
pure virtual

◆ Volume() [2/2]

virtual void LinuxSampler::EngineChannel::Volume ( float  f)
pure virtual

Friends And Related Symbol Documentation

◆ EngineChannelFactory

friend class EngineChannelFactory
friend

Definition at line 526 of file EngineChannel.h.


The documentation for this class was generated from the following file: