logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

SynthCore::SynthVoice Class Reference

#include <SynthVoice.h>

List of all members.

Public Methods

 SynthVoice (Synth *S, bool defaultSetup=true)
 Constructor.

 ~SynthVoice ()
 Destructor;.

void setMidiNote (int n)
 Sets currently played midi note number,.

int getMidiNote ()
 returns currently played midi note number

void setMidiFreq (float f)
float getMidiFreq ()
void add (Module *m)
void SynthVoice::newMidiEvent ()
 Ask SynthVoice to informs its children.

SynthVoice * SynthVoice::sharedClone ()

Public Attributes

SynthHostSynth
int playingNote
bool noteOn
bool aLive
OutputSynthOutput
SamplermyVFO
Envelope3myEnvelope
BiQuadmyRez
Envelope3myEnv2


Detailed Description

This class is a container for the various modules in a voice unit.
Todo:
needs serious rewriting: must have dynamical routing!

Definition at line 42 of file SynthVoice.h.


Constructor & Destructor Documentation

SynthCore::SynthVoice::~SynthVoice  
 

Destructor;.

The synth (the host) takes care of cleaning up modules so dont delete them in destructor

Definition at line 128 of file SynthVoice.cpp.


Member Function Documentation

void SynthCore::SynthVoice::add Module   m
 

Call this to register module on synth. Must be done if the SynthVoice are to pass on MidiEvents.

Definition at line 51 of file SynthVoice.cpp.

References SynthCore::Synth::add().

Referenced by SynthVoice().

float SynthCore::SynthVoice::getMidiFreq   [inline]
 

Sets currently played frequency (this is not always obvious from the midi note because of the pitch bender)

Definition at line 79 of file SynthVoice.h.

Referenced by SynthCore::Sampler::newMidiEvent(), and SynthCore::BiQuad::update().

void SynthCore::SynthVoice::setMidiFreq float    f [inline]
 

Sets currently played frequency (this is not always obvious from the midi note because of the pitch bender)

Definition at line 75 of file SynthVoice.h.

SynthVoice* SynthCore::SynthVoice::SynthVoice::sharedClone  
 

Make a shared Clone of this synthVoice. A shared clone 'shares' ressources with the other synthVoices.


The documentation for this class was generated from the following files:
Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen