     public init(node: AKNode,
                 file: AVAudioFile? = AKNodeRecorder.createTempFile(),
                 bus: Int = 0) throws {
+        self.node = node
         super.init()
 
         guard let file = file else {

            let delay = UInt32(recordBufferDuration * 1_000_000)
            usleep(delay)
        }
        node?.avAudioUnitOrNode.removeTap(onBus: bus)
    }

    /// Reset the AVAudioFile to clear previous recordings

    public func record() throws {
        if isRecording == true {
            AKLog("Warning: already recording")
            return
        }

