       engine.connect(player, to: mixer, format: format)
       longShotPlayers += [player]
     }
-    
 
     engine.connect(mixer, to: eq, format: format)
     engine.connect(eq, to: delay, format: format)

      // 変化量
      let variation = Float(prevDeg - current_deg)
      if 0 < variation {
        longShotPlayers[0].volume = abs(variation)
        longShotPlayers[1].volume = 0
      }
      else {
        longShotPlayers[0].volume = 0
        longShotPlayers[1].volume = abs(variation)
      }
    default:
      NSLog("Error")

        }
      }
      else {
        setTonePlayerType(PlayerType.OneShot)
        
        // TODO 重複を整理
        if isLeft {
          // Left
          var i = SLIT_COUNT
          while 0<i {
            let num = NSString(format: "%02d", i)
            let url = NSBundle.mainBundle().pathForResource("tones/\(toneDir!)/\(num)", ofType: "wav")!
            let audioFile = AVAudioFile(forReading: NSURL(fileURLWithPath: url), error: nil)
            audioFiles += [audioFile]
            if format == nil {
              format = audioFile.processingFormat
            }
            i--
          }
        }
        else {
          // Right
          for i in 1..<SLIT_COUNT+1 {
            let num = NSString(format: "%02d", i)
            let url = NSBundle.mainBundle().pathForResource("tones/\(toneDir!)/\(num)", ofType: "wav")!
            let audioFile = AVAudioFile(forReading: NSURL(fileURLWithPath: url), error: nil)
            audioFiles += [audioFile]
            if format == nil {
              format = audioFile.processingFormat
            }
          }
        }
      }
