sugarlabs/musicblocks

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

Aberta

#4.724 aberto em 10 de jul. de 2025

 (9 comentários) (0 reação) (0 responsável)JavaScript (1.678 forks)auto 404
Issue-Bughacktoberfest

Métricas do repositório

Stars
 (854 estrelas)
Métricas de merge de PR
 (Mesclagem média 9d 3h) (182 fundiu PRs em 30d)

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.


Guia do colaborador