electro-smith / DaisyExamples

Examples for the Daisy Platform
https://github.com/electro-smith/DaisyWiki/wiki
MIT License
361 stars 189 forks source link

Update examples to use HW instead of "Patch" for hardware object #284 #301

Open IC-Alchemy opened 4 months ago

IC-Alchemy commented 4 months ago

I fixed Issue #284

I still don't fully understand the torus.cpp example so that one needs to be looked at by someone who does understand it.

I was not sure about the patch seen below so I did not change it, but it looks like it is fine as it is now.

hw.ProcessAllControls();
    GenerateUiEvents();

    PerformanceState performance_state;
    Patch            patch;

I built a few examples after my changes and they all worked