Click here to Skip to main content
15,880,608 members
Everything / MIDI

MIDI

MIDI

Great Reads

by Andy Allinger
Convert audio to image. (Edit the image.) Convert image to music.
by honey the codewitch
Provides a complete managed API for working with MIDI files, sequences and devices
by Michael Chourdakis
Create music easily
by Maxim Dobroselsky
Overview of how to send, receive, play back and record MIDI data with DryWetMIDI

Latest Articles

by Maxim Dobroselsky
Console application to quantize notes of a MIDI file
by Andy Allinger
Convert audio to image. (Edit the image.) Convert image to music.
by ToughDev
How to develop PC-speaker MIDI player for IBM PC XT
by ToughDev
How to interface VS1053 Audio Encoder/Decoder Module with PIC using SPI

All Articles

Sort by Updated

MIDI 

27 Jun 2022 by 0x01AA
The pragmatic approach ... ... as soon this works one can think about to optimize it (e.g. loops instead of creating 10 Seconds of the same shape, stereo, etc.). You like to play a sinus- sound: Duration : [Sec] SampleFrequency : [Sample...
1 Jul 2022 by 0x01AA
***Warning*** This is my first java application after a crash course today. Take care, it is a.) inefficient b.) no naming conventions c.) simply fast and dirty But it shows the at least the steps how to build a sine sound. I have also cross...
2 Feb 2014 by Abhinav S
If you want to ask a question against an article, you can ask questions in the article itself.The author may respond.Just go to the section at the last of the article.
11 Mar 2010 by aldo hexosa
Does anyone know the meaning of midixml tag I dont know what is velocity. Thanks
12 Aug 2023 by Andy Allinger
Convert audio to image. (Edit the image.) Convert image to music.
28 Nov 2009 by AspDotNetDev
This was already asked and answered here. Answering to remove from unanswered questions list.
12 Dec 2014 by Baz Judd
I have 3 devices available to be opened by the toolkit, but as soon as I callnew OutputDevice(0)I get an error message saying 'No device driver'. I can open input devices OK.
12 Dec 2014 by Baz Judd
Sorted it myself! Don't attempt to use MIDI when you are logged in remotely. The software can see the remote devices, but when it tries to open them, it tries it on the local machine and dies!
24 Nov 2009 by c2423
Hi All,I've been looking at a .Net Midi Library and the only links I can find to the original article/source point towards GotDotNet, which no longer has any content (and doesn't redirect me to anything useful, thanks Microsoft)...I can find the dll on non-MS sites which have copies, but it's import
26 Oct 2018 by cassanelligiovanni
Hi, I'm a programming student and in these last years I touched various programming languages : C++, Java, Javascript, Python. For my third year project I was planning to develop a Music Loop Software that acquire up to 8 inputs from an external audio interface and loop them in different...
5 May 2022 by CPallini
It doesn't look correct to me. Take, for instance your msb function (I didn't scrutinize the other ones), it takes value and stores it in the second byte of value16 on a little endian machine. The following program #include using...
14 Nov 2020 by Dave Kreskowiak
Post your question in the forum at the bottom of that article.
24 Nov 2009 by DaveyM69
I had a look for this a few months ago but couldn't find it anywhere. I was looking as I'm writing my own MIDI wrapper for C# (nearly finished - article should be available here in the next few weeks!).The only complete thing I've found is Leslie Sanford's C# MIDI Toolkit which is available on t
3 Feb 2023 by David Handy
I just started working with www.codeproject.com/Articles/5272315/Midi-A-Windows-MIDI-Library-in-Csharp "Midi: A Windows MIDI Library in C#". What does the following really do? Trying to understand this segment of code: #if MIDILIB ...
26 Jul 2015 by Dhani Aditya
i'm trying make a application to convert numerial notation into MIDI file with MIDIToolkit..anyone know how to do that?please help..thank you.. Smile | :)
8 Nov 2010 by E.F. Nijboer
I didn't read the article of Jeremy Falcon, but this link probably isn't with that much humor and everything else but does have al the info you probably need. http://www.midi.org/aboutmidi/tut_techomidi.php[^]http://www.2writers.com/eddie/TutSysEx.htm[^]Good luck!
28 Oct 2013 by Eren001
hello everyone , i'm new to programming could some one help me to find a project or a code to convert a midi file to music sheet ( it would be better if in vb.net) ? i really appreciate any help
6 Sep 2011 by Espen Harlinn
Take a look at DirectShow MediaPlayer in C#[^]The last three links at the bottom of the article is quite good.Best regardsEspen Harlinn
28 Oct 2012 by Frank R. Haugen
Take your request here: www.elance.com[^](this isn't the place for it)And 10 euros is about a tenth the marked price for something like that.-frank
28 Nov 2009 by gabrieldd
Hi,I'm trying to set up a Midi application. I've got a MID-Form and some other forms which should show up as children.But Calling the show() method (after setting childform.mdiparent to the Mid-Form) does not result in the desired effect. They show modal/ as popup.If I just instance...
1 Dec 2015 by George Jonsson
Quote:I found some DLL ID3 . Is that possible do with that ?What library did you find?This might be a good start ID3.NET Tagging Library for MP3s[^]Maybe this what you found already.
25 Apr 2020 by Gerry Schmitz
"Playback" requires a balance between the "engine" and the player. Most likely you need to buffer better and your "sleep" isn't helping. The fact it works "better" under contention says you need to think more about "why" you have a "for and...
3 Feb 2023 by Graeme_Grant
They are C# preprocessor directives | Microsoft Learn[^] Quote: Although the compiler doesn't have a separate preprocessor, the directives described in this section are processed as if there were one. You use them to help in conditional compilation.
25 May 2020 by Greg Utas
A .wav file is something you can listen to directly, whereas a MIDI file is more like sheet music. A MIDI file must therefore be performed to generate a .wav file. There are lots of MIDI applications which do this, from external synthesizers to...
6 Sep 2011 by groomcw
I have a project that I've been considering for a while: an application that can convert simple WAV data to MIDI files. There are a few apps out there that do this... none in C#, and definitely none that have a UI worth considering.So I am wondering where someone can start up a group going...
5 Jul 2013 by hirosht
Please be kind enough to not to say this as a silly question. Honestly asking after refering to several links on google.I am in need of a API which generates MIDI tone/tune in C#. Currently I'm implementing a "Basic Optical Music Recogntion and Interpreting Application" without any OMR API...
7 Jul 2013 by hirosht
I am currently developing a Optical Music Manuscript Reading application in C#. For the note identifcation scenario, I have find out the need of knowing the octave values for each key.Because of represnting thie note as in example: 4C4 where (Duration)(Note)(Octave) is the order of...
27 Jun 2020 by honey the codewitch
Extensive performance and API improvements for streaming MIDI and more
12 Jul 2020 by honey the codewitch
PianoBox is a customizable musical keyboard control for Windows Forms. This is the first part of MidiUI.
14 Jul 2020 by honey the codewitch
Continuing our series with a knob control and a MIDI visualizer
5 May 2022 by honey the codewitch
MIDI is a big endian wire protocol. I'm trying to provide accessors to get/set the least significant and most significant byte of a 16-bit MIDI message payload. My concern is I have LSB and MSB backward. I always get mixed up with stuff like...
9 May 2022 by honey the codewitch
Explore some streaming techniques while getting your shiny new ESP32S3 to do some USB and MIDI tricks
15 May 2022 by honey the codewitch
Trigger tracks from Type 2 MIDI files to add to your recording or performance
25 Jul 2022 by honey the codewitch
Make your little devices sing
6 Jul 2020 by honey the codewitch
Provides a complete managed API for working with MIDI files, sequences and devices
22 Mar 2020 by honey the codewitch
Slice sections out of a MIDI file, and stretch or compress playback time using this simple utility. Or use the Midi Library to build your own MIDI apps
6 Sep 2011 by Jackie00100
Hi everyone.Me and a group on my university is about to make a "smart/inteligent" jukebox player in C# and we have searched alot on the internet to find some sort of references that can play a number of difference music formats but also is easy to use, but yet no one of us have found...
7 Sep 2011 by Jackie00100
I've found a kinda okay good solution by using Microsoft.DirectX.DirectSound kinda easy to use, and have alot of the features i need and also it can play multiple sounds at once so this is yet the best solution but ty to you harlinn anyway.
13 May 2012 by Jackie00100
Hi i have 2 short questions:1.Im thinking of starting to work on a rockband 3 like game that can take input from real instruments as miditones. But i would really like to know if there is any way you can change midi to something more realistic like they do in Guitar pro with RSE(Realistic...
18 Feb 2013 by jeron1
Possibly this[^] SDK will help.
28 Oct 2013 by Kenneth Haugland
Midi files are binary files[^], which you can convert into text files with different channels etc.The sheet music convertion is quite complicated, there are after all a reason that people sell these things at a rather steep price...[Edit]You could try a search here thoug, C# MIDI...
10 Oct 2020 by LeisureBamboo
In this article, you will see the steps required to simultaneously play multiple midi file from memory using MCI functions.
26 Oct 2018 by MadMyche
There really is no right answer for you on this, as it is primarily opinion based as well as the users comfortability within the various languages. The only thing that you can eliminate from the list is JavaScript which is mostly limited to a browser. There are GIT/NuGet packages for just...
27 Jun 2021 by Maxim Dobroselsky
Overview of how to send, receive, play back and record MIDI data with DryWetMIDI
26 Jun 2021 by Maxim Dobroselsky
Overview of how to use the DryWetMIDI library for high-level managing of a MIDI file data
19 Aug 2023 by Maxim Dobroselsky
Console application to quantize notes of a MIDI file
1 Dec 2015 by Member 11865398
Hi, Am doing desktop player application. In that player main feature is showing lyrics while playing mp3 file song.I found some DLL ID3 . Is that possible do with that ? or any other third party libs available do this ?Any Ideas / suggestion need.Am using for development1#....
22 Oct 2018 by Member 14029326
Dear M. Ricardo, I'm Music teacher in Belgium for my pleasure. I learn the silver flute. I would like to figure the finger position of Midi songs that a produce for my pupils and to post that in a video on you tube as free access for everyone. I understand with WPF that it is possible to...
25 May 2020 by Member 14840761
I'm new to this field - but I need to perform a MIDI-to-Wav conversion in C++.Is there a way to know what exactly are the steps involved in MIDI-to-Wav conversion?? I have no idea as of how to start .I cannot find solid sources or research paper...
12 Mar 2010 by merridus
http://www.pal...
18 Feb 2013 by MGreatwolf
Hi,I am trying to track down information that would help explain how to create a virtual MIDI port similar to LoopBe1 (www.nerds.de). My development environment is Visual Studio 2010 and I am most familiar with C++. LoopBe1 is an awesome program and I have/am using today but now I want to...
11 Mar 2013 by MGreatwolf
Thanks, but that is more of an SDK to use a driver that Tobias has already developed.
9 May 2019 by Michael Chourdakis
Create music easily
2 Feb 2014 by OriginalGriff
Pretty much, you can't - there is no direct mechanism for that. However, if you want to contact him because of one of his articles, such as Wrapper Library for Windows MIDI API[^] then there is a Messages section at the bottom of the artcile, which sends an email to the author when you post...
24 Sep 2021 by OriginalGriff
Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to...
12 Oct 2021 by OriginalGriff
Quote: My code doesn't work propertly Quote: // Programmer: Craig Stuart Sapp // Creation Date: Sat Jan 1 20:29:45 PST 2005 // Last Modified: Sat Jan 1 20:37:28 PST 2005 Hmmm. Either you are a very, very slow coder or you are telling lies...
6 Sep 2011 by Paulo Zemek
I don't know if there is someone involved on something like this, but www.sourceforge.com and www.codeplex.com are good sources to at least try.
25 Apr 2020 by px330
I Use Wpf. I parse a midi file and use midioutshortmsg to send message in a For Loop, and sleep for delay Delta Time; My playback is lagging ,But, when i open other midi software at the same time (include WindowMediaPlayer) ,All the Problem is...
6 Jul 2013 by Richard MacCutchan
Take a look at C# MIDI Toolkit[^].
2 Feb 2014 by Richard MacCutchan
Find an article by that member and post a message in the forum at the end of the article. Or check if they have a Reply link in any of their forum messages and use that.
5 Apr 2020 by Richard MacCutchan
See Developing MIDI applications with DirectMusic[^]
24 May 2020 by Richard MacCutchan
Here are a couple of useful references on MIDI files: Standard MIDI file format, updated[^] and Skytopia: Crash course on the standard MIDI specification (SMF)[^].
26 Oct 2018 by Rick York
I agree with MadMyche's answer. I would add to that - first find a MIDI library that looks good to you. There are a few of them here. If OS portability is really important to you then you need to find a MIDI library that is also portable. That could prove to be challenging but I don't know...
28 Oct 2012 by ridoy
Code Project isn't a place where people do code for your money.Drop your question here..http://www.freelancer.com/[^]or here..https://www.odesk.com/[^]
30 Sep 2013 by SaurabSaini
Hello Freinds, I have made a dialog based Piano application in which i am handling Multitouch messages . I have two classes One is CMIDIKeyboard in which i am handling touch down messages as followsLRESULT CMIDIKeyboard::OnTouchMessage( WPARAM wParam, LPARAM lParam ){ //Insert handler...
14 May 2012 by Sergey Alexandrovich Kryukov
If MIDI sound sounds not realistic enough to you (which I understand; it means you have some musical hearing — my congratulations :-)) you can only generate more realistic sound from scratch. It has nothing to do with MIDI: it can carry only as much information as it does, no more.You...
16 Jul 2012 by Sergey Alexandrovich Kryukov
Not clear what exactly do you mean by "Note Analysis". It can range from tone recogntion by raw audio input (very difficult matter, related to both Fourier analysis and image recognition, especially difficult of both tones and durations should be recognized in polyphonic input; I simply don't...
7 Jul 2013 by Sergey Alexandrovich Kryukov
This is the MIDI note #60:http://en.wikipedia.org/wiki/Do_%28musical_note%29[^].Besides, you could do the following: 1) take any MIDI library which allows you to send at least basic MIDI messages and write code capable of sending notes of your choice, so you could here them; 2) listen to...
2 Feb 2014 by Sergey Alexandrovich Kryukov
Find any of the posts of this person and add a comment to it. Most members have the option to get notifications on all their posts (switched on by default).For example, load this article's page, locate the section "Comments and Discussions" at the end and click "Add a Comment or Question",...
26 Jul 2015 by Sergey Alexandrovich Kryukov
As you are not asking about playing music using MIDI and only want to create files, you don't even need to use any library. The full description of the MIDI file format is available. See, in...
15 Jul 2012 by Sicppy
I'm creating take in audio from my digital keyboard connected to the mic input on my computer, analyze the notes, and output them as a virtual MIDI controller. Could someone tell me a good DLL for sound/note analysis and MIDI output?Regards,Jordan
5 Apr 2020 by Stewart Lindenberger
I am working (on a Windows PC) in VS 2019, and VB, creating a program to generate new simple Bach chorale style music. I have been working on this project off and on over the decades. It is now starting to produce some very simple chord sequences...
1 Jul 2022 by T1xT
this below, it even plays a 1hz sound clearly; while it shouldn't: import javax.sound.sampled.*; public class soundwithdetails { public static float SAMPLE_RATE = 44100f; public static void sound(int hz, int msecs, double vol) throws...
2 Feb 2014 by Tim Riley in South River
Hi, I would like to ask a specific member, Leslie Sanford, a question about MIDI programming in C#. How do I do that please?ThanksTim Riley in South River
8 Nov 2010 by Tom Dietzel
Thank you Jeremy Falcon for your article on learning binary and hexadecimal code. It was EXACTLY what I needed.I have been a musician for forty years, but am just starting to learn digital recording and music production with Ableton Live, MIDI Translator, MIDI Yoke and MIDI Ox.I am...
7 May 2023 by ToughDev
How to interface VS1053 Audio Encoder/Decoder Module with PIC using SPI
12 May 2023 by ToughDev
How to develop PC-speaker MIDI player for IBM PC XT
21 Dec 2011 by Tynycae
I have seen somewhere that it is possible to cause Midi to stop playing the previous note on a particular channel with a simple command: something like - NoteOn(0, 0, SomeParamHere, (byte)nVelocity);I would appreciate your help.Thanks in advance,Mick
21 Dec 2011 by Valery Possoz
Hello,I don't know anything about Midi (appart from the obvious) but I found this link:C# MIDI Toolkit[^]It seems that there is everything you need in this article.Valery.
17 Jun 2010 by WebBiscuit
Looking at a simple MIDI handle wrapping class
20 Jun 2010 by WebBiscuit
A hidden danger of wrapping using RAII rears its head when we start copying the object around. Let's look at why and what we can do.
3 Jul 2010 by WebBiscuit
So far we have concentrated on the 'AII!' part of RAII, so now let's look at the important bit, the R, the Resource.