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

synthio: Calculate LFO.value at construction #9247

Merged
merged 1 commit into from
May 18, 2024

Commits on May 14, 2024

  1. synthio: Calculate LFO.value at construction

    Originally, the only (non-debug) way to make an LFO calculate its value
    was to associate it with a playing synthesizer.
    
    This posed a problem for LFOs that had "power on values" other than 0,
    and where the value was used other than to internally drive a note
    property.
    
    Now, an initial, possibly non-zero value is calculated at object
    construction time:
    
    ```py
    >>> l = synthio.LFO(offset = 1)
    >>> l.value
    1.0
    ```
    
    Note that this happens just once at construction; it does not happen when
    updating LFO properties:
    ```py
    >>> l.offset = 2
    >>> l.value
    1.0
    ```
    jepler committed May 14, 2024
    Configuration menu
    Copy the full SHA
    9e878f7 View commit details
    Browse the repository at this point in the history