Code Monkey home page Code Monkey logo

mt32-pi-control's People

Contributors

dwhinham avatar gmcn42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dwhinham drkzrg

mt32-pi-control's Issues

[MS-DOS] Timing-sensitive issues sending SysEx via Music Quest PC-MIDI/Orpheus "Intelligent" MPUs

Hi @gmcn42, hope you are well!

@appiah4 has encountered problems using mt32-pi-control to send SysEx from MS-DOS via a Music Quest PC-MIDI "Intelligent" MPU clone card from keropi - there's a (long!) thread here: dwhinham/mt32-pi#127 (reply in thread)

I have an Orpheus card which has the same MIDI hardware/"intelligent" MPU as the PC-MIDI clone, and was able to reproduce this.

The problem is that the MPU emits no data at all when using mt32-pi.exe -g or mt32-pi.exe -m, for example, and so the Pi of course receives nothing. DUMP.EXE, on the other hand, works fine with an equivalent .SYX file; games and other intelligent-mode aware software also works fine.

The issue is timing-sensitive, because:

  • For @appiah4, passing -v seems to "fix" it - but not for me. The printf() caused by -v appears to add just enough of a delay between putting the MPU into UART mode and sending the data to allow it to work.
  • For me, spamming the command (up-arrow + return) very fast may sometimes send some data to the Pi. My PC is an Am5x86-133MHz "486", so a fairly fast DOS machine.
  • For me, using -Y and providing a .SYX file works too; I think the delay caused by reading the file from disk allows it to work too.

As a hack, I added a call to delay_ms(1000); here, just after the mpu401_uart(mpubase) line:

mpu401_uart(mpubase);

mpu401_waitread(mpubase); instead of the delay also appears to work, but I don't think this is correct.
I'm not sure of the true fix, as I'm not experienced with programming the MPU-401, but this knowledge may help narrow things down.

I'm guessing there's a sequencing problem with the checking and waiting of the MPU read/write status bits, but I can't see it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.