Thread: Working with MIDI in C++

  1. #1
    Registered User
    Join Date
    Sep 2009

    Working with MIDI in C++


    I am a student who is studying C++ and I am interested in creating a program that can be used to generate species counterpoint exercises - down the line I would like to add MIDI playback abilities - and so am wondering if anyone may be able to recommend sources that could provide me with information regarding MIDI playback through the C++ programming language.

    I see there are many projects by other programmers out there that can do this, but I am interested in using Windows libraries and implementing my own code.

    edit: to be more specific about what im trying to be able to implement; My main goal is the creation of an algorithm that generates complete four part species counterpoint, and then, after the notes are generated, being able to play them back - this is what the MIDI will be needed for. I am hoping to be able to make calls in order to play specific a specific note or combination of notes, i.e play an A 3, or a C# 5, etc. etc.

    Thanks, and I Hope this question isn't too obtuse,

    Adam Davis
    Last edited by adamdavis; 04-11-2010 at 08:33 PM.

  2. #2
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    You could use DirectMusic (tutorial here), that's the simplest way I know how. DirectMusic is deprecated now though. A linux-friendly solution would be to use timidity.

    EDIT: SDL_mixer plays midis via timidity too.
    Consider this post signed

  3. #3
    Registered User
    Join Date
    Sep 2009
    Thanks, brent. I Will look into this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 02-22-2010, 11:52 PM
  2. How to play midi music from resource without directX
    By alaphate in forum Windows Programming
    Replies: 0
    Last Post: 03-12-2009, 08:49 AM
  3. Guitar Hero ALSA MIDI output
    By redxine in forum Linux Programming
    Replies: 0
    Last Post: 01-24-2009, 11:03 PM
  4. Intercept the MIDI Out
    By MattMik in forum C++ Programming
    Replies: 2
    Last Post: 10-18-2007, 02:05 AM
  5. Function not working
    By sloopy in forum C Programming
    Replies: 31
    Last Post: 11-12-2005, 08:08 PM