Click here to Skip to main content
15,886,067 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Pull Request Pin
Jacquers2-Jul-20 0:21
Jacquers2-Jul-20 0:21 
GeneralRe: Pull Request Pin
F-ES Sitecore2-Jul-20 1:39
professionalF-ES Sitecore2-Jul-20 1:39 
GeneralRe: Pull Request Pin
Marc Clifton2-Jul-20 4:30
mvaMarc Clifton2-Jul-20 4:30 
GeneralRe: Pull Request Pin
Super Lloyd2-Jul-20 5:18
Super Lloyd2-Jul-20 5:18 
GeneralRe: Pull Request Pin
Jon McKee2-Jul-20 12:52
professionalJon McKee2-Jul-20 12:52 
PraiseWooo! I did it PinPopular
honey the codewitch1-Jul-20 9:45
mvahoney the codewitch1-Jul-20 9:45 
GeneralRe: Wooo! I did it Pin
David O'Neil1-Jul-20 10:41
professionalDavid O'Neil1-Jul-20 10:41 
GeneralRe: Wooo! I did it Pin
honey the codewitch1-Jul-20 14:28
mvahoney the codewitch1-Jul-20 14:28 
Well I spoke a little too soon. Turns out MIDI tempo sync isn't very accurate, at least from .NET, the MIDI drivers are not calling it accurately enough in terms of timing, at least by the time it gets to the .NET code (through all the P/Invoking through the callback and whatnot)

With MIDI-OX the results are better - my tap tempo app pretty reliably transmits the MIDI timestamps on time and MIDI-OX receives them on time so i know it's not the MIDI driver itself.

I've cranked the thread priority of my app, even though that shouldn't matter, and I made sure the particular message short circuits the regular handling and goes through a special abbreviated codepath to speed things up. Still it's off by a BPM or two in either direction. Sigh | :sigh:

I guess I'll leave it in because it kind of works, but also because when I sort out the issue I'll have the rest of the code in place. I wish I had a better solution.

Unfortunately, there's precious little documentation on using the low level MIDI API from windows
Real programmers use butterflies

GeneralRe: Wooo! I did it Pin
David O'Neil1-Jul-20 14:36
professionalDavid O'Neil1-Jul-20 14:36 
GeneralRe: Wooo! I did it Pin
honey the codewitch1-Jul-20 15:01
mvahoney the codewitch1-Jul-20 15:01 
GeneralRe: Wooo! I did it Pin
David O'Neil1-Jul-20 15:58
professionalDavid O'Neil1-Jul-20 15:58 
GeneralRe: Wooo! I did it Pin
honey the codewitch1-Jul-20 17:05
mvahoney the codewitch1-Jul-20 17:05 
GeneralRe: Wooo! I did it Pin
David O'Neil1-Jul-20 20:40
professionalDavid O'Neil1-Jul-20 20:40 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 0:21
mvahoney the codewitch2-Jul-20 0:21 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 8:21
professionalDavid O'Neil2-Jul-20 8:21 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 8:48
mvahoney the codewitch2-Jul-20 8:48 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 8:54
professionalDavid O'Neil2-Jul-20 8:54 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:07
mvahoney the codewitch2-Jul-20 9:07 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 9:10
professionalDavid O'Neil2-Jul-20 9:10 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:38
mvahoney the codewitch2-Jul-20 9:38 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 9:12
professionalDavid O'Neil2-Jul-20 9:12 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:36
mvahoney the codewitch2-Jul-20 9:36 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 10:10
professionalDavid O'Neil2-Jul-20 10:10 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 12:25
mvahoney the codewitch2-Jul-20 12:25 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 13:03
professionalDavid O'Neil2-Jul-20 13:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.