From 22f96694a96ed9fba169e77bc27d19d00edca083 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Sun, 12 Jul 2026 16:03:29 +0900 Subject: MML構文解析処理を追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mml_composemusic_mcp/synthesizer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mml_composemusic_mcp/synthesizer.py') 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}", -- cgit v1.2.3