Guitar Tuner App

Discussion in 'Mac Programming' started by ldenman, Dec 28, 2005.

  1. macrumors regular

    Joined:
    Jul 20, 2005
    #1
    I made the layout with interface builder already. Basically i have 6 buttons labeled E,A,D,G,B,E for each string on guitar. When i press a button i want it to play the desired note. I have figured out how to link the buttons to the sounds. The problem is that the sounds are originally in a .midi format. I am not sure how to get the application to use quicktime to play the midi files. I converted them to .aif and the files each were about 24 megabytes. That makes the application way too huge. Each midi file is about 4kb.

    So, How do i make my program use quicktime to play a midi file?

    I am just using a standard cocoa template.
     
  2. macrumors 6502

    Joined:
    Jan 21, 2005
    Location:
    New Zealand
    #2
    Couldn't you just compress the .aif file to 64kbps AAC or something? If you use .mid files, you have no control over how the user's soundcard is going to play back the sound ( for some reason, the Quicktime synth in my PB plays back a snare as a whistle :confused: ). If you use an audio file, you know how it's going to sound on any system.
     
  3. thread starter macrumors regular

    Joined:
    Jul 20, 2005
    #3
    Wow!

    for some reason my mind was stuck on the "fact" that it could only play .aif natively. I converted and compressed to aac. they are all about 700kbs. That makes me happy. Thanks!
     
  4. macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #4
    Doesn't QuickTime play midi files?
     
  5. thread starter macrumors regular

    Joined:
    Jul 20, 2005
    #5
    it does, but i think you have to use some sort of quicktime framework in xcode. Like, i couldn't just import the midi file and link it. It would work with a .aif or .aac file.
    i dunno. It is all good now that i am using .aac
     

Share This Page