electro-smith / DaisyExamples

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

feat: field gain example #305

Open benmangold opened 1 month ago

benmangold commented 1 month ago

This PR adds an extremely simple gain knob example to the field folder. Tested on my own field, running mono audio in and out of the L channel. Knob 1 affects gain, multiplying the output signal by a float value 0 <= x <= 1.0. SW 1 button toggles processing on and off. Both these values are printed to the Field screen.

The code was heavily based off the flanger example code. I included all files in the .vscode path from flanger examples, please let me know if I should remove them.

Locally running the CI script ./ci/build_examples.py, I see this new example being built successfully.

Thanks for having a look! This is my first contribution to the Daisy ecosystem.