LMMS
Loading...
Searching...
No Matches
PADnote Class Reference

#include <PADnote.h>

Inheritance diagram for PADnote:
SynthNote

Public Member Functions

 PADnote (PADnoteParameters *parameters, Controller *ctl_, float freq, float velocity, int portamento_, int midinote, bool besilent)
 ~PADnote ()
void legatonote (float freq, float velocity, int portamento_, int midinote, bool externcall)
int noteout (float *outl, float *outr)
int finished () const
void relasekey ()
Public Member Functions inherited from SynthNote
 SynthNote (float freq, float vel, int port, int note, bool quiet)
virtual ~SynthNote ()
void setVelocity (float velocity_)

Private Member Functions

void setup (float freq, float velocity, int portamento_, int midinote, bool legato=false)
void fadein (float *smps)
void computecurrentparameters ()
int Compute_Linear (float *outl, float *outr, int freqhi, float freqlo)
int Compute_Cubic (float *outl, float *outr, int freqhi, float freqlo)

Private Attributes

bool finished_
PADnoteParameterspars
int poshi_l
int poshi_r
float poslo
float basefreq
bool firsttime
bool released
int nsample
int portamento
struct { 
   float   Detune 
   Envelope *   FreqEnvelope 
   LFO *   FreqLfo 
   float   Volume 
   float   Panning 
   Envelope *   AmpEnvelope 
   LFO *   AmpLfo 
   struct { 
      int   Enabled 
      float   initialvalue 
      float   dt 
      float   t 
   }   Punch
   class Filter *   GlobalFilterL 
   class Filter *   GlobalFilterR 
   float   FilterCenterPitch 
   float   FilterQ 
   float   FilterFreqTracking 
   Envelope *   FilterEnvelope 
   LFO *   FilterLfo 
NoteGlobalPar
float globaloldamplitude
float globalnewamplitude
float velocity
float realfreq
Controllerctl

Additional Inherited Members

Protected Attributes inherited from SynthNote
class SynthNote::Legato legato

Detailed Description

The "pad" synthesizer

Constructor & Destructor Documentation

◆ PADnote()

PADnote::PADnote ( PADnoteParameters * parameters,
Controller * ctl_,
float freq,
float velocity,
int portamento_,
int midinote,
bool besilent )

◆ ~PADnote()

PADnote::~PADnote ( )

Member Function Documentation

◆ Compute_Cubic()

int PADnote::Compute_Cubic ( float * outl,
float * outr,
int freqhi,
float freqlo )
private

◆ Compute_Linear()

int PADnote::Compute_Linear ( float * outl,
float * outr,
int freqhi,
float freqlo )
private

◆ computecurrentparameters()

void PADnote::computecurrentparameters ( )
private

◆ fadein()

void PADnote::fadein ( float * smps)
inlineprivate

◆ finished()

int PADnote::finished ( ) const
virtual

Return if note is finished.

Returns
finished=1 unfinished=0

Implements SynthNote.

◆ legatonote()

void PADnote::legatonote ( float freq,
float velocity,
int portamento_,
int midinote,
bool externcall )
virtual

Implements SynthNote.

◆ noteout()

int PADnote::noteout ( float * outl,
float * outr )
virtual

Compute Output Samples

Returns
0 if note is finished

Implements SynthNote.

◆ relasekey()

void PADnote::relasekey ( )
virtual

Release the key for the note and start release portion of envelopes.

Implements SynthNote.

◆ setup()

void PADnote::setup ( float freq,
float velocity,
int portamento_,
int midinote,
bool legato = false )
private

Member Data Documentation

◆ AmpEnvelope

Envelope* PADnote::AmpEnvelope

◆ AmpLfo

LFO* PADnote::AmpLfo

◆ basefreq

float PADnote::basefreq
private

◆ ctl

Controller* PADnote::ctl
private

◆ Detune

float PADnote::Detune

◆ dt

float PADnote::dt

◆ Enabled

int PADnote::Enabled

◆ FilterCenterPitch

float PADnote::FilterCenterPitch

◆ FilterEnvelope

Envelope* PADnote::FilterEnvelope

◆ FilterFreqTracking

float PADnote::FilterFreqTracking

◆ FilterLfo

LFO* PADnote::FilterLfo

◆ FilterQ

float PADnote::FilterQ

◆ finished_

bool PADnote::finished_
private

◆ firsttime

bool PADnote::firsttime
private

◆ FreqEnvelope

Envelope* PADnote::FreqEnvelope

◆ FreqLfo

LFO* PADnote::FreqLfo

◆ GlobalFilterL

class Filter* PADnote::GlobalFilterL

◆ GlobalFilterR

class Filter * PADnote::GlobalFilterR

◆ globalnewamplitude

float PADnote::globalnewamplitude
private

◆ globaloldamplitude

float PADnote::globaloldamplitude
private

◆ initialvalue

float PADnote::initialvalue

◆ [struct]

struct { ... } PADnote::NoteGlobalPar

◆ nsample

int PADnote::nsample
private

◆ Panning

float PADnote::Panning

◆ pars

PADnoteParameters* PADnote::pars
private

◆ portamento

int PADnote::portamento
private

◆ poshi_l

int PADnote::poshi_l
private

◆ poshi_r

int PADnote::poshi_r
private

◆ poslo

float PADnote::poslo
private

◆ [struct]

struct { ... } PADnote::Punch

◆ realfreq

float PADnote::realfreq
private

◆ released

bool PADnote::released
private

◆ t

float PADnote::t

◆ velocity

float PADnote::velocity
private

◆ Volume

float PADnote::Volume

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