Code Monkey home page Code Monkey logo

Comments (4)

makbit avatar makbit commented on September 21, 2024

I think you are right. The code in midi.c Line #80 checks status byte and skips further processing.
if( MIDI_IS_STATUS(dataRX) ) // System Real Time message
I would appriciate for a patch. I do not have any DJ device, so I am not sure I can fix it fast.
I have found Table 4-2 in MIDI 1.0 spec with Examples of parsed events (page 17). It would be great if you show your 0xF8-command handler.

from midi2usb.

AmeNote-Michael avatar AmeNote-Michael commented on September 21, 2024

Here is some thoughts....

case MIDI_CLOCK: case MIDI_TICK: case MIDI_START: case MIDI_CONTINUE: case MIDI_STOP: case MIDI_ACTIVE_SENSE: state = MIDI_STATE_COMMAND_ONLY; break;

` else if ( state == MIDI_STATE_COMMAND_ONLY )
{
// Put MIDI message into the USB stream (zero padding).
pUsbBuffer->pUSB_MIDI_Buffer[pUsbBuffer->nUSB_MIDI_Buffer_Count++] = 0x0f; // cable 0, single byte message
pUsbBuffer->pUSB_MIDI_Buffer[pUsbBuffer->nUSB_MIDI_Buffer_Count++] = dataRX; // cmd
pUsbBuffer->pUSB_MIDI_Buffer[pUsbBuffer->nUSB_MIDI_Buffer_Count++] = 0; // no data
pUsbBuffer->pUSB_MIDI_Buffer[pUsbBuffer->nUSB_MIDI_Buffer_Count++] = 0;

		state == MIDI_STATE_IDLE;
	}`

Sorry, best I can do for now.

from midi2usb.

makbit avatar makbit commented on September 21, 2024

Thank you for your support. I have made changes and added Real-Time message handler. It would be great if you or someone else could test new release.

from midi2usb.

AmeNote-Michael avatar AmeNote-Michael commented on September 21, 2024

Sorry, no longer actively using library and unable to test / input further. Wish you luck.

from midi2usb.

Related Issues (2)

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.