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

#include <PADnote.h>

Inheritance diagram for zyncarla::PADnote:
zyncarla::SynthNote

Public Member Functions

 PADnote (const PADnoteParameters *parameters, SynthParams pars, const int &interpolation, WatchManager *wm=0, const char *prefix=0)
 ~PADnote ()
SynthNotecloneLegato (void)
void legatonote (LegatoParams pars)
int noteout (float *outl, float *outr)
bool finished () const
void entomb (void)
void releasekey ()
Public Member Functions inherited from zyncarla::SynthNote
 SynthNote (SynthParams &pars)
virtual ~SynthNote ()
void setVelocity (float velocity_)

Private Member Functions

void setup (float freq, float velocity, int portamento_, int midinote, bool legato=false, WatchManager *wm=0, const char *prefix=0)
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_
const PADnoteParameterspars
int poshi_l
int poshi_r
float poslo
float basefreq
float BendAdjust
float OffsetHz
bool firsttime
int nsample
int portamento
struct { 
   float   Detune 
   Envelope *   FreqEnvelope 
   LFO *   FreqLfo 
   float   Volume 
   float   Panning 
   Envelope *   AmpEnvelope 
   LFO *   AmpLfo 
   float   Fadein_adjustment 
   struct { 
      int   Enabled 
      float   initialvalue 
      float   dt 
      float   t 
   }   Punch
   ModFilter *   GlobalFilter 
   Envelope *   FilterEnvelope 
   LFO *   FilterLfo 
NoteGlobalPar
float globaloldamplitude
float globalnewamplitude
float velocity
float realfreq
const intinterpolation

Additional Inherited Members

Public Attributes inherited from zyncarla::SynthNote
class Allocatormemory
Protected Attributes inherited from zyncarla::SynthNote
class zyncarla::SynthNote::Legato legato
const Controllerctl
const SYNTH_Tsynth
const AbsTimetime
WatchManagerwm

Detailed Description

The "pad" synthesizer

Constructor & Destructor Documentation

◆ PADnote()

PADnote::PADnote ( const PADnoteParameters * parameters,
SynthParams pars,
const int & interpolation,
WatchManager * wm = 0,
const char * prefix = 0 )

◆ ~PADnote()

PADnote::~PADnote ( )

Member Function Documentation

◆ cloneLegato()

SynthNote * PADnote::cloneLegato ( void )
virtual

Implements zyncarla::SynthNote.

◆ 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

◆ entomb()

void PADnote::entomb ( void )
virtual

Make a note die off next buffer compute

Implements zyncarla::SynthNote.

◆ fadein()

void PADnote::fadein ( float * smps)
inlineprivate

◆ finished()

bool PADnote::finished ( ) const
virtual

Return if note is finished.

Returns
finished=1 unfinished=0

Implements zyncarla::SynthNote.

◆ legatonote()

void PADnote::legatonote ( LegatoParams pars)
virtual

Implements zyncarla::SynthNote.

◆ noteout()

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

Compute Output Samples

Returns
0 if note is finished

Implements zyncarla::SynthNote.

◆ releasekey()

void PADnote::releasekey ( )
virtual

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

Implements zyncarla::SynthNote.

◆ setup()

void PADnote::setup ( float freq,
float velocity,
int portamento_,
int midinote,
bool legato = false,
WatchManager * wm = 0,
const char * prefix = 0 )
private

Member Data Documentation

◆ AmpEnvelope

Envelope* zyncarla::PADnote::AmpEnvelope

◆ AmpLfo

LFO* zyncarla::PADnote::AmpLfo

◆ basefreq

float zyncarla::PADnote::basefreq
private

◆ BendAdjust

float zyncarla::PADnote::BendAdjust
private

◆ Detune

float zyncarla::PADnote::Detune

◆ dt

float zyncarla::PADnote::dt

◆ Enabled

int zyncarla::PADnote::Enabled

◆ Fadein_adjustment

float zyncarla::PADnote::Fadein_adjustment

◆ FilterEnvelope

Envelope* zyncarla::PADnote::FilterEnvelope

◆ FilterLfo

LFO* zyncarla::PADnote::FilterLfo

◆ finished_

bool zyncarla::PADnote::finished_
private

◆ firsttime

bool zyncarla::PADnote::firsttime
private

◆ FreqEnvelope

Envelope* zyncarla::PADnote::FreqEnvelope

◆ FreqLfo

LFO* zyncarla::PADnote::FreqLfo

◆ GlobalFilter

ModFilter* zyncarla::PADnote::GlobalFilter

◆ globalnewamplitude

float zyncarla::PADnote::globalnewamplitude
private

◆ globaloldamplitude

float zyncarla::PADnote::globaloldamplitude
private

◆ initialvalue

float zyncarla::PADnote::initialvalue

◆ interpolation

const int& zyncarla::PADnote::interpolation
private

◆ [struct]

struct { ... } zyncarla::PADnote::NoteGlobalPar

◆ nsample

int zyncarla::PADnote::nsample
private

◆ OffsetHz

float zyncarla::PADnote::OffsetHz
private

◆ Panning

float zyncarla::PADnote::Panning

◆ pars

const PADnoteParameters& zyncarla::PADnote::pars
private

◆ portamento

int zyncarla::PADnote::portamento
private

◆ poshi_l

int zyncarla::PADnote::poshi_l
private

◆ poshi_r

int zyncarla::PADnote::poshi_r
private

◆ poslo

float zyncarla::PADnote::poslo
private

◆ [struct]

struct { ... } zyncarla::PADnote::Punch

◆ realfreq

float zyncarla::PADnote::realfreq
private

◆ t

float zyncarla::PADnote::t

◆ velocity

float zyncarla::PADnote::velocity
private

◆ Volume

float zyncarla::PADnote::Volume

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