         println(serialCommunicator.switchState)
         
         if serialCommunicator.switchState == true {
-            instrument.play()
+            instrument.playNote(note)
             self.statusLabel.stringValue = "Stop"
         } else {
             instrument.stop()

    
    @IBOutlet var statusLabel: NSTextField!
    
    let instrument = AKInstrument()
    let oscillator = AKFMOscillator()

    override func viewDidLoad() {
        super.viewDidLoad()

    
    func potOneValueChanged(notification: NSNotification){
        println(serialCommunicator.potentiometerOneValue)
        note.frequency.setValue(Float(serialCommunicator.potentiometerOneValue * 4), afterDelay: Float(0))
    }
    
    func potTwoValueChanged(notification: NSNotification){
        note.modulationIndex.setValue(Float(serialCommunicator.potentiometerTwoValue / 4), afterDelay: Float(0))
        println(serialCommunicator.potentiometerTwoValue)
    }
    
