interbellum
New member
Hello guys,
I would like to make a sketch that has about 32 sine wave oscillators running at the same time as to create an additive syntheser.
Every loop I'd like to update the frequency and amplitude of each of these 32 sine waves individually.
However I can't really seem to find a flexible way to do this inside of the Teensy Audio Library.
I'd like to be able to do something like the following: (this is pseudo code and does not work)
The best I can do now is to mix groups of 4 sine waves into mixers into mixers etc. and then control each sine wave by calling it's seperate .frequency and .amplitude function in one huge function.
But this seems so crude and I feel there must a more elegant way of achieving this.
Does anyone here know of a way to create something like an Array of sine waves that mix automatically with each other and are adressable as described above?
Any help would be greatly appreciated!
I would like to make a sketch that has about 32 sine wave oscillators running at the same time as to create an additive syntheser.
Every loop I'd like to update the frequency and amplitude of each of these 32 sine waves individually.
However I can't really seem to find a flexible way to do this inside of the Teensy Audio Library.
I'd like to be able to do something like the following: (this is pseudo code and does not work)
Code:
for (int i =1; i < numOscs; i ++) {
sine[i].frequency(baseFreq * i);
}
The best I can do now is to mix groups of 4 sine waves into mixers into mixers etc. and then control each sine wave by calling it's seperate .frequency and .amplitude function in one huge function.
But this seems so crude and I feel there must a more elegant way of achieving this.
Does anyone here know of a way to create something like an Array of sine waves that mix automatically with each other and are adressable as described above?
Any help would be greatly appreciated!