Open pistacchio opened 3 years ago
Not complaining about your incredible work that you put out for free, but I just want to point out that this project is a wonderful app but a terrible example. A good example would contain the minimum amount of code lines able to compile a AUv3 plugin that prints "Hello world" in a hosting application and maybe plays a single "beep sound" or outputs a single MIDI note just to show how integration works.
I'm just trying to understand how to convert my app into a AUv3 plugin and I'm utterly lost in the hundreds of files of this project and it's frustrating because I know that what I need is lost somewhere deep down the pile of code, files, assets, functionalities that have nothing to do an "Example app".
Also, this "example" is obviously so pointlessly complicated that, I guess, porting it to v5 of AudioKit is a huge amount of work nobody would ever do, effectively making this project useless and obsolete. A proper, minimal example app with just the amount of code to show how to setup a AUv3 plugin would be actually way manageable and maintainable.
I hear you, and I was in your shoes looking at this project back in December. From what I understand, this project is meant to be an example of what a fully-fledged AUv3 might look like. If you're looking for the simplest answer to creating an AUv3, all you need is an existing AudioComponent
to instantiate (whether in a host or in your app). Conveniently, all of the AudioKit v5 nodes already have underlying Audio Components you can use. They're also very similar to AudioKit v4. Here's a migration guide with all the changes described: https://audiokit.io/MigrationGuide/ .
I'll see if I can create a minimal example of an AUv3 with AudioKit. I've already somewhat done this, but there were still some things I was fixing up to make everything work.
Here's an example I just made: emurray2/AUv3HelloWorld. It takes a huge shortcut and is still a work-in-progress, but I'll keep updating it as I learn more. I'm open to feedback others have as well.
Anything you've learned since that you would've liked to have added to your helpful hello world?
Anything you've learned since that you would've liked to have added to your helpful hello world?
Absolutely.
As far as adding anything to that example, I don't think I would. In fact, it may be too simple. What I was doing was getting away with using an audio unit instantiated by AudioKit in the factoryFunction
, which is what the host uses to get the audio unit. I don't know if you're supposed to do this, and it certainly creates some issues auval
isn't too happy about. I'd much rather go with the approach in this app actually, just with only the simple "Hello World" UI.
I found a simple AUv3 iOS plugin example that uses AudioKit 5 (after trying and failing to update this project to AudioKit 5): https://github.com/NickCulbertson/AUv3-Instrument
Not complaining about your incredible work that you put out for free, but I just want to point out that this project is a wonderful app but a terrible example. A good example would contain the minimum amount of code lines able to compile a AUv3 plugin that prints "Hello world" in a hosting application and maybe plays a single "beep sound" or outputs a single MIDI note just to show how integration works.
I'm just trying to understand how to convert my app into a AUv3 plugin and I'm utterly lost in the hundreds of files of this project and it's frustrating because I know that what I need is lost somewhere deep down the pile of code, files, assets, functionalities that have nothing to do an "Example app".
Also, this "example" is obviously so pointlessly complicated that, I guess, porting it to v5 of AudioKit is a huge amount of work nobody would ever do, effectively making this project useless and obsolete. A proper, minimal example app with just the amount of code to show how to setup a AUv3 plugin would be actually way manageable and maintainable.