 
         if up > max {
             max = up
-            type = .UpArrow
+            pressType = .UpArrow
         }
         if down > max {
             max = down
-            type = .DownArrow
+            pressType = .DownArrow
         }
         if left > max {
             max = left
-            type = .LeftArrow
+            pressType = .LeftArrow
         }
         if right > max {
             max = right
-            type = .RightArrow
+            pressType = .RightArrow
         }
 
         if max > threshold {
-            self.buttonPressed(type)
+            self.playNote(pressType)
         }
     }
 
     func handleButtonA(button: GCControllerButtonInput) {
         if button.pressed && buttonXPending {
             buttonXPending = false
-            buttonPressed(.Menu)
+            playNote(.Menu)
         } else if button.pressed {
             buttonAPending = true
             eventDate = NSDate()


    override func completePendingUpdate() {
        if buttonAPending && buttonXPending {
            buttonPressed(.Menu)
            buttonAPending = false
            buttonXPending = false
        } else if buttonAPending {
            buttonPressed(.Select)
            buttonAPending = false
        } else if buttonXPending {
            buttonPressed(.PlayPause)
            buttonXPending = false
        }
    }

    func handleButtonX(button: GCControllerButtonInput) {
        if button.pressed && buttonAPending {
            buttonAPending = false
            playNote(.Menu)
        } else if button.pressed {
            buttonXPending = true
            eventDate = NSDate()
        }
    }

    func playNote(pressType: UIPressType) {
        if let frequency = frequencies[pressType] {
            synthNode.frequency = upAnOctave ? frequency * octaveMultiplier : frequency
            synthNode.startPlaying()
