         ) { multiplier in
             osc.detuningMultiplier = multiplier
         })
-
-        keyboard = AKKeyboardView(width: 440, height: 100)
-        keyboard.polyphonicMode = false
-        keyboard.delegate = self
-        addSubview(keyboard)
-
-        addSubview(AKButton(title: "Go Polyphonic") {
-            self.keyboard.polyphonicMode = !self.keyboard.polyphonicMode
-            if self.keyboard.polyphonicMode {
-                return "Go Monophonic"
-            } else {
-                return "Go Polyphonic"
-            }
-        })
     }
 
     func noteOn(note: MIDINoteNumber) {

AudioKit.start(withPeriodicFunctions: sequencerFunction)
sequencerFunction.start()

class PlaygroundView: AKPlaygroundView, AKKeyboardDelegate {

    var keyboard: AKKeyboardView!
    
    override func setup() {
        addTitle("Microtonal Morphing Oscillator")


    // send note on for notes in the present
    let presentNN = nnCalc(performanceCounter)
    let frequency = AKPolyphonicNode.tuningTable.frequency(forNoteNumber: presentNN)
    osc.play(noteNumber: presentNN, velocity: 127, frequency: frequency)

    performanceCounter += 1
