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

default values for controls when doing arithmetics #1058

Open
felixroos opened this issue Apr 17, 2024 · 0 comments
Open

default values for controls when doing arithmetics #1058

felixroos opened this issue Apr 17, 2024 · 0 comments
Labels
enhancement improves an existing feature

Comments

@felixroos
Copy link
Collaborator

it could be useful if there was a mechanism for controls to specify a default value. Example:

stack(s("bd"), note("c eb g")).lastOf(3, add(note("1")))

when lastOf is active, s("bd") will have a very low speed, because no note was set explicitly.
The add operation seems to use 0 as a fallback, which is very low in the case of note.
It would lead to a more usable outcome if there was some way to use the default value of the control that is being added to, if no value has been set. The default value for note is "c2" for samples (s("bd") sounds like s("bd").note("c2"), also see #339).
That default value is currently defined somewhere in the sampler, which is not connected to the much lower level arithmetic logic (and should not be connected).
For me, the most logical fix would be to add a lower level api for default values:

setDefaultControlValue('note', 'c2')
setDefaultControlValue('note') // c2

not sure how much this would entangle output (superdough etc) and core pattern logic..

@felixroos felixroos added the enhancement improves an existing feature label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improves an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant