Jan 8, 2019 6:37 PM
| Last Modified: Jan 9, 2019 6:53 AM
Part of this code grabbed from an older project Wav Files.
The synthesis is done with an algorithm similar to Karplus–Strong string synthesis - Wikipedia. A short buffer of random noise is played over and over, filtering it each time by averaging adjacent samples. When you listen, you'll hear 10 repeated notes, all different because of the random starting point.