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

Tests, Performance Improvements #1

Merged
merged 16 commits into from
Sep 14, 2023
Merged

Tests, Performance Improvements #1

merged 16 commits into from
Sep 14, 2023

Conversation

cofinley
Copy link
Owner

  • Add unit tests for algorithms
  • Reduce scale generation time by 60+%
    • Avoid recalculating chord suggestions for blocks if they have already been calculated
  • Improve placement of suggested notes which were not played
    • Find best octave based on note distance
  • Fix same-pitch/octave-interval notes showing up as red (i.e. extra notes to not play) on piano roll
  • Improve clarity of some terms, fns

- Don't recalculate chord suggestions in scales if you don't have to
  - In the UI context, blocks already have chord suggestions generated and we
    can just pass these in
- Fix chord pitch matching
  - Playing the same pitch multiple times (i.e. octave intervals) won't result
    in red notes on the piano preview
- Improve unmatched chord pitch placement
  - Move it as close as possible to any unmatched played notes, but don't just
    blindly use their octave as the chord pitch might be placed better at the
    prev/next octave instead
- Start testing, still need to add github workflow yaml
- Clarify/disambiguate some terms
npm run watch should run a build but getting:
  FileNotFoundException: resources/public/js/compiled/app.js (No such file or directory)
Don't need/want to do browser tests
@cofinley cofinley merged commit e8d7077 into main Sep 14, 2023
2 checks passed
@cofinley cofinley deleted the tests branch September 14, 2023 21:09
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.

1 participant