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

refactor: Extract Frequency #112

Merged
merged 3 commits into from
May 13, 2023
Merged

refactor: Extract Frequency #112

merged 3 commits into from
May 13, 2023

Conversation

plammens
Copy link
Collaborator

This is to separate concerns: converting the positioned note to a frequency, which could be done in different ways, e.g. equal tempered, pythagorean (these methods belong to PositionedNote),
versus properties or functionality related to the frequency itself, such as isHumanAudible or a hypothetical .play() method.

Closes #107

@plammens plammens requested a review from albertms10 as a code owner May 12, 2023 20:38
This is to separate concerns: converting the positioned note to a frequency,
which could be done in different ways, e.g. equal tempered, pythagorean
(these methods belong to PositionedNote),
versus properties or functionality related to the frequency itself, such as
isHumanAudible or a hypothetical .play() method.

Closes #107
@coveralls
Copy link

coveralls commented May 12, 2023

Pull Request Test Coverage Report for Build 4968630824

  • 5 of 5 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 4959589753: 0.0%
Covered Lines: 475
Relevant Lines: 475

💛 - Coveralls

Copy link
Owner

@albertms10 albertms10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 💎 Thanks for pushing these changes!

lib/src/note/frequency.dart Outdated Show resolved Hide resolved
test/src/note/frequency_test.dart Show resolved Hide resolved
test/src/note/frequency_test.dart Outdated Show resolved Hide resolved
lib/src/note/frequency.dart Outdated Show resolved Hide resolved
Co-authored-by: Albert Mañosa <albertmasa2@gmail.com>
Copy link
Owner

@albertms10 albertms10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ahead! 🚀

@plammens plammens merged commit 803837a into main May 13, 2023
3 checks passed
@plammens plammens deleted the refactor/frequency branch May 13, 2023 20:07
@albertms10 albertms10 added this to the Road to 0.7 milestone May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract a new Frequency class from PositionedNote
3 participants