• 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
Re: Learning Core Audio - AUSampler iOS example - can't get it to run CH12_MIDIToAUSamplerIOS.xcodeproj
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Learning Core Audio - AUSampler iOS example - can't get it to run CH12_MIDIToAUSamplerIOS.xcodeproj


  • Subject: Re: Learning Core Audio - AUSampler iOS example - can't get it to run CH12_MIDIToAUSamplerIOS.xcodeproj
  • From: Chris Adamson <email@hidden>
  • Date: Wed, 17 Oct 2012 08:34:38 -0400

IIRC, that example was built to connect the MIDI keyboard directly to the device -- OSX for CH12_MIDIToAUSampler and iOS for CH12_MIDIToAuSampleriOS.

For iOS, it's assumed you're using the Camera Connection Kit and a USB-MIDI adapter (or a MIDI-to-Dock-Connector adapter, if such things exist?).

So I'm not sure what you're expecting from this keyboard -> MacBook -> iPad chain. Is the MacBook connected to the iPad via dock cable or are you trying to do MIDI over wi-fi (in the reverse direction of the example in chapter 10) or what? Neither of those things is going to work (MIDI events won't automagically flow from the computer to the USB cable, and I don't think iOS can receive MIDI over wi-fi like OS X can).

Suggestion: if you have any doubts about whether the problem is with your code or your connections, grab the free MIDI Monitor app from iOS MIDI <http://iosmidi.com/apps/midi-monitor/> and see if that recognizes your MIDI device.

--Chris

On Oct 16, 2012, at 11:01 PM, Pier <email@hidden> wrote:

Hi, 

I've been using the example from the source code CH12_MIDIToAUSamplerIOS from the book "Learning Core Audio" and can't seem to get the iOS device to recognise my midi keyboard. 
Here are the connections : 

Midi keyboard -> Macbook Pro
Macbook Pro -> iPad (actual device) 

The app runs fine, but I hear no sounds when I press the keys on the midi keyboard. 
The midi keyboard doesn't seem to trigger the callbacks in the code (no log statements). 
There doesn't seem to be any errors trigger, I see that it detected one midi source and proceeded to use that for the app. 

I get this log output...

2012-10-17 10:53:37.261 CH12_MIDIToAUSamplerIOS[16188:907] presetPathC: /var/mobile/Applications/B3A3ECBC-EBB0-4DD4-9B3D-9629E316BF40/CH12_MIDIToAUSamplerIOS.app/ch12-aupreset.aupreset

2012-10-17 10:53:37.279 CH12_MIDIToAUSamplerIOS[16188:907] AUGraph ready

AudioUnitGraph 0x3F3C000:

  Member Nodes:

node 1: 'auou' 'rioc' 'appl', instance 0x1dd96c20 O I

node 2: 'aumu' 'samp' 'appl', instance 0x1e86f230 O I

  Connections:

node   2 bus   0 => node   1 bus   0  [ 2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved]

  CurrentState:

mLastUpdateError=0, eventsToProcess=F, isRunning=F

1 sources

  source 0: Session 1

2012-10-17 10:54:03.619 CH12_MIDIToAUSamplerIOS[16188:907] MIDI ready

2012-10-17 10:54:12.974 CH12_MIDIToAUSamplerIOS[16188:907] MIDI app running

2012-10-17 10:54:19.270 CH12_MIDIToAUSamplerIOS[16188:907] Application windows are expected to have a root view controller at the end of application launch


Could someone help shine a light on this? Am I doing it wrong somehow? 

Thanks in advance. 


Pier. 

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
References: 
 >Learning Core Audio - AUSampler iOS example - can't get it to run CH12_MIDIToAUSamplerIOS.xcodeproj (From: Pier <email@hidden>)

  • Prev by Date: Learning Core Audio - AUSampler iOS example - can't get it to run CH12_MIDIToAUSamplerIOS.xcodeproj
  • Next by Date: generator audio unit or user-land audio driver for network send/receive
  • Previous by thread: Learning Core Audio - AUSampler iOS example - can't get it to run CH12_MIDIToAUSamplerIOS.xcodeproj
  • Next by thread: generator audio unit or user-land audio driver for network send/receive
  • Index(es):
    • Date
    • Thread