MIDI - play a note?

This is a discussion on MIDI - play a note? within the C++ Programming forums, part of the General Programming Boards category; I'm trying to do some of the stuff I used to be able to do on the old Commodore 64... ...

  1. #1
    -JM
    -JM is offline
    Registered Usurer
    Join Date
    Apr 2005
    Location
    upstate NY
    Posts
    79

    Question MIDI - play a note?

    I'm trying to do some of the stuff I used to be able to do on the old Commodore 64...

    I've read this http://www.borg.com/~jglatt/tech/lowmidi.htm

    but a lot of it is still over my head..

    Using dev-C++ under XP, how can I just play a note? Once I've got that, I can take it from there but I can't seem to get started.

    Incidentally, I've got Petzold's book here but it's really thick and I'm impatient!

    Thanks -

    -JM
    Huh?

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Here's a little sample program for 'ya. I think I got all of the information about how to do this from the same "borg" site you referenced...
    Attached Files Attached Files

  3. #3
    -JM
    -JM is offline
    Registered Usurer
    Join Date
    Apr 2005
    Location
    upstate NY
    Posts
    79
    Thanks, Doug...


    I saw this in my board searches but I couldn't get it to run, can I do it in DevC++?

    I've got VC++.NET but I got stumped and retreated to DevC++ while I continue to study in my 'spare time'.

    THANKS -

    -JM
    Huh?

  4. #4
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    You cant run it because it doesn't compile. This is easily fixed by changing iostream.h to iostream and then adding
    using namespace std; //or alternative
    Also remember to link winmm.lib

  5. #5
    -JM
    -JM is offline
    Registered Usurer
    Join Date
    Apr 2005
    Location
    upstate NY
    Posts
    79
    Got it, thanks!
    Huh?

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by -JM
    I'm trying to do some of the stuff I used to be able to do on the old Commodore 64...
    Those were the good old days.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to play midi music from resource without directX
    By alaphate in forum Windows Programming
    Replies: 0
    Last Post: 03-12-2009, 09:49 AM
  2. Fucntion returns -1, Why?
    By Taper in forum C Programming
    Replies: 16
    Last Post: 12-08-2008, 06:30 PM
  3. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  4. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  5. Gui Class With Tic Tac Toe
    By xxYukoxx in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2003, 05:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21