summaryrefslogtreecommitdiff
path: root/src/mml_composemusic_mcp/synthesizer.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mml_composemusic_mcp/synthesizer.py')
-rw-r--r--src/mml_composemusic_mcp/synthesizer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mml_composemusic_mcp/synthesizer.py b/src/mml_composemusic_mcp/synthesizer.py
index 6d9ffe2..b314aa5 100644
--- a/src/mml_composemusic_mcp/synthesizer.py
+++ b/src/mml_composemusic_mcp/synthesizer.py
@@ -10,6 +10,7 @@ from .ir import (
DutyEvent,
ErrorCode,
ErrorDetail,
+ ErrorPhase,
NoteEvent,
NoteSequence,
RestEvent,
@@ -262,7 +263,8 @@ def write_wav(path: Path, wave_data: np.ndarray, sample_rate: int) -> list[Error
except Exception as exc:
errors.append(
ErrorDetail(
- code=ErrorCode.SYSTEM_WAV_WRITE_FAILED,
+ code=ErrorCode.RUNTIME_WAV_WRITE_FAILED,
+ phase=ErrorPhase.RUNTIME,
line=0,
column=0,
message=f"WAVファイルの出力に失敗しました: {exc}",