Make lattice nodes clickable

Open
#970 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Domain
frontend

Research direction

The issue names no files, so start by locating the component that renders the 2D lattice projection and the code path that plays a pitch for a scale degree; the two need to be wired together. Build the Voronoi cells from the same projected node coordinates the lattice draws, then attach pointer handlers to those cells rather than to the visible nodes. Confirm the pointer-to-cell mapping matches what is rendered, including at the edges of the projection, and check that clicking an already-sounding node retriggers cleanly. Done means a click or touch anywhere inside a cell plays that node's pitch, verified in the running app.

Written by the indexing model from the issue text.

Description

Create an invisible Voronoi diagram around the 2D projection of the lattice and make the Voronoi cells clickable/touchable to make sound.

Dominant language
Vue
Stars
123
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from xenharmonic-devs/scale-workshop

All issues in xenharmonic-devs/scale-workshop

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.