|
LMMS
|
#include <ADnote.h>
Classes | |
| struct | Global |
| struct | Voice |
Public Member Functions | |
| ADnote (ADnoteParameters *pars, Controller *ctl_, float freq, float velocity, int portamento_, int midinote_, bool besilent) | |
| ~ADnote () | |
| void | legatonote (float freq, float velocity, int portamento_, int midinote_, bool externcall) |
| int | noteout (float *outl, float *outr) |
| void | relasekey () |
| int | finished () const |
| 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 | setfreq (int nvoice, float in_freq) |
| void | setfreqFM (int nvoice, float in_freq) |
| void | compute_unison_freq_rap (int nvoice) |
| void | computecurrentparameters () |
| void | initparameters () |
| void | KillVoice (int nvoice) |
| void | KillNote () |
| float | getvoicebasefreq (int nvoice) const |
| float | getFMvoicebasefreq (int nvoice) const |
| void | ComputeVoiceOscillator_LinearInterpolation (int nvoice) |
| void | ComputeVoiceOscillator_CubicInterpolation (int nvoice) |
| void | ComputeVoiceOscillatorMorph (int nvoice) |
| void | ComputeVoiceOscillatorRingModulation (int nvoice) |
| void | ComputeVoiceOscillatorFrequencyModulation (int nvoice, int FMmode) |
| void | ComputeVoiceOscillatorPitchModulation (int nvoice) |
| void | ComputeVoiceNoise (int nvoice) |
| void | fadein (float *smps) const |
Additional Inherited Members | |
| Protected Attributes inherited from SynthNote | |
| class SynthNote::Legato | legato |
The "additive" synthesizer
| ADnote::ADnote | ( | ADnoteParameters * | pars, |
| Controller * | ctl_, | ||
| float | freq, | ||
| float | velocity, | ||
| int | portamento_, | ||
| int | midinote_, | ||
| bool | besilent ) |
Constructor.
| pars | Note Parameters |
| ctl_ | Pointer to system Controller |
| freq | Base frequency for note |
| velocity | Velocity of note |
| portamento_ | 1 if the note has portamento |
| midinote_ | The midi number of the note |
| besilent | Start silent note if true |
| ADnote::~ADnote | ( | ) |
Destructor
Computes relative frequency for unison and unison's vibratto. Note: Must be called before setfreq* functions.
|
private |
Compute parameters for next tick
Compute the Oscillator's samples. Affects tmpwave_unison and updates oscposhi/oscposlo
Compute the Oscillator's samples. Affects tmpwave_unison and updates oscposhi/oscposlo
Computes the Frequency Modulated Oscillator.
| FMmode | modulation type 0=Phase 1=Frequency |
Computes the Oscillator samples with morphing. updates tmpwave_unison
Computes the Ring Modulated Oscillator.
|
inlineprivate |
Fadein in a way that removes clicks but keep sound "punchy"
|
virtual |
|
inlineprivate |
Get modulator's base frequency
|
private |
Initializes All Parameters
|
private |
Deallocate Note resources and voice resources
|
virtual |
|
virtual |
Release the key for the note and start release portion of envelopes.
Implements SynthNote.
Changes the frequency of an oscillator.
| nvoice | voice to run computations on |
| in_freq | new frequency |
Set the frequency of the modulator oscillator
| float ADnote::amplitude |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| float* ADnote::position |
| float* ADnote::step |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| struct { ... } ADnote::unison_vibratto[NUM_VOICES] |
|
private |