Skip to content

More forgiving functions #79

@unlessgames

Description

@unlessgames

It might be a good idea to be more forgiving with arguments for functions instead of throwing an error to ease the friction when live-coding.

For example Note:panning(-2) could just clamp the input to -1 instead of crashing the sketch, the same thing is applicable to other functions that expect ranges, this is especially handy if you are doing something where the argument comes out of some complex calculation, or trying to plug the same thing into different places while experimenting and so on. Having to write defensive code is a bit antithetical to live-coding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions