libgig  4.0.0
gig::MidiRuleCtrlTrigger Class Reference

MIDI rule for triggering notes by control change events. More...

#include <gig.h>

Inheritance diagram for gig::MidiRuleCtrlTrigger:
gig::MidiRule

Classes

struct  trigger_t
 

Public Attributes

uint8_t ControllerNumber
 MIDI controller number. More...
 
uint8_t Triggers
 Number of triggers. More...
 
struct gig::MidiRuleCtrlTrigger::trigger_t pTriggers [32]
 

Protected Member Functions

 MidiRuleCtrlTrigger (RIFF::Chunk *_3ewg)
 
 MidiRuleCtrlTrigger ()
 
void UpdateChunks (uint8_t *pData) const
 

Friends

class Instrument
 

Detailed Description

MIDI rule for triggering notes by control change events.

A "Control Trigger MIDI rule" allows to trigger new notes by sending MIDI control change events to the sampler.

Note: "Control Trigger" MIDI rules are only supported by gigedit, but not by LinuxSampler. We recommend you using real-time instrument scripts instead. Read more about the details and reasons for this in the description of the MidiRule base class.

Deprecated:
Just provided for backward compatiblity, use Script for new instruments instead. See description of MidiRule for details.

Definition at line 838 of file gig.h.

Constructor & Destructor Documentation

◆ MidiRuleCtrlTrigger() [1/2]

gig::MidiRuleCtrlTrigger::MidiRuleCtrlTrigger ( RIFF::Chunk _3ewg)
protected

Definition at line 3914 of file gig.cpp.

References RIFF::Chunk::ReadUint8(), and RIFF::Chunk::SetPos().

◆ MidiRuleCtrlTrigger() [2/2]

gig::MidiRuleCtrlTrigger::MidiRuleCtrlTrigger ( )
protected

Definition at line 3932 of file gig.cpp.

Member Function Documentation

◆ UpdateChunks()

Friends And Related Function Documentation

◆ Instrument

friend class Instrument
friend

Definition at line 856 of file gig.h.

Member Data Documentation

◆ ControllerNumber

uint8_t gig::MidiRuleCtrlTrigger::ControllerNumber

MIDI controller number.

Definition at line 840 of file gig.h.

Referenced by UpdateChunks().

◆ pTriggers

struct gig::MidiRuleCtrlTrigger::trigger_t gig::MidiRuleCtrlTrigger::pTriggers[32]

Referenced by UpdateChunks().

◆ Triggers

uint8_t gig::MidiRuleCtrlTrigger::Triggers

Number of triggers.

Definition at line 841 of file gig.h.

Referenced by UpdateChunks().


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