     
     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)
     }
     

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

    override func viewDidLoad() {
        super.viewDidLoad()

        //            println("\(i++). \(port.name)")
        //        }
        
        AKOrchestra.addInstrument(instrument)
        AKOrchestra.start()
        
        
        //Receive notifications
        NSNotificationCenter.defaultCenter().addObserver(self, selector: "potOneValueChanged:", name:"PotentiometerOneChanged", object: nil)

        NSNotificationCenter.defaultCenter().addObserver(self, selector: "potTwoValueChanged:", name:"PotentiometerTwoChanged", object: nil)
