Version 4.1.2

This commit is contained in:
Gary Scavone
2009-03-24 23:02:13 -04:00
committed by Stephen Sinclair
parent 6e0d1955a8
commit 586b0add5f
125 changed files with 7301 additions and 5337 deletions

View File

@@ -21,7 +21,7 @@ Instrmnt :: ~Instrmnt()
void Instrmnt :: setFrequency(MY_FLOAT frequency)
{
cerr << "Instrmnt: virtual setFrequency function call!" << endl;
std::cerr << "Instrmnt: virtual setFrequency function call!" << std::endl;
}
MY_FLOAT Instrmnt :: lastOut() const
@@ -29,6 +29,17 @@ MY_FLOAT Instrmnt :: lastOut() const
return lastOutput;
}
// Support for stereo output:
MY_FLOAT Instrmnt :: lastOutLeft(void) const
{
return 0.5 * lastOutput;
}
MY_FLOAT Instrmnt :: lastOutRight(void) const
{
return 0.5 * lastOutput;
}
MY_FLOAT *Instrmnt :: tick(MY_FLOAT *vector, unsigned int vectorSize)
{
for (unsigned int i=0; i<vectorSize; i++)