         let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath) as! MusicListCell
         cell.musicNumber = indexPath.row + 1
         cell.musicTitleLabel.text = titles![indexPath.row]
+        cell.state = .stopped
+        
+        if cell.musicNumber == currentNumber {
+            cell.state = .playing
+        }
+        
         return cell
     }
     

        }
        let musicsCell = tableView.cellForRow(at: indexPath) as! MusicListCell
        musicsCell.state = .playing
    }

}

    var indicatorView: ESTMusicIndicatorView!
    var titles: [String]?
    var startAnimating: Bool = false
    var currentNumber = 0
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        title = "Music indicator demo"
        titles = ["千尋のワルツ", "You Are My Sunshine", "Valder Fields", "Five Hundred Miles", "Old Memory", "A Little Story", "夢のしずく", "空の欠片", "旅立ちの日に…", "letter song", "Five Hundred Miles", "Old Memory", "A Little Story", "夢のしずく", "空の欠片", "旅立ちの日に…", "letter song"]
        tableView.tableFooterView = UIView()
    }
    
