[BGM] forgot to move this earlier

This commit is contained in:
Luke Hubmayer-Werner 2024-07-27 22:50:29 +09:30
parent c2bd6a8abd
commit b0d7a60e53
2 changed files with 11 additions and 11 deletions

View File

@ -109,6 +109,17 @@ func queue_prerender_bgm(bgm_id: int) -> void:
audio_renderer.push_bytes(self.bgm_tex_bytes[bgm_id], self.bgm_target_times[bgm_id], bgm_key, false)
func save_bgm_disassembly(bgm_id: int, filename: String = '') -> void:
if not filename:
filename = 'output/BGM%02d disassembly.txt' % bgm_id
var disassembly: PoolStringArray = MusicRenderer.disassemble_bgm(MusicManager.bgm_tracksets[bgm_id], RomLoader.snes_data.bgm_instrument_indices[bgm_id])
var file := File.new()
file.open(filename, File.WRITE)
for line in disassembly:
file.store_line(line)
file.close()
func render_all_bgm(bgms_to_render: int = 70) -> void:
audio_renderer.initialize_instrument_texture()
for bgm_id in bgms_to_render:

View File

@ -148,17 +148,6 @@ func get_ms(restart: bool = false) -> int:
return Time.get_ticks_msec() - self.load_start_tick
func save_bgm_disassembly(bgm_id: int, filename: String = '') -> void:
if not filename:
filename = 'output/BGM%02d disassembly.txt' % bgm_id
var disassembly: PoolStringArray = MusicRenderer.disassemble_bgm(MusicManager.bgm_tracksets[bgm_id], RomLoader.snes_data.bgm_instrument_indices[bgm_id])
var file := File.new()
file.open(filename, File.WRITE)
for line in disassembly:
file.store_line(line)
file.close()
func get_shader_test_pattern() -> PoolByteArray:
var midi_events_bytes := StreamPeerBuffer.new()
var midi_events_bytes2 := StreamPeerBuffer.new()