I’ve looked at the source code for the Shnth (as I had the same idea as you!) and it consists of two parts.
- Stuff that runs on your computer (fish, jish, shlisp, justints, etc.)
- Stuff that runs on the Shnth / Shtar. This is in shbobo/sorce/shmat.
2 is all written in ARM assembly language, so wouldn’t be directly compatible with an Arduino. It consists of two parts itself:
- Interface and timing code for the ARM microcontroller.
- Opcodes that produce the sounds. These are called wanillaxxNAME, where xx is a two digit number and NAME is the name of the opcode, for example wanilla80fourses.s
It’d be totally possible to compile and run it on another ARM Cortex 32bit microcontroller (like the very cheap STM32 “blue pill”) but knowing how to connect the piezos to the microcontroller (e.g. which pin to connect to) is unknown and could take some investigation.
As far as I know, Peter has never published a schematic for the Shnth.