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 摘要。