ExpressionContext equality ignores the other velocity override

オープン
#381 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@0xMashiro がすでに取り組んでいます。

2026年10月24日 から。

  • #382 @0xMashiro による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
cpp
領域
backend

調査の方向性

The defect is in ExpressionContext::operator== in mpe/events.h, where velocityOverride is compared with itself instead of the other context's member. Read that operator, confirm the self-comparison, and add cases covering present/absent overrides in both operand orders to the native muse_mpe_test target. However, a linked pull request (#382) already proposes the fix, so a newcomer should coordinate there or pick a different issue rather than duplicate the work.

索引モデルが issue の本文から書いたものです。

説明

On muse_framework main at 3e0eae57a9aa3dedb0a1e1d05d3ebf0cbc1b5e36, ExpressionContext::operator== compares velocityOverride with itself instead of the other context's override.

Minimal native reproduction (mpe/events.h):

muse::mpe::ExpressionContext first;
muse::mpe::ExpressionContext second;
first.velocityOverride = 0.5f;
second.velocityOverride = 0.75f;
EXPECT_FALSE(first == second); // Fails: returns true.

Expected: otherwise identical contexts with different override values compare unequal. A present override and an absent override should also compare unequal, in both operand orders. Equal values and two absent overrides should compare equal.

A regression added to the native muse_mpe_test target fails on the unmodified production header (four failed assertions) and passes after replacing the right operand with other.velocityOverride. The full MPE suite then passes (16 tests, zero failures). Tested on Linux with GCC 14 and Qt 6.10.2.

This report establishes an equality defect only; it does not claim a reproduced audible playback problem.

The self-comparison was introduced in 4beac5fc68c6d2490e2f9eba41eb656726d123cd. Searches for ExpressionContext, velocityOverride, and velocity/equality in the framework and Studio trackers found no matching equality fix. Related framework PR #221 concerns forwarding overrides to MuseSampler, a separate operation.

AI assistance: OpenAI Codex assisted with investigation, the patch, regression tests, and this report.

主要言語
C++
スター
14
フォーク
79
平均マージ
1日 14時間
マージ済み PR(30日)
43

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

musescore/muse_framework のほかの issue

musescore/muse_framework の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。