 
 class ViewController: UIViewController {
 
+    var micMixer: AKMixer!
     var recorder: AKNodeRecorder!
     var player: AKAudioPlayer!
     var tape: AKAudioFile!
     var micBooster: AKBooster!
     var moogLadder: AKMoogLadder!
     var delay: AKDelay!
+    var mainMixer: AKMixer!
+    
+    let mic = AKMicrophone()
 
     var state = State.readyToRecord
 


        moogLadder = AKMoogLadder(player)

        let mainMixer = AKMixer(moogLadder, micBooster)

        AudioKit.output = mainMixer
        AudioKit.start()

        AKSettings.defaultToSpeaker = true

        // Patching
        inputPlot.node = mic
        micMixer = AKMixer(mic)
        micBooster = AKBooster(micMixer)

        // Will set the level of microphone monitoring
