Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Improvement] num_beats of Tempo should be f32 #8

@somecho

Description

@somecho

The Tempo struct has a wholes_per_min method which calculates how many whole notes per minute there are given a tempo. Since num_beats is cast as f32, this field should just be f32 in the beginning. Additionally, the method relative_to creates a new tempo and quantizes the num_beats back to u16, losing some accuracy in the process.

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