Skip to content

A website that displays what sound is making the solar system today by checking the planets position

Notifications You must be signed in to change notification settings

ph0nsy/Sounds-of-the-Solar-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Sounds-of-the-Solar-System

This Outer Wilds-inspired planetary music website employs Astropy's astroquery package to query NASA's JPL Horizons for real-time planetary positions relative to the sun. Utilizing the acquired coordinates, each planet (representing a specific note) is categorized into one of nine nonants, representing distinct pitches in the Scientific Pitch Notation.

File guide:

  • scripts/generateDatesData.py → Using astroquery's "Horizon" to get the relative coordinates of the planets (by date) generate a JSON file with the nonnat derived from those cordinates.
  • assets/data/ → Generated JSON files with planets' nonant by date (every other file on the assets folder is an image).
  • scripts/canvas.js → Drawing background of the canvas.
  • script/planets_n_sounds.js → Assigning frequencies to each planet and positioning them in their place according to the data from the corresponding date on the JSON file.
  • index.html → Main website file.

This website employs the following technologies:

Useful sites & references:

  • Simulating a real solar system with 70 lines of Python code - ChongChong He 🔗
  • Play Musical Notes with JavaScript - Youths Forum 🔗
  • HTML References - W3schools 🔗
  • Bootstrap 5.3 Docs 🔗

About

A website that displays what sound is making the solar system today by checking the planets position

Topics

Resources

Stars

Watchers

Forks