OpenWareLaboratory
MonophonicProcessor< SynthVoice > Class Template Reference
Inheritance diagram for MonophonicProcessor< SynthVoice >:
Collaboration diagram for MonophonicProcessor< SynthVoice >:

Public Member Functions

void allNotesOff ()
 
void allNotesOn ()
 
virtual void channelPressure (MidiMessage msg)
 
void controlChange (MidiMessage msg)
 
float getPitchBendRange ()
 
bool getSustain ()
 
float getTuning ()
 
SynthVoice * getVoice (size_t index)
 
void modulate (MidiMessage msg)
 
 MonophonicProcessor ()
 
virtual void noteOff (MidiMessage msg)
 
virtual void noteOn (MidiMessage msg)
 
void pitchbend (MidiMessage msg)
 
virtual void polyKeyPressure (MidiMessage msg)
 
virtual void process (MidiMessage msg)
 
void rpn (uint16_t id, uint8_t msb, uint8_t lsb, MidiMessage msg)
 
void setDynamicRange (float range)
 Set the MIDI velocity dynamic range in dB, default 72dB. More...
 
void setModulationDepthRange (float range)
 Set modulation depth range, from 0 to 1.0. More...
 
void setParameter (uint8_t parameter_id, float value)
 
void setPitchBendRange (float range)
 Set pitch bend range in semitones. More...
 
void setSustain (bool value)
 
void setTuning (float frequency)
 
void setVoice (size_t index, SynthVoice *obj)
 
void sustain (MidiMessage msg)
 
virtual void sustainOff ()
 

Static Protected Member Functions

static float frequencyToNote (float freq)
 
static float noteToFrequency (float note)
 

Protected Attributes

bool dosustain
 
uint8_t lastNote = 0
 
float mod_range
 
uint8_t notes [16]
 
float pb_range
 
uint16_t rpn_id
 
uint8_t rpn_msb
 
uint8_t tuning_semitones
 
SynthVoice * voice [VOICES]
 

Detailed Description

template<class SynthVoice>
class MonophonicProcessor< SynthVoice >

Definition at line 9 of file MonophonicProcessor.h.

Constructor & Destructor Documentation

◆ MonophonicProcessor()

template<class SynthVoice >
MonophonicProcessor< SynthVoice >::MonophonicProcessor ( )
inline

Definition at line 15 of file MonophonicProcessor.h.

Member Function Documentation

◆ allNotesOff()

template<class SynthVoice >
void MonophonicProcessor< SynthVoice >::allNotesOff ( )
inline

◆ allNotesOn()

template<class SynthVoice >
void MonophonicProcessor< SynthVoice >::allNotesOn ( )
inline

Definition at line 41 of file MonophonicProcessor.h.

References VoiceAllocator< SynthVoice, 1 >::voice.

◆ channelPressure()

virtual void MidiProcessor::channelPressure ( MidiMessage  msg)
inlinevirtualinherited

◆ controlChange()

void VoiceAllocator< SynthVoice, VOICES >::controlChange ( MidiMessage  msg)
inlinevirtualinherited

Reimplemented from MidiProcessor.

Definition at line 116 of file VoiceAllocator.h.

◆ frequencyToNote()

static float VoiceAllocator< SynthVoice, VOICES >::frequencyToNote ( float  freq)
inlinestaticprotectedinherited

Definition at line 17 of file VoiceAllocator.h.

◆ getPitchBendRange()

float VoiceAllocator< SynthVoice, VOICES >::getPitchBendRange ( )
inlineinherited

Definition at line 21 of file VoiceAllocator.h.

◆ getSustain()

bool VoiceAllocator< SynthVoice, VOICES >::getSustain ( )
inlineinherited

Definition at line 78 of file VoiceAllocator.h.

◆ getTuning()

float VoiceAllocator< SynthVoice, VOICES >::getTuning ( )
inlineinherited

Definition at line 46 of file VoiceAllocator.h.

◆ getVoice()

SynthVoice* VoiceAllocator< SynthVoice, VOICES >::getVoice ( size_t  index)
inlineinherited

Definition at line 66 of file VoiceAllocator.h.

◆ modulate()

template<class SynthVoice >
void MonophonicProcessor< SynthVoice >::modulate ( MidiMessage  msg)
inlinevirtual

Reimplemented from MidiProcessor.

Definition at line 53 of file MonophonicProcessor.h.

References VoiceAllocator< SynthVoice, 1 >::voice.

◆ noteOff()

◆ noteOn()

template<class SynthVoice >
virtual void MonophonicProcessor< SynthVoice >::noteOn ( MidiMessage  msg)
inlinevirtual

◆ noteToFrequency()

static float VoiceAllocator< SynthVoice, VOICES >::noteToFrequency ( float  note)
inlinestaticprotectedinherited

Definition at line 14 of file VoiceAllocator.h.

◆ pitchbend()

template<class SynthVoice >
void MonophonicProcessor< SynthVoice >::pitchbend ( MidiMessage  msg)
inlinevirtual

Reimplemented from MidiProcessor.

Definition at line 56 of file MonophonicProcessor.h.

References VoiceAllocator< SynthVoice, 1 >::voice.

◆ polyKeyPressure()

virtual void MidiProcessor::polyKeyPressure ( MidiMessage  msg)
inlinevirtualinherited

◆ process()

◆ rpn()

void VoiceAllocator< SynthVoice, VOICES >::rpn ( uint16_t  id,
uint8_t  msb,
uint8_t  lsb,
MidiMessage  msg 
)
inlineinherited

Definition at line 87 of file VoiceAllocator.h.

◆ setDynamicRange()

void VoiceAllocator< SynthVoice, VOICES >::setDynamicRange ( float  range)
inlineinherited

Set the MIDI velocity dynamic range in dB, default 72dB.

Definition at line 42 of file VoiceAllocator.h.

◆ setModulationDepthRange()

void VoiceAllocator< SynthVoice, VOICES >::setModulationDepthRange ( float  range)
inlineinherited

Set modulation depth range, from 0 to 1.0.

Definition at line 35 of file VoiceAllocator.h.

◆ setParameter()

void VoiceAllocator< SynthVoice, VOICES >::setParameter ( uint8_t  parameter_id,
float  value 
)
inlineinherited

Definition at line 71 of file VoiceAllocator.h.

◆ setPitchBendRange()

void VoiceAllocator< SynthVoice, VOICES >::setPitchBendRange ( float  range)
inlineinherited

Set pitch bend range in semitones.

Does not update the frequency; effective from next pitch bend change

Definition at line 28 of file VoiceAllocator.h.

◆ setSustain()

void VoiceAllocator< SynthVoice, VOICES >::setSustain ( bool  value)
inlineinherited

Definition at line 81 of file VoiceAllocator.h.

◆ setTuning()

void VoiceAllocator< SynthVoice, VOICES >::setTuning ( float  frequency)
inlineinherited

Definition at line 49 of file VoiceAllocator.h.

◆ setVoice()

void VoiceAllocator< SynthVoice, VOICES >::setVoice ( size_t  index,
SynthVoice *  obj 
)
inlineinherited

Definition at line 62 of file VoiceAllocator.h.

◆ sustain()

void VoiceAllocator< SynthVoice, VOICES >::sustain ( MidiMessage  msg)
inlinevirtualinherited

Reimplemented from MidiProcessor.

Definition at line 75 of file VoiceAllocator.h.

◆ sustainOff()

template<class SynthVoice >
virtual void MonophonicProcessor< SynthVoice >::sustainOff ( )
inlinevirtual

Field Documentation

◆ dosustain

bool VoiceAllocator< SynthVoice, VOICES >::dosustain
protectedinherited

Definition at line 10 of file VoiceAllocator.h.

◆ lastNote

◆ mod_range

float VoiceAllocator< SynthVoice, VOICES >::mod_range
protectedinherited

Definition at line 9 of file VoiceAllocator.h.

◆ notes

template<class SynthVoice >
uint8_t MonophonicProcessor< SynthVoice >::notes[16]
protected

◆ pb_range

float VoiceAllocator< SynthVoice, VOICES >::pb_range
protectedinherited

Definition at line 8 of file VoiceAllocator.h.

◆ rpn_id

uint16_t VoiceAllocator< SynthVoice, VOICES >::rpn_id
protectedinherited

Definition at line 11 of file VoiceAllocator.h.

◆ rpn_msb

uint8_t VoiceAllocator< SynthVoice, VOICES >::rpn_msb
protectedinherited

Definition at line 12 of file VoiceAllocator.h.

◆ tuning_semitones

uint8_t VoiceAllocator< SynthVoice, VOICES >::tuning_semitones
protectedinherited

Definition at line 13 of file VoiceAllocator.h.

◆ voice

SynthVoice* VoiceAllocator< SynthVoice, VOICES >::voice[VOICES]
protectedinherited

Definition at line 7 of file VoiceAllocator.h.


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