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

inconsistent behavior of Env.duration_ #598

Closed
timblechmann opened this issue Oct 11, 2012 · 2 comments
Closed

inconsistent behavior of Env.duration_ #598

timblechmann opened this issue Oct 11, 2012 · 2 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library
Milestone

Comments

@timblechmann
Copy link
Contributor

Env.duration_ scales single-channel envelopes, but pads multi-channel envelopes.

@telephon
Copy link
Member

On 11.10.2012, at 09:46, Tim Blechmann notifications@github.com wrote:

Env.duration_ scales single-channel envelopes, but pads multi-channel envelopes.

Connected issue: normalizeSum for multichannel arrays is wrong (or implicitly undefined). Try ´[1, [1, 2], 1].normalizeSum.sum´ (-> ´[ 0.91666666666667, 1.1666666666667 ]´).

@telephon
Copy link
Member

On 11.10.2012, at 09:46, Tim Blechmann notifications@github.com wrote:

Env.duration_ scales single-channel envelopes, but pads multi-channel envelopes.

According to the latest discussion, this should be it:

 duration_ { arg dur;
        times = times * this.totalDuration.reciprocal * dur
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library
Projects
None yet
Development

No branches or pull requests

2 participants