Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double Tap to Default #39

Merged
merged 5 commits into from
Feb 18, 2019
Merged

Conversation

sieren
Copy link
Contributor

@sieren sieren commented Feb 4, 2019

Double tapping a knob will restore the default value as specified by the last loaded preset.
Each UI Element has a defaultCallback closure which will set the component to the default value when called.
A temporary copy of the synth parameters is made once a new preset has been loaded or the current one been saved.

ping @analogcode - git history is chronological, so review commit-by-commit should be possible.

Align code style with the rest,
@sieren sieren force-pushed the add-tap-to-default branch 2 times, most recently from 6a3acad to afe4e9b Compare February 4, 2019 18:13
Add a Callback for default values to S1Control.
UIElements can call this to be restored to their default value.
Bind to the callback to set parameters to their default value.
With each load/save preset operation, a copy of the initial state
will be held in the conductor. When the callback is called, the initial
value will be restored according to the synth parameter.
A double tap on the knobs will restore their values to the default
state as determined by the last loaded/saved preset.
@analogcode analogcode merged commit 24a43d4 into AudioKit:develop Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants