/** * Loops on tracks to read * * @param Song $song * @param int $count * @param array $channels Current array of channels */ private function readTracks(Song $song, $count, array $channels) { for ($number = 1; $number <= $count; $number++) { $song->addTrack($this->factory('GuitarPro3Track')->readTrack($song, $number, $channels)); } }