Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
QuestionC# Class for Finger Print Capture Pin
Member 23279205-Sep-12 20:25
Member 23279205-Sep-12 20:25 
AnswerRe: C# Class for Finger Print Capture Pin
Shameel5-Sep-12 20:38
professionalShameel5-Sep-12 20:38 
AnswerRe: C# Class for Finger Print Capture Pin
Thomas Duwe5-Sep-12 22:18
Thomas Duwe5-Sep-12 22:18 
QuestionPicture box click event Pin
Soni_moni5-Sep-12 19:43
Soni_moni5-Sep-12 19:43 
AnswerRe: Picture box click event Pin
Shameel5-Sep-12 20:36
professionalShameel5-Sep-12 20:36 
AnswerRe: Picture box click event Pin
DaveyM696-Sep-12 3:18
professionalDaveyM696-Sep-12 3:18 
QuestionC# MIDI controller interface. Pin
Jumpin' Jeff5-Sep-12 16:38
Jumpin' Jeff5-Sep-12 16:38 
AnswerRe: C# MIDI controller interface. Pin
DaveyM695-Sep-12 22:17
professionalDaveyM695-Sep-12 22:17 
Hi Jeff,

midiOutShortMsg is quite simple, midiOutLongMsg is more complex due to the way that the MIDIHDR structure is used.
Receiving SysEx can be tricky as you will need to add and control the receive buffers.

I can help you with this but I don't think I'll have time until around this time tomorrow unfortunately. If you haven't marked this as solved by then I'll dig out some code to assist.

In the meantime, for output you're going to need these functions:
midiOutGetNumDevs
midiOutProc (this will be a delegate in C#)
midiOutOpen
midiOutShortMsg
midiOutPrepareHeader
midiOutLongMsg
midiOutUnprepareHeader
midiOutClose

and these structs
MIDIOUTCAPS
MIDIHDR

You will find all the definitions for these on MSDN. They are shown in C++. You will need to create PInvoke versions (to call into Winmm.dll) of these in C#. Search your system for MMSystem.h as there are many things in there (such as the values for constants used etc) that will be handy.

Edit: 20 hrs and no other answers, give me 8 to get some sleep (UK) and I'll post some working code and pointers. Do you have a link to the MIDI implementation chart for the device you're trying to communicate with?
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)




modified 6-Sep-12 19:39pm.

GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff6-Sep-12 14:26
Jumpin' Jeff6-Sep-12 14:26 
GeneralRe: C# MIDI controller interface. Pin
DaveyM697-Sep-12 0:57
professionalDaveyM697-Sep-12 0:57 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 1:36
Jumpin' Jeff7-Sep-12 1:36 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 12:42
Jumpin' Jeff7-Sep-12 12:42 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 15:04
Jumpin' Jeff7-Sep-12 15:04 
AnswerRe: C# MIDI controller interface. Pin
DaveyM697-Sep-12 22:07
professionalDaveyM697-Sep-12 22:07 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff8-Sep-12 15:18
Jumpin' Jeff8-Sep-12 15:18 
GeneralRe: C# MIDI controller interface. Pin
DaveyM699-Sep-12 0:03
professionalDaveyM699-Sep-12 0:03 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff10-Sep-12 1:49
Jumpin' Jeff10-Sep-12 1:49 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6915-Sep-12 7:44
professionalDaveyM6915-Sep-12 7:44 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff15-Sep-12 8:58
Jumpin' Jeff15-Sep-12 8:58 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6918-Sep-12 10:31
professionalDaveyM6918-Sep-12 10:31 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff19-Sep-12 5:57
Jumpin' Jeff19-Sep-12 5:57 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff28-Sep-12 9:19
Jumpin' Jeff28-Sep-12 9:19 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6929-Sep-12 3:12
professionalDaveyM6929-Sep-12 3:12 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff29-Sep-12 9:42
Jumpin' Jeff29-Sep-12 9:42 
AnswerRe: C# MIDI controller interface. Pin
DaveyM6930-Sep-12 3:53
professionalDaveyM6930-Sep-12 3:53 

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.