ExpressionContext equality ignores the other velocity override

Aperta
#381 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@0xMashiro ci sta già lavorando.

Dal 24/10/2026.

  • #382 di @0xMashiro — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
14
Fork
79
Merge medio
1g 14h
PR unite (30g)
43

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di musescore/muse_framework

Tutte le issue di musescore/muse_framework

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.