Questions tagged [akoperationgenerator]

5 questions
4
votes
1 answer

AudioKit: When to use AKOperationGenerator or AKOscillator?

When I want to build an Oscillator with AudioKit there are different ways to go. For example you can create an AKOperation within an AKOperationGenerator like var osc = AKOperationGenerator { parameters in …
headkit
  • 3,307
  • 4
  • 53
  • 99
3
votes
0 answers

AudioKit: How to build a VCO with an invertable envelope on its pitch?

I can easily build a VCO with an envelope on its frequency like let generator = AKOperationGenerator { parameters in let oscillator = AKOperation.squareWave( frequency: PitchEnvVCO.frequency.triggeredWithEnvelope( trigger:…
headkit
  • 3,307
  • 4
  • 53
  • 99
2
votes
1 answer

AudioKit: How to toggle between two different AKOperationGenerator-Oscillators

I want to build an Oscillator with mode-switch between square and triangle waveform, using AKOperation.squareWave() and AKOperation.triangleWave(). When I try to build it like the following, it does not work. Whats wrong? thnx! import…
headkit
  • 3,307
  • 4
  • 53
  • 99
2
votes
0 answers

AudioKit: How can I sync an AKOperationGenerator to the frequency of an other Oscillator (oscillator-sync)?

I am new to AudioKit. I want to build a Synth with two Oscillators where one is synced by the other, means every wavelength of OSC1 (every second zero-crossing) the OSC2 is restarted (phase set to 0). Is this possible with AKOperation oscillators?…
headkit
  • 3,307
  • 4
  • 53
  • 99
2
votes
1 answer

Swift AudioKit: How to build an VCO who's pitch is controlled by an AR-envelope?

I am new to AudioKit. I want to build an VCO who's pitch is controlled by a re-triggerable A(H)R-envelope (with adjustable attenuation) and I am looking for the best or most common way to do it. After some research (and wrong directions) it looks…
headkit
  • 3,307
  • 4
  • 53
  • 99