archagon/ios-midisynth-program-change-bug-demo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
### LoadPresetDemo ### =========================================================================== DESCRIPTION: This app shows how to create an AUGraph object containing a Sampler unit, configure the Sampler by loading one of the two included AUPreset files, and then start the graph and trigger note-on and note-off events to audition the presets. The preset files were created in Mac OS X using the AU Lab application, found in /Developer/Applications/Audio. To use this app, tap the Play Low, Play Mid, and Play High buttons (which constitute a rudimentary keyboard) to audition the current preset. You can play more than one note simultaneously. Tap the "Trombone" or the "Vibraphone" button to load the corresponding patch, which employs the like-named .aupreset file. In addition to studying the source files to see how this app works, look at the connections established in the MainViewController nib file to see how the play buttons communicate with the MainViewController object. To learn how the preset files used in this sample code project were created using AU Lab in Mac OS X, view the Music in iOS and Lion presentation from WWDC 2011, and in particular the section on the Sampler audio unit. <https://developer.apple.com/videos/wwdc/2011/?id=411> =========================================================================== BUILD REQUIREMENTS: Mac OS X v10.7 or later; Xcode 4.2 or later =========================================================================== RUNTIME REQUIREMENTS: iOS v5.0 or later =========================================================================== PACKAGING LIST: Source Files: main.m Main source file as generated by Xcode LoadPresetDemoAppDelegate.h The application delegate class used for installing the main view controller. LoadPresetDemoAppDelegate.m The application delegate class used for installing the main view controller. MainViewController.h The main view controller of this app. MainViewController.m The main view controller of this app. This file contains most of the app implementation. Resource Files: Trombone.aupreset The AUPreset file for the Trombone patch. Vibraphone.aupreset The AUPreset file for the Vibraphone patch. Sounds/Tbone/1a#.caf Audio files used by the Trombone patch. Sounds/Tbone/2a#.caf Sounds/Tbone/3a#.caf Sounds/Tbone/4g.caf Sounds/Tbone/5e.caf =========================================================================== CHANGES FROM PREVIOUS VERSIONS: Version 1.0 - First version. =========================================================================== Copyright (C) 2011 Apple Inc. All rights reserved.
About
The kAudioUnitSubType_MIDISynth sampler type on iOS seems to be unable to change its patch on device (but not on the Simulator). This is the simplest possible test case.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published