Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Making MIDI Sounds

Making MIDI Sounds
Thread Tools
Forum Regular
Join Date: May 2000
Status: Offline
Reply With Quote
Oct 9, 2003, 05:14 PM
 
Hi everyone, I have a quick question.

In ProjectBuilder, I want to dynamically generate ($note, $duration) pairs that I can send to the MIDI sound output (ie, not sending packets to an actual MIDI device). Basically I just need to know what function(s) to call to make MIDI sounds in real time. Maybe something like PlayMIDISound(int channel, int note, int duration, int volume).

I've been reading the CoreAudio documentation but its terribly confusing and there aren't any examples that are of any help.

Any advice would be greatly appreciated. Thanks!
     
Forum Regular
Join Date: Mar 2002
Location: Düsseldorf, Germany, Europe, Earth
Status: Offline
Reply With Quote
Oct 11, 2003, 02:31 AM
 
If you just want to play a few notes or short tunes for fun, you may not want to use CoreAudio, but QuickTime. Here's some sample code - a bit dated, but should run fine on OS X. Along with that, read the QuickTime documentation, where you'll find a chapter on using QuickTime with Cocoa, as well as (of course) the QT Audio documentation.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2