Platforms: electronic-drum MIDI input on Windows (and Linux)

未關閉
#53 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@Codewriter90x 已經在處理了。

開始於 2026年10月22日。

  • #62 來自 @Codewriter90x —— 未關閉

評估

難度
4/5
預估耗時
3-5 天
新手友好度
40/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
csharp, unity

研究方向

Start with the existing device boundary in IDrumDeviceDiscovery, RawMidiMessage, and MonotonicMidiTimestampMapper, then compare the macOS implementation in native/HitTheKit.CoreMidi. The work needs a cross-platform MIDI backend for Windows and Linux while preserving the existing mapping and timestamp behavior; verify with the project’s timing tests and a manual USB electronic-kit check on Windows 10/11. Update the support matrix and documentation so they reflect the supported platforms.

由索引模型根據 Issue 內容生成。

描述

enhancement hardware help wanted

Problem

MIDI input exists only on macOS through the native CoreMIDI plug-in (native/HitTheKit.CoreMidi). CoreMidiGameplayInput is wrapped in #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX, so Windows and Linux builds show "CORE MIDI SOLO SU MACOS" and play keyboard-only. Many electronic-drum players use Windows.

Proposal

  • Introduce a platform-neutral MIDI input backend behind the existing device boundary (IDrumDeviceDiscovery, capture source, RawMidiMessage), so mapping, timing and gameplay code stay unchanged.
  • Implement it with a maintained cross-platform library (e.g. an RtMidi-based package for Unity) for Windows and Linux; keep CoreMIDI on macOS or migrate it too if the library is accurate enough.
  • Preserve accurate timestamps (MonotonicMidiTimestampMapper) so hit judgment stays deterministic.

Acceptance criteria

  • A USB electronic kit is discovered and playable on Windows 10/11.
  • Timing judgments match macOS within the existing tolerance (manual check + tests on the core).
  • macOS behaviour does not regress.
  • Docs and the support matrix are updated.

Generated by Claude Code

主要語言
C#
星號
0
分支
0
平均合併
16 小時 9 分鐘
30 天內合併 PR
7

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Codewriter90x/HitTheKit 的其他 Issue

查看 Codewriter90x/HitTheKit 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。