Skip to main content
edited body
Source Link
Robert Harvey
  • 200.7k
  • 55
  • 470
  • 683

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

nowNow 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?

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?

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?

Source Link
sova
  • 1.4k
  • 3
  • 14
  • 17

multitouch application, creating custom UI elements, and stacking oscillators with audio kit

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?