AudioKit / AudioKitSynthOne

AudioKit Synth One: Open-Source iOS Synthesizer App
http://audiokitpro.com/synth
MIT License
1.67k stars 217 forks source link

Add recording button #125

Closed sieren closed 4 years ago

sieren commented 4 years ago

Here's an alternative take on https://github.com/AudioKit/AudioKitSynthOne/pull/124 with a little less code and reusing the MIDIToggleButton.

Dev Changes We're using a new class called MIDIRecordButton that inherits from MIDIToggleButton. Instead of using PaintCode we add a Circle Subview and when isOn is true, we animate the backgroundColor of said Circle View.

User Facing Changes The UI is now more in line with the rest of Synth One. An active recording is indicated by both the time progressed as well as the animated button.

@marcussatellite @analogcode adding the SubView in layoutSubviews is probably not the right place, let me know if you know of a better function for this.

Screenshot 2019-11-27 at 19 21 41 Screenshot 2019-11-27 at 19 21 37 Screenshot 2019-11-27 at 19 26 20