Hi, I am working on a project using the Teensy audio library and am running into a strange error when trying to use the envelope object:
This is from the following piece of code. Basically just trying to set the release value with a number:
It appears that naming the function release is conflicting with the release audio block function elsewhere in the audio library, which doesn't make much sense. Any idea what is going on here and how I can get this to stop happening?
Code:
MTG_Tomb_081122_FullHeartbeat:95: error: call of overloaded 'release(int)' is ambiguous
env1.release(0);
^
In file included from /private/var/folders/j0/_sxbhppj1b9bmytyldk9lt600000gp/T/AppTranslocation/1AE95969-E134-4286-9B52-BCFDC8FF82AD/d/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio_T3_I2C/Audio.h:79:0,
from /Users/emmettpalaima/Desktop/ArduinoProjects/MTG_Tomb_081122_FullHeartbeat/MTG_Tomb_081122_FullHeartbeat.ino:4:
/private/var/folders/j0/_sxbhppj1b9bmytyldk9lt600000gp/T/AppTranslocation/1AE95969-E134-4286-9B52-BCFDC8FF82AD/d/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio_T3_I2C/effect_envelope.h:69:7: note: candidate: void AudioEffectEnvelope::release(float)
void release(float milliseconds) {
^
In file included from /private/var/folders/j0/_sxbhppj1b9bmytyldk9lt600000gp/T/AppTranslocation/1AE95969-E134-4286-9B52-BCFDC8FF82AD/d/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio_T3_I2C/analyze_fft256.h:31:0,
from /private/var/folders/j0/_sxbhppj1b9bmytyldk9lt600000gp/T/AppTranslocation/1AE95969-E134-4286-9B52-BCFDC8FF82AD/d/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio_T3_I2C/Audio.h:61,
from /Users/emmettpalaima/Desktop/ArduinoProjects/MTG_Tomb_081122_FullHeartbeat/MTG_Tomb_081122_FullHeartbeat.ino:4:
/private/var/folders/j0/_sxbhppj1b9bmytyldk9lt600000gp/T/AppTranslocation/1AE95969-E134-4286-9B52-BCFDC8FF82AD/d/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/AudioStream.h:169:14: note: candidate: static void AudioStream::release(audio_block_t*)
static void release(audio_block_t * block);
^
MTG_Tomb_081122_FullHeartbeat:102: error: call of overloaded 'release(int)' is ambiguous
env2.release(0);
This is from the following piece of code. Basically just trying to set the release value with a number:
Code:
env1.attack(atk);
env1.hold(10);
env1.decay(dec);
env1.sustain(1);
env1.release(0);
env1.releaseNoteOn(0);
It appears that naming the function release is conflicting with the release audio block function elsewhere in the audio library, which doesn't make much sense. Any idea what is going on here and how I can get this to stop happening?