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

Cast event pitches as integers #20

Merged
merged 3 commits into from
Dec 31, 2019
Merged

Cast event pitches as integers #20

merged 3 commits into from
Dec 31, 2019

Conversation

accraze
Copy link
Owner

@accraze accraze commented Dec 31, 2019

The miditime dependency saves pitch info using struct.pack('>B',event.pitch), which requires the second argument to be an integer. This is fixed by casting numbers in the composer matrix to type int.

fixes #19

@accraze accraze added the bug label Dec 31, 2019
@accraze accraze self-assigned this Dec 31, 2019
@codecov-io
Copy link

codecov-io commented Dec 31, 2019

Codecov Report

Merging #20 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #20   +/-   ##
=======================================
  Coverage   87.26%   87.26%           
=======================================
  Files           8        8           
  Lines         157      157           
  Branches       19       19           
=======================================
  Hits          137      137           
  Misses         15       15           
  Partials        5        5
Impacted Files Coverage Δ
src/twelve_tone/composer.py 92.72% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91d1075...2659ea9. Read the comment docs.

@accraze
Copy link
Owner Author

accraze commented Dec 31, 2019

Ok got the integer casting issue resolved, although I have uncovered some issues with the CI build (#21 )which will be addressed in a future PR.

@accraze accraze merged commit bb4de63 into master Dec 31, 2019
@accraze accraze deleted the event-pitch-integer branch December 31, 2019 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event pitches should be integers
2 participants