An App I'm working on is kinda like an appear-as-you-touch piano.
Using AudioKit and the gesture recognizing I have my app set up to:
- make a new button appear when the user touches the screen
(Essentially, I have my ViewController.swift which makes new CircularKeys every time the user taps.)
- turn on an oscillator and get it going in the ViewController via a UIButton
Now I'm trying to get some more dynamic functionality: I want to start an oscillator for each new key that exists on the screen, and I'm wondering how I can keep track of them. AudioKit wants to know all the outputs before it will feed them out with AudioKit.start() and I am thinking about using NSMutableSet to keep track of the oscillators.
Basically: I want to couple together Oscillators and CircularKeys. What are some design strategies that play nice with iOS philosophy?