Tympan / Tympan_Library

Arduino/Teensy Library for Tympan Open Source Hearing Aid
MIT License
122 stars 32 forks source link

Tympan_Library/issues/77 various minor fixes to examples #78

Closed stvhawes closed 3 months ago

stvhawes commented 3 months ago

Compile fix ./02-Utility/DetectExtMic/DetectExtMic.ino // Use simplest Tympan constructor .. no audio_settings need changed

Compile fix ./02-Utility/SoundLevelMeter/SoundLevelMeter.ino // carriage return was missing (lines combined) AFTER Tympan myTympan(TympanRev::F, audio_settings); //do TympanRev::D or E or F AudioInputI2S_F32 i2s_in(audio_settings); //Digital audio in from the Teensy Audio Board ADC.

Compile fix ./03-Intermediate/WDRC_SingleBand/WDRC_SingleBand.ino // Use simplest Tympan constructor .. no audio_settings need changed

Compile fix ./04-FrequencyDomain/FormantShifter_FD/FormantShifter_FD.ino
// constructor for SerialManaget expects a Tympan reference replace audioHardware with myTympan throughout the .ino

Compile fix ./04-FrequencyDomain/PitchShifter_FD/PitchShifter_FD.ino
// constructor for SerialManaget expects a Tympan reference replace audioHardware with myTympan throughout the .ino

Compile fix ./04-FrequencyDomain/FrequencyShifter_FD/FrequencyShifter_FD.ino nope FrequencyShifter_FD:59: error: 'audioHardware' was not declared in this scope 59 | SerialManager serialManager(audioHardware); | ^~~~~

constructor for SerialManaget expects a Tympan reference relace audioHardware with myTympan throughout the .ino

Compile fix ./04-FrequencyDomain/LowpassFilter_FD/LowpassFilter_FD.ino
// split the execute so it follows the IFFT pattern AFTER: //call the IFFT audio_block_f32_t *out_audio_block = NULL; myIFFT.execute(complex_2N_buffer, out_audio_block); //out_block is pre-allocated in here.

Compile fix ./05-FullSystems/WDRC_8BandFIR_Stereo_wApp/WDRC_8BandFIR_Stereo_wApp.ino
// copy over the serialManager initialisation AFTER: SerialManager serialManager(&ble); //create the serial manager for real-time control (via USB or App) State myState(&audio_settings, &myTympan, &serialManager); //keeping one's state is useful for the App's GUI

chipaudette commented 3 months ago

Great fixes! Fantastic job. Merging now.