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

Add note generator for safe accidentals #35

Closed
CookieComputing opened this issue Apr 21, 2021 · 1 comment
Closed

Add note generator for safe accidentals #35

CookieComputing opened this issue Apr 21, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@CookieComputing
Copy link
Owner

We need to have a note generator that generates letters and a single type of accidental for scales, keys, and chords.

Currently, we use this pattern:

val minorPentatonicScaleGen: Gen[MinorPentatonicScale] = for {
    letter <- NoteTest.noteLetterGen
    numOfAccidentals <- Gen.chooseNum(0, 1000)
    accidental <- NoteTest.accidentalGen
  } yield (...)

which can be refactored into a generator that does this for us

@CookieComputing
Copy link
Owner Author

Closed by fbff484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant