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

SetTempoEvent to 120 bpm doesn't seem to align with my metronome or in my music software #179

Open
LiamInJapan opened this issue Jan 29, 2020 · 0 comments

Comments

@LiamInJapan
Copy link

Hi there,

Thanks very much for providing and supporting this library!

I am trying to create an automatic drum rudiment generator here:
https://github.com/LiamInJapan/RudimentGenerator

https://github.com/LiamInJapan/RudimentGenerator/blob/master/generator_2.py < the guts are in here

But I'm having some problems with the library... Perhaps it's to do with my understanding of how NoteOn and NoteOff works...

Essentially I set up a track with BPM 120 and print out a bunch of notes. If I confirm the mpqn it seems to correctly set at 500000, which suggests that everything is good. The MIDI generates and I can play it out with timidity and it sounds approximately what I expect.

The problem is if I try and compare this with a metronome, or import it into a MIDI editor set at BPM 120. What I see is that each note introduces a little lag (e.g. the resultant output is ever so slightly slower than 120 BPM). An image is attached:

Screenshot 2020-01-29 at 19 33 13

(Interestingly it lines up again after 6 bars...)

I'm not really sure what's going on, whether this is an understanding of "resolution" (the output seems to say 220... Although I've no idea how I can affect that).

Any advice much appreciated!

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

No branches or pull requests

1 participant