Note: this is NOT a "music for programming" question.
My question is:
I want to write a computer program that can synthesize repetitive beats (which I can control via the command line) to pipe music into my ears.
I'm curious if there are existing tools to do this (and if not, what libraries to use).
The general idea is:
1) the computer knows what I'm doing (by the commands I'm running -- whether I'm in Vim, whether my programs are compiling, etc ..)
2) the computer knows my general mood (count number of compiler failures due to 'make'; number of segfaults, non zero exit codes; number of git commits)
3) the computer knows my brain state (depending on typing rate; I'm either coding or thinking)
I'd love to utilize them for some type of bio-feedback for controlling music.
This is also why the music needs to be programatically synthesized (rather than just some existing tracks).
Thanks!