Skip to content

Instantly share code, notes, and snippets.

View depth42's full-sized avatar

Frank Illenberger depth42

  • ProjectWizards
  • Frankfurt, Germany
View GitHub Profile
@larsaugustin
larsaugustin / Synth.swift
Created May 23, 2020 14:04
A simple synthesizer class in Swift
class Synthesizer {
// MARK: - Variables
var audioEngine: AVAudioEngine!
var sourceNode: AVAudioSourceNode!
var time = Float.zero
var frequencyRamp = Float.zero
var currentFrequency: Float = 20 {
didSet {