Filter Effects App
The process for creating the filter is very similar, but even so, its worth going through the process a second time to really solidify your understanding. It will be described here in slightly less detail.
The project will just create a few sliders for some standard AudioKit effects.
Create a single view application called Filter Effects
Set up the effects
The AudioKit code here is a little bit longer than for the synth, mainly so we can offer quite a few effects:
It’s worth stating that this code will not run in the simulator because it requires an audio input device, which the simulator is not currently able to emulate. I can’t imagine that this won’t ever be fixed by Apple, but for now, let’s move on.
Set up the User Interface
While this may not be the case once the app is used within Audiobus, to run the app before we integrate Audiobus, add the following to the Info.plist: “Privacy - Microphone Usage Description” for which the string can not be blank (Xcode won’t complain, but iTunes Connect will when you prepare the app for the App Store)
Add this UI Set up code to create the UI:
This should all work on your device at this point. And now, we just need to do the configuration song and dance. :)
This is the same process as it was for the Sender Synth, except of course, for the name of the app.
Add the Audiobus Files
This is the same as for a sender app, except you will want to name the bridging header according to the new app name: “FilterEffects-BridgingHeader.h”
This is also the same as the Project Settings section for the Sender Synth. For the URLs use: io.audiokit.filtereffects and for the URL scheme use: “FilterEffects-1.0.audiobus”.
Once that’s done here are the steps for the filter port:
Open your app target screen within Xcode by selecting your project entry at the top of Xcode’s Project Navigator, and selecting your app from under the “TARGETS” heading.
Select the “Info” tab.
If you don’t already have an “AudioComponents” group, then under the “Custom iOS Target Properties” group, right-click and select “Add Row”, then name it “AudioComponents”. Set the type to “Array” in the second column.
Open up the “AudioComponents” group by clicking on the disclosure triangle, then right-click on “AudioComponents” and select “Add Row”. Set the type of the row in the second column to “Dictionary”. Now make sure the new row is selected, and open up the new group using its disclosure triangle.
Create five different new rows, by pressing Enter to create a new row and editing its properties:
“manufacturer” (of type String): This is a four letter code that you should make up for yourself. For us at AudioKit, we use “AuKt”, but you will need to have your own.
“type” (of type String): set this to “aurx”, which means a “Remote Effect” unit.
“subtype” (of type String): set this to “filx”, which stands for “Filter Example”.
“name” (of type String): set this to “AudioKit: Filter”
“version” (of type Number): set this to an integer. “1” is a good place to start.
In the end your Info.plist should now have the following:
Register your App with Audiobus
Again, this is similar to the Sender Synth registration. Make sure you get a permanent registration with Audiobus when you’re ready to submit to the App Store.
Conclusion (for Filter Apps)
Even easier the second time through right?