ExpressionContext equality ignores the other velocity override
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 45/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di musescore/muse_framework
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
musescore/muse_framework#284 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Untranslated textsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
musescore/muse_framework#110 ·
I maintainer di solito rispondono entro 1 giorno
-
The ColorPicker component does not indicate whether you picked a color with alpha.Forse già presa @woldaker l’ha presa 13 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 10/100
musescore/muse_framework#434 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
musescore/muse_framework#417 · 8 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
musescore/muse_framework#405 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di musescore/muse_framework
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
compiler-explorer/compiler-explorer#9738 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno