fix midi-clock-stability#1
Open
plantssystem wants to merge 2 commits into
Open
Conversation
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.
KOSMOS2 v2.0.2 — MIDI Clock 完全安定化アップデート
✨ 概要
v2.0.2 では、KOSMOS2 の内部構造を大幅に刷新し、
MIDI Clock を Core1 側へ完全移行しました。
これにより、UI 負荷や TouchOSC、LCD 描画の影響を一切受けない
ハードウェア級の超安定クロックを実現しています。
🚀 新機能
I2S と同じ高速ループで Clock を生成するため、揺れゼロの 24ppqn を出力。
80 / 100 / 140 / 240 など、stepBPM の変化にリアルタイムで同期。
UI 側のテンポ変更が即座に Clock に反映される構造に。
🛠 改良点
Core0 の負荷で Clock が止まる現象を根本から排除。
USB MIDI バッファが詰まる原因を除去し、安定動作を実現。
Core0 側の旧 Clock コードをすべて削除し、一本化。
🐛 バグ修正
🔧 内部変更
getClockIntervalMicros()を Core0 に追加し、BPM 計算を安全に分離。updateMidiClock_Core1()を Core1 に追加し、Clock を安定生成。usb_midiをグローバル化し、両コアからアクセス可能に。🎹 結果
KOSMOS2 は “外部機材を正確にドライブできるシーケンサ” に進化しました。
DAW・ハードシンセ・リズムマシンとの同期が、これまで以上に強固で安定します。