Skip to content

johnBartos/contributions-chiptune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

contributions-chiptune

What does your contributions graph sound like? Find out with this script! It works iterating through the contributions graph one week at a time and assigning each day of the week a frequency based on its color value. The frequencies for the week are then overlayed and played by a Web Audio API oscillator, creating a neat chiptune.

##Hey there! Check out these cool hacks straight from the EmpireJS open source night! Pat Needham - It sweeps, not beeps. Sounds great on sparse graphs

##How to use

  1. Navigate to your git profile page and open up the dev console with f12
  2. Paste makenoise.min.js (or non-min, if you're brave) into the console
  3. Lower your volume a lil' bit
  4. Press enter if you haven't already

You can also change up the charasteristics of the chiptune via its function arguments found on the last line.

(audioContext, freq, delay, waveform)

  • audioContext: Actually, you can't change this one
  • freq: The fundamental frequency. Higher number = higher pitch
  • delay: The time in ms between notes. Up is faster
  • waveform: The type of waveform oscillators generate. Proper values are sine, square, sawtooth, and triangle

About

A script for generating a chiptune from the contributions graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •