def get_bgm_filename(json_data, chart_data, input_foldername): if 'bgm' in json_data: bgm_filename = audio.merge_bgm(json_data['bgm'], input_foldername) else: # Get BGM filename based on game type (XG style) bgm_type = ['_gbk', 'd_bk', 'd__k'][chart_data['header']['game_type']] bgm_filename = "bgm%04d%s.wav" % (json_data['musicid'], bgm_type) return bgm_filename
def _create_bgm(bgm_filename, sound_folder, output_bgm_filename): # Create BGM file render merged_wav_filename = audio.merge_bgm(bgm_filename, sound_folder) wavbintool.parse_wav(merged_wav_filename, output_bgm_filename)