PDA

View Full Version : Guitar Tuner App




ldenman
Dec 28, 2005, 06:34 PM
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.



.:*Robot Boy*:.
Dec 28, 2005, 08:42 PM
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.

ldenman
Dec 28, 2005, 08:53 PM
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!

whooleytoo
Dec 28, 2005, 09:06 PM
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!

Doesn't QuickTime play midi files?

ldenman
Dec 28, 2005, 09:12 PM
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