Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.54 KB

README.md

File metadata and controls

44 lines (38 loc) · 1.54 KB

cairo-wave

About

Generate valid WAV files in Cairo

Features

  • Output WAV file
  • Handle bit-depths (4, 8, 16, 24, 32)
  • Handle multiple/stereo channels
  • Generate square wave form
  • Generate sawtooth wave forms
  • Generate triangle wave forms
  • Generate sine wave forms
  • Generate an instrument (see Koji)
  • Play Koji notes
  • Play Koji midi tracks
  • Generate an 4/8-bit low sample rate sound pack (kick, bass, snare, hi-hat)
  • Play short melodies

Local testing:

You need mplayer installed and a test that returns the hex of the WAVE file, see tests

./scripts/play.py _8bits
./scripts/play.py test_name

Sepolia testing

Needs a working starkli configured with a Sepolia RPC

python scripts/get_notes.py
mplayer tmp/out.wav

Resources