midi output to multiple channels / instruments through AUSampler
midi output to multiple channels / instruments through AUSampler
- Subject: midi output to multiple channels / instruments through AUSampler
- From: Hamish Moffatt <email@hidden>
- Date: Wed, 17 Apr 2013 10:40:58 +1000
- Organization: Rising Software Australia Pty Ltd
Hi,
I'm new to Core Audio but I have basic MIDI output output working
through a Sampler AudioUnit connected to the RemoteIO output (iOS) /
default output (OSX). I've loaded a soundfont via the
kAUSamplerProperty_LoadPresetFromBank property. I am writing MIDI
messages directly with MusicDeviceMIDIEvent as we have our own
high-layer MIDI/music functions.
Now I need to play melodic and percussion instruments at the same time.
We output percussion on MIDI channel 10 and melodic instruments on the
other channels as per general MIDI conventions. I tried to load the
percussion soundfont after my melodic soundfont, specifying bankMSB
kAUSampler_DefaultPercussionBankMSB, but it seemed to replace the
melodic soundfont.
I read that the AUSampler ignores the channel. Is this correct?
Do I need to set up an AUSampler for each channel, connect them all to
the output node, and then use the appropriate synth node when calling
MusicDeviceMIDIEvent? Or is there some sort of router/splitter node I
can use, or something else I'm missing entirely?
thanks,
Hamish
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden