Skip to content

ReverbSc issue in MultiEffect Example #315

@mbarbattini

Description

@mbarbattini

I am trying to run the MultiEffect example for the pod Examples\pod\MultiEffect. It looks like the reverb algorithm is provided by ReverbSc.h which is under the LGPL version of the DaisySP library under DaisySP/DaisySP-LGPL/Source/Effects/reverbsc.h

I get the following error when running make:

MultiEffect.cpp:16:8: error: 'ReverbSc' does not name a type
   16 | static ReverbSc                                  rev;
      |        ^~~~~~~~
MultiEffect.cpp: In function 'int main()':
MultiEffect.cpp:78:5: error: 'rev' was not declared in this scope
   78 |     rev.Init(sample_rate);
      |     ^~~
MultiEffect.cpp:81:5: error: 'tone' was not declared in this scope
   81 |     tone.Init(sample_rate);
      |     ^~~~
MultiEffect.cpp: In function 'void UpdateKnobs(float&, float&)':
MultiEffect.cpp:113:13: error: 'rev' was not declared in this scope
  113 |             rev.SetFeedback(k2);
      |             ^~~
MultiEffect.cpp:121:13: error: 'tone' was not declared in this scope
  121 |             tone.SetFreq(cutoff);
      |             ^~~~
MultiEffect.cpp: In function 'void GetReverbSample(float&, float&, float, float)':
MultiEffect.cpp:159:5: error: 'rev' was not declared in this scope
  159 |     rev.Process(inl, inr, &outl, &outr);
      |     ^~~
MultiEffect.cpp: In function 'void GetCrushSample(float&, float&, float, float)':
MultiEffect.cpp:190:12: error: 'tone' was not declared in this scope
  190 |     outl = tone.Process(crushsl);
      |            ^~~~
make: *** [build/MultiEffect.o] Error 1

Complete build command:

arm-none-eabi-g++ -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard  -DUSE_HAL_DRIVER -DSTM32H750xx -DHSE_VALUE=16000000  -DCORE_CM7 -DSTM32H750IB -DARM_MATH_CM7 -DUSE_FULL_LL_DRIVER -include stm32h7xx.h -I../../libDaisy -I../../libDaisy/src/ -I../../libDaisy/src/sys -I../../libDaisy/src/usbd -I../../libDaisy/src/usbh -I../../libDaisy/Drivers/CMSIS/Include/ -I../../libDaisy/Drivers/CMSIS/DSP/Include -I../../libDaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libDaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libDaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libDaisy/Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../../libDaisy/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -I../../libDaisy/core/ -I../../DaisySP/Source -I../../libDaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -Wno-stringop-overflow -g -ggdb -MMD -MP -MF"build/MultiEffect.d" -fno-exceptions -fasm -finline -finline-functions-called-once -fshort-enums -fno-move-loop-invariants -fno-unwind-tables -fno-rtti -Wno-register -std=gnu++14 -Wa,-a,-ad,-alms=build/MultiEffect.lst MultiEffect.cpp -o build/MultiEffect.o

Macbook Pro M2, macOS Tahoe 26.3.1 (25D2128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions