Click here to Skip to main content
15,125,299 members
Home / Discussions / C#
   

C#

 
QuestionC# Class for Finger Print Capture Pin
Member 23279205-Sep-12 21:25
MemberMember 23279205-Sep-12 21:25 
AnswerRe: C# Class for Finger Print Capture Pin
Shameel5-Sep-12 21:38
professionalShameel5-Sep-12 21:38 
AnswerRe: C# Class for Finger Print Capture Pin
Thomas Duwe5-Sep-12 23:18
MemberThomas Duwe5-Sep-12 23:18 
QuestionPicture box click event Pin
Soni_moni5-Sep-12 20:43
MemberSoni_moni5-Sep-12 20:43 
AnswerRe: Picture box click event Pin
Shameel5-Sep-12 21:36
professionalShameel5-Sep-12 21:36 
AnswerRe: Picture box click event Pin
DaveyM696-Sep-12 4:18
professionalDaveyM696-Sep-12 4:18 
QuestionC# MIDI controller interface. Pin
Jumpin' Jeff5-Sep-12 17:38
MemberJumpin' Jeff5-Sep-12 17:38 
AnswerRe: C# MIDI controller interface. Pin
DaveyM695-Sep-12 23:17
professionalDaveyM695-Sep-12 23: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 15:26
MemberJumpin' Jeff6-Sep-12 15:26 
GeneralRe: C# MIDI controller interface. Pin
DaveyM697-Sep-12 1:57
professionalDaveyM697-Sep-12 1:57 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 2:36
MemberJumpin' Jeff7-Sep-12 2:36 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 13:42
MemberJumpin' Jeff7-Sep-12 13:42 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff7-Sep-12 16:04
MemberJumpin' Jeff7-Sep-12 16:04 
AnswerRe: C# MIDI controller interface. Pin
DaveyM697-Sep-12 23:07
professionalDaveyM697-Sep-12 23:07 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff8-Sep-12 16:18
MemberJumpin' Jeff8-Sep-12 16:18 
GeneralRe: C# MIDI controller interface. Pin
DaveyM699-Sep-12 1:03
professionalDaveyM699-Sep-12 1:03 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff10-Sep-12 2:49
MemberJumpin' Jeff10-Sep-12 2:49 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6915-Sep-12 8:44
professionalDaveyM6915-Sep-12 8:44 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff15-Sep-12 9:58
MemberJumpin' Jeff15-Sep-12 9:58 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6918-Sep-12 11:31
professionalDaveyM6918-Sep-12 11:31 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff19-Sep-12 6:57
MemberJumpin' Jeff19-Sep-12 6:57 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff28-Sep-12 10:19
MemberJumpin' Jeff28-Sep-12 10:19 
GeneralRe: C# MIDI controller interface. Pin
DaveyM6929-Sep-12 4:12
professionalDaveyM6929-Sep-12 4:12 
GeneralRe: C# MIDI controller interface. Pin
Jumpin' Jeff29-Sep-12 10:42
MemberJumpin' Jeff29-Sep-12 10:42 
AnswerRe: C# MIDI controller interface. Pin
DaveyM6930-Sep-12 4:53
professionalDaveyM6930-Sep-12 4: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.