Audiokit Delay works in one example but not another #1478
-
Using an A1S 8388 audiokit and ArduinoIDE 2.3.2, in the the example "streams-synthbasic1-audiokit.ino", I added a delay and it worked perfectly. when I added the very same four lines in the very same places in the example "streams-stk-audiokit", and rerouted the final StreamCopy to 'effects' rather than 'in', I get: " 'dely' was not declared in this scope" the #includes are the same, except the AudioSTK was not in "streams-synthbasic1-audiokit.ino", which worked. Do I need to call effects differently if using the STK? And how do I access the STK effects like STKFreeverb? I could only get the Delay to work in "streams-synthbasic1-audiokit.ino", but not the STKEcho. Sorry if this is obvious, but it seems there's a lot of reorganizing on the site. I scoured for examples over two days but got a lot of 404's during this update. in the following example, the placement of all the commented lines are in the same places as in the working example but I get errors now. If I comment out the added lines and return StreamCopy copier(out, effects) to StreamCopy copier(out, in), I get an operational sketch. but of course, with no effect:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Just look at the error message: with your include of STK there are 2 Delay classes now and you need to tell the system which one to take by using the namespace! audio_tools::Delay or stk::Delay ? audio_tools::Delay dely(1000, 0.5, 0.33, 44100, false); |
Beta Was this translation helpful? Give feedback.
Just look at the error message: with your include of STK there are 2 Delay classes now and you need to tell the system which one to take by using the namespace! audio_tools::Delay or stk::Delay ?
audio_tools::Delay dely(1000, 0.5, 0.33, 44100, false);