72 INFOLOG(
"NOTE OFF - not implemented yet" );
99 memset(
m_pOut_L, 0, nFrames *
sizeof(
float ) );
100 memset(
m_pOut_R, 0, nFrames *
sizeof(
float ) );
106 float fAmplitude = pPlayingNote->get_velocity();
107 float fFrequency =
TWOPI * 220.0 / 44100.0;
109 for ( uint i = 0; i < nFrames; ++i ) {
110 float fVal = sin(
m_fTheta ) * fAmplitude;
Base abstract class for audio output classes.
A note plays an associated instrument with a velocity left and right pan.
std::shared_ptr< Instrument > get_instrument()
__instrument accessor
void process(uint32_t nFrames)
void noteOff(Note *pNote)
Stop playing a note.
Synth()
Constructor of the Synth.
void noteOn(Note *pNote)
Start playing a note.
std::vector< Note * > m_playingNotesQueue
void setAudioOutput(AudioOutput *pAudioOutput)
AudioOutput * m_pAudioOutput
#define MAX_BUFFER_SIZE
Maximum buffer size.