Skip to content

EN Technical Guide

Pouya Hosseini edited this page Nov 12, 2026 · 1 revision

← Wiki Home · English | فارسی · Open application


Technical guide

Persian Music Scales is served as a browser application from GitHub Pages. Its visible interface, scale models, musical reference material, audio functions, and Progressive Web App assets are held in the main repository.

Primary project resources

Resource Purpose
index.html Main scale explorer entry page
src/index.js Main explorer behavior
src/audio-analyzer.js Main-thread analyzer interface and controls
src/audio-analyzer.worker.js Background audio-analysis calculations
src/key-signature.js Calculated staff-notation display
src/modal-roles.js Annotated modal-function contexts
data/persian-scales.json Published reference pitch models
reference/ Musicological and methodological reference pages
manifest.json PWA identity and icons
service-worker.js Browser caching and offline behavior

Running the static site locally

Clone or download the repository and serve it over an HTTP origin instead of opening files directly. For example, from the repository folder:

python -m http.server 4173

Then visit http://localhost:4173/index.html. Microphone access is controlled by the browser and generally requires a secure context (HTTPS or a permitted localhost origin). Local audio playback may also need a user gesture.

Browser support and PWA

The app is intended for modern desktop and mobile browsers. Available audio decoders, microphone permissions, MediaRecorder implementations, and install prompts differ across platforms. A PWA installation does not guarantee that every external CDN script or audio example is already cached for offline use.

External dependencies and source licensing

The project contains separately licensed tuner components, including MIT-licensed code credited to Qiu Xiang. The browser tuner also loads external JavaScript dependencies. Consult Third-Party Notices rather than assuming the entire repository has a single license.

Privacy and analytics

The audio-analysis code performs signal processing in the browser. The main site separately loads Google Analytics for visitor metrics; any GDPR/consent implications must be evaluated separately from microphone processing.

Quality checks and reporting

The repository uses Playwright browser tests and GitHub security features. A successful GitHub Pages deployment does not automatically mean that every browser regression test has passed. Report suspected security vulnerabilities via the repository's private security reporting channel, not a public issue.

See also: README · Source code · Security policy

Clone this wiki locally