Skip to content

Zoom #111

Description

@David-Marsh

// zoom in / out factor
float zoominFactor = 1 / 12f;

This provides zoom ratios of 1/2, 2/3, 3/4, 5/6, 1/1, 7/6, 5/4, 4/3, 3/2
These ratios keep artifacts to a minimum. There are still a few oddball sizes not mentioned but they keep the zoom changing by a fixed amount. 1/12 is a better value than 1/20 (0.05f). This is consistent with the reason an octave contains 12 notes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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