• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
midi output to multiple channels / instruments through AUSampler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: midi output to multiple channels / instruments through AUSampler
      • From: Info <email@hidden>
  • Prev by Date: Re: MIDI CC and PitchBend with AUDLSSynth
  • Next by Date: Re: midi output to multiple channels / instruments through AUSampler
  • Previous by thread: Re: MIDI CC and PitchBend with AUDLSSynth
  • Next by thread: Re: midi output to multiple channels / instruments through AUSampler
  • Index(es):
    • Date
    • Thread