Translated to English#3
Open
triple-octopus wants to merge 2 commits into
Open
Conversation
Translated DSRE.py
Rei3100
referenced
this pull request
in Rei3100/dse
May 9, 2026
… envelope, M/S balance, path safety caps 凍結ゾーン (residual harmonic loop / harmonic_exciter / post_hp / input_gate) は abf8260 ベースラインから一切不変。中低域 6 path にのみ構造的改善を適用。 採用 5 案 (Phase 2 で adopted、G=input_gate soft 化は凍結ゾーン違反のため自己修正で除外): - A: body_warmth / low_body_harmonic の SAT (tanh 系) を純 quadratic に置換。 旧式 tanh(g*s + g*s²*k)/g - s は 2nd 主体狙いだったが 3rd/5th 奇数倍音が 混入し、両 path 重畳で 60-400Hz 帯歪み係数の二重加算 + 中低域 dirty 化を 起こしていた (Phase 1 #3, #4)。(s² - mean(s²)) * k で純 2nd 単独生成、 3rd 以上の混入をゼロ化。スモーク検証: 300Hz 入力で h2=754 / h3=0.01 / h5=0.001。 DC 除去でフェードイン/アウトの sub-Hz envelope 漏れも防止。 - C: sub_tightness / mid_transient_def の percentile_99 を 5 秒移動窓化。 ファイル全長 percentile_99 は長尺曲後半の強い transient で前半飽和・後半 抑制を起こしていた (Phase 1 #7, #8)。50% overlap 移動窓 + 線形補間で局所 loud level に追従。短尺 (<10s) はフォールバックで従来挙動。 - D: stereo_definition_mid + vocal_presence_mid 合成の M/S 比率正規化。 両 path 独立加算で Side+Mid 同時増強→トータルラウドネス +1.5-2dB 盛りと 低相関ステレオ素材での左右ピンポン化リスク (Phase 1 #5, #6)。入力素材の 自然な Side/Mid RMS 比に対し delta 比が 1.5 倍を超えた場合のみ d_stereo 線形 scale-down。Mono 入力は no-op。 - E + I: 中低域 6 path のみに RMS / peak cap (uniform scale-down)。 通常素材では no-op、異常素材でのみ scale-down。uniform scaling のため per-sample 歪み非生成、preringing 非生成。Phase 1 #6 (累積 ラウドネス 盛り) と #10 (path 間相関未考慮の無重み加算) の構造的安全弁。 d_res / d_exc は abf8260 凍結ゾーン直接含有のため対象外 (cap でも縮小すれば高域出力が変わるため変更禁止)。 検証: - selftest verdict=EQUIV (sosfiltfilt_equiv / determinism Lv1/5/10 / Lv1vsLv10 IDENTICAL / FLAC PCM_24 roundtrip 全 pass) - スモークテスト: zansei_impl 出力 finite、peak<1.0、diff_rms=0.017 (有意な 改変、no-op ではない) - A/B 倍音検証: body_warmth h2=754 / h3=0.010 (旧 tanh 系では h3≈k*g²*s³/3 が 混入していた箇所がゼロ化) - 移動 p99 検証: 振幅 0.1/1.0/0.3 のブロック信号で各ブロックの局所値を正しく追従 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.