AudioKit Sampler Demo
This demo allows you to try out the new AKSampler instrument. Unlike the old "AKSampler", which was just a wrapper around the AUSampler Audio Unit built into macOS and iOS, the new one is built entirely from scratch.
Installation with Cocoapods
Inside either the iOS or macOS directory, depending on which version of the app you're installing, run the command line:
> pod install
Then open the generated workspace file:
> open SamplerDemo.xcworkspace
Demo samples
The demo samples are the same as the ones included in the AudioKit ROMPlayer code repo on GitHub. They have been compressed using WavPack, and a .sfz metadata file has been added, to specify key/velocity mapping and loop points.
Using your own samples
Preparing samples for any sampler instrument is a somewhat complex process. The basic steps are:
- Acquire sample files, either by recording a hardware or software instrument yourself, or purchasing ready-made samples.
- If necessary, edit the samples to your liking.
- If applicable, identify loop-start and end points for each sample file. With commercial samples, this will usually have been done for you.
- (Optional) Create a metadata file to define the mapping of MIDI note and velocity values to specific samples. Commercial samples typically include such metadata files, often in multiple formats.
- There is a step 5 on iOS which appears in the README file in the iOS directory.
Working without a metadata file
Use of a metadata file is optional. Refer to function loadAndMapCompressedSampleFiles() in Conductor.swift to see how you can load individual sample files programmatically, with the necessary key- and velocity-mapping numbers expressed as parameter values the function calls.
If you want to work with uncompressed samples in standard formats such as .wav, .aif, .caf etc., you can call AKSampler's loadAKAudioFile() method, passing in an AKAudioFile object initialized with the URL for your file.
Creating a SFZ metadata file
AKSampler presently uses the open-standard SFZ format for metadata. The demo samples package includes a README with details about how the samples and .sfz metadata file were prepared, and a useful Python3 script to convert ESX24 metadata files (.esx files) to SFZ format.
Note that AKSampler's ability to parse .sfz files is very limited. It won't work on most .sfz files.
In a pinch, you can use a text editor to examine the demo .sfz files (they're just text) and modify them appropriately for your own samples.
Additional information pertaining to iOS appears in the README file in the iOS directory.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

