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

Add options to reset generative sources #87

Closed
sofian opened this issue Jan 23, 2024 · 3 comments
Closed

Add options to reset generative sources #87

sofian opened this issue Jan 23, 2024 · 3 comments

Comments

@sofian
Copy link
Collaborator

sofian commented Jan 23, 2024

This is important to re-sync a Metro or an Osc object. We could also either add a reset() function, which would be the easiest. We could also choose to add similar functions as the Chronometer object, with start/stop/resume functions. But this would involve keeping track of whether the object has been started.

@sofian
Copy link
Collaborator Author

sofian commented Jan 23, 2024

Question is: what word to use?

  • reset() - would work but is currently used for resetting accumulators (eg. moving average, min max, etc.)
  • start() - would make sense (especially if we implement the stop/resume/etc. function) but not so evocative (we have a similar problem with the Chronometer class)

@sofian
Copy link
Collaborator Author

sofian commented Jan 23, 2024

Also: there would be an easy way to avoid using an extra boolean in the Metro and Osc classes by using the sign of one of the floats.

@sofian
Copy link
Collaborator Author

sofian commented Feb 6, 2024

I think we should follow a common API similar to Chrono. See #92

@sofian sofian closed this as completed in a4daceb Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant