音乐合成插件:采样率参数名称精确化

This commit is contained in:
2026-07-26 20:20:01 +08:00
parent 6a0d21d16c
commit de2c39969a
2 changed files with 5 additions and 5 deletions
@@ -74,7 +74,7 @@ class PcmConversionConfig(PluginConfig):
"""
没看懂这个参数的意思
"""
sample_rate: int = 44100
target_sample_rate: int = 44100
"""
目标输出的采样率
"""
@@ -122,7 +122,7 @@ class NoteDataConvert2PcmPlugin(MusicOutputPluginBase):
resource_folder=config.assets_path,
synthesis_mode=config.synthesis_mode,
overlay_mode=config.overlay_mode,
sample_rate=config.sample_rate,
target_sample_rate=config.target_sample_rate,
value_get_method=config.value_get_method,
pitch_accuracy_decimals=config.pitch_accuracy_decimals,
music_volume=config.global_volume,
@@ -141,7 +141,7 @@ class NoteDataConvert2PcmPlugin(MusicOutputPluginBase):
resource_folder=config.assets_path,
synthesis_mode=config.synthesis_mode,
overlay_mode=config.overlay_mode,
sample_rate=config.sample_rate,
target_sample_rate=config.target_sample_rate,
value_get_method=config.value_get_method,
pitch_accuracy_decimals=config.pitch_accuracy_decimals,
music_volume=config.global_volume,
@@ -91,7 +91,7 @@ class MusicPreview:
resource_folder: Path,
synthesis_mode: Literal[0, 1, 2, 3, 4] = 1,
overlay_mode: Literal[1, 2] = 1,
sample_rate: int = 44100,
target_sample_rate: int = 44100,
value_get_method: Literal[0, 1] = 1,
pitch_accuracy_decimals: int = 0,
music_volume: float = 1,
@@ -100,7 +100,7 @@ class MusicPreview:
self.mode = synthesis_mode
self.overlay_mode_c = overlay_mode
self.output_sample_rate = sample_rate
self.output_sample_rate = target_sample_rate
self.get_value_method = value_get_method
self.resources_path = resource_folder