     ]
     
     // AudioPlayerの準備
-    for i in 0..<slits_count {
+    for i in 0..<SLIT_COUNT {
       let sound_data = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("Blue Ballad - Pattern 2 - 96 - \(i)", ofType: "wav")!)
       let player = AVAudioPlayer(contentsOfURL: sound_data, error: nil)
       player.prepareToPlay()

    var result: Array<Int> = [] // range内にあるslit
    var rest: Array<Int> = [] // range外にあるslit
    
    for i in 0..<slits_count {
      let slit = slit_degs[i]
      if _min <= slit && slit <= _max {
        result += [i]
      }

        // Konashi通信
        
        // slit位置に応じて色を決定
        let h = CGFloat(Float(slit_index)/Float(SLIT_COUNT))
        let slitColor: UIColor = UIColor(hue: h, saturation: 1.0, brightness: 1.0, alpha: 1.0)
        // RGB値を3桁ゼロ埋めで取得
        let r = NSString(format: "%03d", Int(slitColor.getRed()))
