Example #1
0
 def init_track_data(self, track_name):
     self.current_track_name = track_name
     self.bands = Bands(track_name, track_manager.get_music_folder_path(), self.bands)
     self.track_sound = SoundLoader.load(self.get_current_track_path())
     self.sound_data = SoundData(self.get_current_track_path(), self.bands)
     self.dance = Dance(self.sound_data, self.play_track, self.on_stop_dancing)
     self.settings_group.reload(self.bands)
Example #2
0
 def get_current_track_path(self):
     if self.current_track_name:
         return os.path.join(track_manager.get_music_folder_path(), self.current_track_name)
     return None