from Hacker News

Show HN: Chessophone – Generate music from chess games

by csmeyer on 4/21/25, 7:07 PM with 1 comments

Chessophone takes a PGN string representation of a chess game and generates music - Notes from the C major scale are added for each piece in each row of the board for each move in the game. Games played with the same opening will sound the same until they deviate from book moves. The perceived tempo of the music speeds up as pieces are captured. Enjoy!

Created with python-chess and tone.js.

Source code here: https://github.com/charliemeyer/chessophone

  • by bartbartbart on 4/21/25, 8:52 PM

    Thinking that it might be cool to switch to a minor scale if the first player starts losing (and back to major if they start winning again)