sugarlabs/musicblocks

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

Open

#4,724 opened on Jul 10, 2025

 (9 comments) (0 reactions) (0 assignees)JavaScript (1,678 forks)auto 404
Issue-Bughacktoberfest

Repository metrics

Stars
 (854 stars)
PR merge metrics
 (PR metrics pending)

Description

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.


Contributor guide