Click here to Skip to main content
15,913,836 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# visual studio 2010 Pin
Pete O'Hanlon6-Sep-12 4:01
mvePete O'Hanlon6-Sep-12 4:01 
AnswerRe: C# visual studio 2010 Pin
Member 94105226-Sep-12 4:17
Member 94105226-Sep-12 4:17 
GeneralRe: C# visual studio 2010 Pin
Pete O'Hanlon6-Sep-12 4:48
mvePete O'Hanlon6-Sep-12 4:48 
QuestionC# using linq Pin
classy_dog6-Sep-12 3:45
classy_dog6-Sep-12 3:45 
AnswerRe: C# using linq Pin
Pete O'Hanlon6-Sep-12 4:02
mvePete O'Hanlon6-Sep-12 4:02 
AnswerRe: C# using linq Pin
Clifford Nelson6-Sep-12 13:48
Clifford Nelson6-Sep-12 13:48 
Questionsize of fileupload Pin
ptvce5-Sep-12 21:13
ptvce5-Sep-12 21:13 
AnswerRe: size of fileupload Pin
Shameel5-Sep-12 22:56
professionalShameel5-Sep-12 22:56 
AnswerRe: size of fileupload Pin
Pete O'Hanlon5-Sep-12 23:37
mvePete O'Hanlon5-Sep-12 23:37 
QuestionC# WinService starts in win7 but not in win2088 Pin
Daniel Jansson5-Sep-12 20:56
Daniel Jansson5-Sep-12 20:56 
AnswerRe: C# WinService starts in win7 but not in win2088 Pin
Bernhard Hiller5-Sep-12 21:35
Bernhard Hiller5-Sep-12 21:35 
GeneralRe: C# WinService starts in win7 but not in win2088 Pin
Daniel Jansson5-Sep-12 21:38
Daniel Jansson5-Sep-12 21:38 
GeneralRe: C# WinService starts in win7 but not in win2088 Pin
Bernhard Hiller5-Sep-12 21:49
Bernhard Hiller5-Sep-12 21:49 
AnswerRe: C# WinService starts in win7 but not in win2088 Pin
Shameel5-Sep-12 22:58
professionalShameel5-Sep-12 22:58 
AnswerRe: C# WinService starts in win7 but not in win2088 Pin
jschell6-Sep-12 12:48
jschell6-Sep-12 12:48 
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 

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.