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

Playback speed problem #7

Open
srgzah-ida opened this issue Feb 18, 2020 · 2 comments
Open

Playback speed problem #7

srgzah-ida opened this issue Feb 18, 2020 · 2 comments

Comments

@srgzah-ida
Copy link

Hello.
Thanks for the nice library, but there is a problem with it.

I generated a .mid file according to your instructions. Then I try to play the recording using AVMIDIPlayer.
For some reason the recorded midi is played at double speed.
If I set AVMIDIPlayer.rate = 0.5, then it sounds like normal.
Could you help me with problem? Maybe I'm generating the midi incorrectly?

@9SL9
Copy link

9SL9 commented Mar 31, 2020

I agree, great library. It seems the default bpm is 60 but is playing back at 120 when you import it. I'm seeing this behaviour when I create a new midiData object from scratch. But I haven't figured out yet how to change the midi files BPM to 60 (or any other tempo) by default so a player knows what the bpm should be.

@bcichowlas
Copy link

I just read today that 120 is the default speed for MIDI files that don't provide a tempo, so perhaps it has something to do with that.

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

3 participants