   
   var updateRotationFlag = false
   
-  var devices = NSMutableDictionary()
+  var devices = [String: [String: String]]()
   var colors = [String: [String: Float]]()
   
   

    NSLog("uuid:\(uuid)")
    uuidLabel.text = "uuid:\(uuid)"
    
    let device: NSMutableDictionary
    if devices[uuid] != nil {
      device = devices[uuid] as! NSMutableDictionary
    }
    else {
      NSLog("Not found device configuration")
      device = devices[devices.allKeys.first!] as! NSMutableDictionary
    }
    
    if let konashi = device.value(forKey: "konashi") as? String {
      konashiBtnDefaultLabel = "Find Konashi (\(konashi))"
      konashiBtn.setTitle(konashiBtnDefaultLabel, for: UIControlState())
    }

    // AudioPlayerの準備
    // OneShot
    var toneDir: String = toneDirs.first!
    toneDir = (device?["tone"])!
    
    let format: AVAudioFormat = initPlayers(toneDir as String)

