sugarlabs/musicblocks

Custom Pitch Block turns into Regular Pitch Block + No Pitch Preview

Aperta

#4724 aperta il 10 lug 2025

 (9 commenti) (0 reazioni) (0 assegnatari)JavaScript (1678 fork)auto 404
Issue-Bughacktoberfest

Metriche repository

Star
 (854 stelle)
Metriche merge PR
 (Merge medio 9g 3h) (182 PR mergiate in 30 g)

Descrizione

Description

There are two issues related to the Custom Pitch Block

  1. Custom Pitch Blocks are sometimes replaced by Regular Pitch Blocks without user intent.
  2. No pitch preview sound plays when clicking on a Custom Pitch Block, unlike other pitch blocks.

Related:

Expected Behavior

  • Custom Pitch Blocks should retain their type and not convert into Regular Pitch Blocks.
  • Clicking on a Custom Pitch Block should play a preview sound, just like Regular Pitch Blocks.

Screenshots

https://github.com/user-attachments/assets/1ac8c548-b210-4f42-a0eb-114512364629


How to Reproduce

  1. Go to https://sugarlabs.github.io/musicblocks/
  2. Create multiple custom temperaments.
  3. Insert a Custom Pitch Block into the workspace.
  4. Interact with the block (drag, right-click, move between views, etc.).
  5. Observe that it may get replaced by a Regular Pitch Block.
  6. Click on the Custom Pitch Block — no pitch preview plays.

Console log Errors:


Environment:

  • Operating System: [e.g., macOS Ventura 13.5]
  • Browser (if applicable): [e.g., Chrome 124.0.6367.91]
  • Version of Software/Project: Latest main branch

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Thank you for contributing to our project! We appreciate your help in improving it.

📚 See contributing instructions.
🙋🏾🙋🏼 Questions: Community Matrix Server.


Guida contributor