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

Scale "freq" and "sustain" with speed in sclang #242

Open
ndr-brt opened this issue May 25, 2021 · 1 comment
Open

Scale "freq" and "sustain" with speed in sclang #242

ndr-brt opened this issue May 25, 2021 · 1 comment

Comments

@ndr-brt
Copy link
Contributor

ndr-brt commented May 25, 2021

This issues comes from a discussion in #241.
The necessity is to make sc synth events behaviour more similar to samples.

The proposal is to scale the freq by speed outside the synthdef like this:
freq = freq * speed;
And, to change also the synth sustain like:
sustain = sustain / speed.abs

This would allow to have speed scaling handled out of the boxy in a synthdef definition, but on the other hands would not be possible to continuously modify speed, and would be a breaking change.

@telephon
Copy link
Contributor

Thanks! Let me add:

Independent of how we implement this (in each SynthDef or in superdirt itself, this may be e breaking change unless we make it switchable.

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

No branches or pull requests

2 participants