question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

midiFile.GetPlayback

See original GitHub issue

When loading in huge midi’s, it works. But when you call midiFile.GetPlayback(outputDevice); everything freezes for awhile, sometimes this can be a long time

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Nitsua0615commented, Jun 17, 2021

Are you planning on doing that somewhere in the future? It would probably help a lot with this too.

Yes, I’ll come back to the subject in the future, but right now I see that playback creation is many times faster than before you opened this issue 😃

Edit: Also the main issue for me now is mostly just loading the file 🤣

If you about MidiFile.Read, then I think I can’t do better right now because reading a MIDI file is already optimized in many ways. But even your 129 MB file takes just several seconds to parse it into MidiFile on my machine, so I think it’s very good for such a big file.

Yeah, also I ended up using a Thread to do it (Set ProcessorAffinity for the Thread as well), which did actually make it a bit faster. Also, thank you for this amazing project 👍

0reactions
melanchallcommented, Jun 20, 2021

🚀 5.2.1 version is released now!

Prerelease NuGet packages will be unlisted soon, so please update the package references to the new version.

Thanks for using the library!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playback – Overview | DryWetMIDI
Playback class allows to play MIDI events via an IOutputDevice (see Output device article) or without a device at all (see Playback without...
Read more >
Overview | DryWetMIDI
Overview. DryWetMIDI is the .NET library to work with MIDI data and MIDI devices. It allows: Read, write and create Standard MIDI Files...
Read more >
MIDI File Playback Help / Hiring Dev
MIDI files load fine - MIDI playback does not. It *was* working, and then stopped - now I can only get playback on...
Read more >
NAudio - Playing back MIDI from Stream
I'm making a game and using NAudio to play back sounds. I want to play a MIDI file for music looping in the...
Read more >
Midi playback module - MOD WIGGLER
Hi A big part of my setup relies on composing midi files in Ableton. These files are played back on my disting Mk4...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found