Audiokit create a blank sequence - audiokit

I'm new to AudioKit (and Mac programming in general) but hopefully what I want to do is quite simple - the cookbook and documentation allude to the way forward, but don't give me exactly what I'm after.
I want to create a Midi Sequence from scratch and then play and save it. All the examples I've seen load in a file first and then play it, and the one example I saw which did what I wanted was full of deprecated code :(
If anyone could provide some code or point me in the direction of some working code (latest build 27/05/22) I would be so grateful.
Thanks in advance,
Jes

Related

Choosing a sampler

over the past week or so I’ve been trying to find a workflow for original sample generation to eventually be used in an audiokit app, obviously at some point Im going to have to decide which of AudioKits sampler classes best fits my needs and I have a few
Questions about what I have found so far :
I won’t be getting Logic Pro anytime soon so I think EXS24 is not an option right now, as a side question - are there any other
Apps which can generate .esx24 files?
The MIDISampler in AudioKit has a method .loadSoundFont( - is there a documented example of this? (couldn’t find any in cookbook)
I was able to get this working with .sf2 files but I want to make sure Im doing it properly.
There is a Sampler class in DunneAudioKit - I was also able to establish a workflow in this using .sfz files - this seems pretty good
Currently I am deliberating between the MIDISampler in AudioKit and the Sampler in DunneAudioKit
Are there any other options in the audiokit framework(s) that I should consider? Also the file formats .sf2 and .sfz I am guessing are probably going to stay in use for some time - has anybody heard about either of those two being deprecated or changed in a major way?
GarageBand can make AUPreset files and MainStage can make EXS24 files suitable for AppleSampler. I've not tried the DunneSampler but I believe that is the one AudioKit Pro uses for several of their commercial apps. There isn't an example in the Cookbook for SF2 in AppleSampler but it should be very similar. SF2 has been around for a very long time and I imagine SFZ will be too.

SwiftUi ARKit measurements

Sorry I am pretty inexperienced with ARKit. I am working on an app and it will have more features later but the first step would basically be recreating the measure app that is included with iOS. I have looked at the documentation that Apple gives and most of it is for stuff like face tracking, object detection, or image tracking. I wasn't sure exactly where to start. The rest of the existing code I have now is written in SwiftUI if that matters. Thank you!
Understand that it can be quite confusing in the beginning. I would recommend to walk throught the toruial at raywenderlich.com. This toturial from Codestars on Youtube is also very good if you like to listen and watch instead of reading. Both talks go throught a lot of important parts of ARKit so I really recomend it. After that you problably have a create understanding and you clould watch Apples WWDC2019 talk What's new in ARKit 3.
Hope I understood your question correctly and please reach out if you have any questions or other concerns.

AudioKit: AKSampler: Simplest way to add multiple samples

I understand so far that AKSampler was recently rewritten and this GitHub project seems to be the defacto guide on the new AKSampler. What I can gather is a move toward SFZ format. I am new to the sampling world but in my application I only need a handful of samples recorded from my piano in order for it to work. As I have looked around with existing SFZ formats and samples, I do not need all of the complexity and features that SFZ provides.
I am currently using AKSampler with a single piano sample which works perfectly, however it gets a bit weird once I play anything too far from the original source, so I just want to fill in the gaps with a few other samples (I only need to play around an octave and a half with my current app).
I do see according to the Docs a couple methods buildSimpleKeyMap() and buildKeyMap() however there is no implementation currently.
Do I have any additional options? I know that EXS format has been deprecated, as well as SoundFont. Is the only way to map multiple samples to AKSampler currently using SFZ?
Thanks for all your help <3
Edit: This readme on the AKSampler GitHub page provides the breakdown for samples. I still only see SFZ being considered. If anyone else is lost with my question or needs a reference, this seems to be the best resource. If the current AKSampler only offers SFZ as the primary way to map multiple samples, so be it, however it does look very challenging, I'm really hoping there is some simple middle ground between only using a single sample for the AKSampler vs. a full bore SFZ file.
Edit 2: Getting a solution to this, will update as soon as possible, thanks for your patience!
I have provided a simple explainer and sample file in the AudioKit docs. Hope this helps new users of AudioKit!

Swift OpenGL ES app template?

I've been looking at a lot of tutorials trying to find a way to make an OpenGL app written in Swift, but I can't seem to find a good template to use.
Most tutorials suggest using a blank one, but then I have to write a ton of files (such as AppDelegate) all from scratch, which I have no clue how to do.
I tried all the links on this, but the first one doesn't even work and the second one is in Objective-C.
Anyone have anything that might help me?
I ended up figuring it out myself by using GLKit and smashing together old tutorials. Since OpenGL is just a bunch of functions, all you really need to do is find the right parameters for your programming language.
For anyone else trying to do this, there's some fairly useful resources here and here, and it's also useful to shove in some ported code from Ray Wenderlich if you get stuck. Good luck!

Lua script in Aegisub? I don't understand it

I'm trying to make vertical karaoke kanji with furigana in Aegisub which uses lua script. I didn't write the code as I state here, I'm not advanced enough to write codes yet, but I can edit the effects at least. - http://forum.aegisub.org/viewtopic.php?f=5&t=66245&p=90280#p90280
My file and other needed info regarding my topic can be found there as well.
I'm very confused at the moment as I can't figure out how to make the code so that the subtitles don't spin and keep their current effect... Also, the code that the person gave me, doesn't work. Any help is appreciated. Thank you!

Resources