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

flock.ugen.envGen does not retrigger its envelope if it only has two breakpoints #166

Open
colinbdclark opened this issue Apr 2, 2016 · 0 comments

Comments

@colinbdclark
Copy link
Collaborator

This issue was originally reported by a user on the Flocking mailing list. Thanks to Matt Diamond for discovering it.

It appears that flock.ugen.envGen fails to retrigger its envelope when only two breakpoints have been assigned. Here's a simple example, where you'll note that the pitch sweeps up only once, never retriggering when its gate passes back into the positive.

{
    "synthDef": {
        "ugen": "flock.ugen.sin",
        "freq": {
            "ugen": "flock.ugen.envGen",
            "envelope": {
                "levels": [60, 240],
                "times": [0.2]
            },
            "gate": {
                "ugen": "flock.ugen.lfPulse",
                "freq": 0.5
            }
        },
        "mul": 0.5
    }
}

This example with three breakpoints works correctly. You'll note that I've included a "dummy" breakpoint at the beginning with a duration of 0 in order to coerce the envGen into working correctly:

{
    "synthDef": {
        "ugen": "flock.ugen.sin",
        "freq": {
            "ugen": "flock.ugen.envGen",
            "envelope": {
                "levels": [0, 60, 240],
                "times": [0, 0.2]
            },
            "gate": {
                "ugen": "flock.ugen.lfPulse",
                "freq": 0.5
            }
        },
        "mul": 0.5
    }
}
@colinbdclark colinbdclark added this to the Flocking 0.2 milestone Apr 2, 2016
@colinbdclark colinbdclark removed this from the Flocking 0.2 milestone May 8, 2016
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

1 participant