Skip to content

Commit 4fbd190

Browse files
committed
STKGenerator
1 parent c0fad84 commit 4fbd190

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AudioTools/AudioLibs/AudioSTK.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class STKGenerator : public SoundGenerator<T> {
7373
p_instrument->noteOn(frequency, amplitude);
7474
}
7575

76+
/// Defines the amplitude (0.0 ... 1.0)
7677
void setAmplitude(float amplitude) {
7778
this->amplitude = amplitude;
7879
if (this->amplitude > 1.0) this->amplitude = 1.0;

0 commit comments

Comments
 (0)