Skip to content

Conversation

unlessgames
Copy link
Collaborator

So it seems like I've missed this when discussing #54 and haven't actually used sample properties much but I feel that this should actually work the same way as the other assignments.

Right now, the outer index overrides the inner one, which is the opposite of what happens with volumes and the rest.

If multiple assigned samples could stack when playing maybe this would make more sense (but there is already stacking syntax so that's not as useful).

Of course, this is a breaking change but I think one that may not have been used much and that arguably makes the notation more useful and consistent. I'd consider the current implementation a bug.

Copy link

Benchmark for e06ca3c

Click to view benchmark
Test Base PR %
Cycle/Generate 48.1±0.69µs 47.8±0.54µs -0.62%
Cycle/Parse 389.7±6.23µs 376.9±5.38µs -3.28%
Rust Phrase/Clone 431.3±5.28ns 434.2±5.05ns +0.67%
Rust Phrase/Create 77.5±1.24µs 76.7±0.77µs -1.03%
Rust Phrase/Run 655.2±5.50µs 669.9±2.49µs +2.24%
Rust Phrase/Seek 137.9±255.22µs 137.0±252.64µs -0.65%
Scripted Phrase/Clone 661.4±6.17ns 661.4±9.76ns 0.00%
Scripted Phrase/Create 989.5±9.24µs 986.3±12.91µs -0.32%
Scripted Phrase/Run 1702.5±9.63µs 1710.5±25.39µs +0.47%
Scripted Phrase/Seek 222.8±451.23µs 221.2±448.75µs -0.72%

Copy link

Benchmark for b9b4bb2

Click to view benchmark
Test Base PR %
Cycle/Generate 49.1±1.15µs 48.2±0.38µs -1.83%
Cycle/Parse 385.2±16.76µs 375.2±6.28µs -2.60%
Rust Phrase/Clone 421.6±6.86ns 427.4±6.50ns +1.38%
Rust Phrase/Create 77.7±1.35µs 75.4±0.90µs -2.96%
Rust Phrase/Run 672.3±5.62µs 658.3±2.54µs -2.08%
Rust Phrase/Seek 138.2±257.50µs 136.8±252.04µs -1.01%
Scripted Phrase/Clone 655.7±8.41ns 662.1±8.43ns +0.98%
Scripted Phrase/Create 990.2±10.49µs 981.1±8.12µs -0.92%
Scripted Phrase/Run 1722.4±22.85µs 1695.2±9.76µs -1.58%
Scripted Phrase/Seek 224.2±455.53µs 254.2±518.89µs +13.38%

@emuell
Copy link
Member

emuell commented Oct 14, 2025

+1 for consistency. Looks fine to me, and I agree that this can be treated as a bug fix.

@unlessgames unlessgames marked this pull request as ready for review October 14, 2025 13:15
@unlessgames unlessgames merged commit 20422db into dev Oct 16, 2025
2 checks passed
@unlessgames unlessgames deleted the fix/cycle-instrument-apply branch October 16, 2025 02:05
Copy link

Benchmark for 81b2f1f

Click to view benchmark
Test Base PR %
Cycle/Generate 51.1±1.68µs 51.6±1.55µs +0.98%
Cycle/Parse 395.9±11.32µs 403.7±10.15µs +1.97%
Rust Phrase/Clone 483.6±14.57ns 469.7±13.57ns -2.87%
Rust Phrase/Create 81.1±1.72µs 80.3±2.05µs -0.99%
Rust Phrase/Run 714.8±13.44µs 708.9±19.72µs -0.83%
Rust Phrase/Seek 160.4±287.75µs 160.7±288.29µs +0.19%
Scripted Phrase/Clone 699.0±15.91ns 683.7±23.57ns -2.19%
Scripted Phrase/Create 1072.5±39.58µs 1027.8±37.32µs -4.17%
Scripted Phrase/Run 1839.0±46.28µs 1826.8±51.88µs -0.66%
Scripted Phrase/Seek 252.5±482.59µs 249.1±500.20µs -1.35%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants