Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ldenman

macrumors regular
Original poster
Jul 20, 2005
229
0
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*:.

macrumors 6502
Jan 21, 2005
373
0
New Zealand
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

macrumors regular
Original poster
Jul 20, 2005
229
0
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!
 

whooleytoo

macrumors 604
Aug 2, 2002
6,607
716
Cork, Ireland.
ldenman said:
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

macrumors regular
Original poster
Jul 20, 2005
229
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.