Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Read MIDI Event and Device
Read MIDI Event and Device [message #33612] Tue, 30 August 2011 19:56 Go to next message
proyb2 is currently offline  proyb2
Messages: 4
Registered: August 2011
Junior Member
Is it possible to detect MIDI events through USB input? Do I need a made ready MIDI DLL/Source code to work with U++?

Done MIDI work on Java but looking to work on U++.

Please advice a tutorial in U++ since I have already got a little familiar with U++ syntax.

I wonder if it possible to invoke DLL function from U++ too.

[Updated on: Tue, 30 August 2011 19:57]

Report message to a moderator

Re: Read MIDI Event and Device [message #33615 is a reply to message #33612] Tue, 30 August 2011 23:39 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello proyb2

Welcome to U++.

To use dll files inside U++ you can use dli files.


Best regards
IƱaki
Re: Read MIDI Event and Device [message #33616 is a reply to message #33615] Wed, 31 August 2011 03:49 Go to previous messageGo to next message
proyb2 is currently offline  proyb2
Messages: 4
Registered: August 2011
Junior Member
How do I create DLI? Was it generated by compiling DLL?

[Updated on: Wed, 31 August 2011 03:49]

Report message to a moderator

Re: Read MIDI Event and Device [message #33617 is a reply to message #33612] Wed, 31 August 2011 07:19 Go to previous messageGo to next message
proyb2 is currently offline  proyb2
Messages: 4
Registered: August 2011
Junior Member
I also need some explaination on the DLI format, it seem to be cryptic.
Re: Read MIDI Event and Device [message #33618 is a reply to message #33615] Wed, 31 August 2011 08:21 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 30 August 2011 17:39

Hello proyb2

Welcome to U++.

To use dll files inside U++ you can use dli files.


Actually, it not always makes sense to use .dli. You should .dli only if you need dynamic loading, means if your application is supposed to work without .dll as well.

If you always need .dll, as is most likely the case here, simply add import .lib in the package organizer. You can check e.g. CtrlCore in package organizer to see how is that done..

Mirek
Re: Read MIDI Event and Device [message #33619 is a reply to message #33617] Wed, 31 August 2011 08:29 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

I do not wish to mix up your conversation, but still want to point out something: While DLI is great for software controlled conditional loading of DLL, you can still have the operating system automatically link the DLL at program start-up: Just add the import library of your MIDI DLL to your package as a library dependency and include the corresponding header in your C++ source.

Best regards,

Tom

[EDIT:] Mirek was faster to reply!

[Updated on: Wed, 31 August 2011 08:32]

Report message to a moderator

Re: Read MIDI Event and Device [message #33620 is a reply to message #33612] Wed, 31 August 2011 09:35 Go to previous messageGo to next message
proyb2 is currently offline  proyb2
Messages: 4
Registered: August 2011
Junior Member
Think likewise, but I still need a clear tutorial on DLI part.

Other than that, how do I listen to MIDI port through USB?
Re: Read MIDI Event and Device [message #33699 is a reply to message #33612] Tue, 06 September 2011 10:38 Go to previous message
arkady_c is currently offline  arkady_c
Messages: 14
Registered: December 2010
Location: Polska
Promising Member
maybe this will help
libusb-1.0 libusb.org
http://libusb.org/wiki/windows_backend
in mingw load file
#include <libusb-1.0/libusb.h>

handle = libusb_open_device_with_vid_pid(NULL, vID, pID);
if (handle == NULL)
{
LOG ("Connection failed");
return;
}
...

My device "own production" runs on Win and Lin
u + + is great Laughing


2a7aff6be3f76940495be32258777636
Previous Topic: Docking package fixed and moved to uppsrc
Next Topic: _NET_WM_PING, _NET_WM_PID troubles
Goto Forum:
  


Current Time: Fri Mar 29 12:18:59 CET 2024

Total time taken to generate the page: 0.01391 seconds