Guitar string code in Python?

I am very new to Python, but very interested in creating code that could mimic guitar strings. How can I do it? Or at least how do I start to do this? Any help is appreciated!

Thanks!

EDIT:

I would like to see sound waves when playing different lines, notes, etc. I am also interested in sound waves when two different lines are played, and how it changes when they are dissonant and consonant. Another thing that interests me is how sometimes the strings vibrate when they are not plucked (resonance).

Any help is appreciated, thanks !!!

+4
source share
1 answer

This is indeed a synthesis question, and there is no simple answer. There are a whole bunch of possible approaches - this is a whole area of ​​learning. Processing physical audio signals from JO Smith is a good starting point, namely Miller Packett's Theory and Technique of Electronic Music . For guitar, you are particularly interested in the Karpus-Strong method. Perhaps you should look for a Python implementation. This is a common project for students in music technology programs; I am sure there are a lot of them.

+6
source

All Articles