AudioKit / Cookbook

Canonical Examples for Using the AudioKit Framework
MIT License
639 stars 103 forks source link

Update Parameter Control #101

Closed NickCulbertson closed 2 years ago

NickCulbertson commented 2 years ago

This PR attempts to improve the UI for smaller devices, most notably replacing AudioKitUI's ParameterEditor2 and ParameterSlider with ParameterRow and CookbookKnob. (I also fixed an issue with the ADSR example needing a start and stop method.)

The problem before is that the multi-line labels were pushing everything around. Now the labels have a line limit but this can result in some longer labels being truncated especially if there are several knobs in a row like the Phaser.

ParameterRow and CookbookKnob could be moved to AudioKitUI but it might be nice to have them in the Cookbook.