Answer the question
In order to leave comments, you need to log in
How to programmatically play guitar notes?
In my application, I play guitar notes using a pool of mp3 files. But in any case, this is not very correct. For greater accuracy, I would like to create these notes programmatically, because each has its own frequency and other parameters, which means that you can most likely simply feed these values to the speaker and thereby play these notes.
How can this be done, should there be any methods or libraries?
Answer the question
In order to leave comments, you need to log in
The synthesis of a guitar in terms of complexity pulls you to levels from a courseworker to a doctoral dissertation and then to R&D in some company like Roland or Yamaha.
If the level of kursach is enough for you, you can discover the mathematical model of string vibrations (in the same textbook by Tikhonov and Samarsky).
But here you need to understand that this will reproduce the sound of the Skovorodka , and for a real guitar, especially an acoustic one, the body takes part in extracting the sound (and for an electric guitar, an amplifier (and effect pedals) and its column-cabinet will also be added to the body).
For example, if you pull one string hard on a guitar, it will wind the body, and the body will wind the rest of the strings. Sometimes this is useful, sometimes not, and the musician muffles the extra strings in various ways.
The more factors you take into account, the further you will move from the laboratory for the second year of Physics and Mathematics to R&D in Roland.
Another approach is to use generative neural networks, but here you need to take somewhere a professional guitarist who will extract sounds and their bundles for you in every possible way in order to build a training dataset.
And finally, the main thing - this task is in a certain sense the elusive Joe. Instead of sitting in front of a computer and winding up three dozen synthesis parameters for each note, any sane musician will simply call his friend with a real guitar (or pull the necessary notes himself, albeit in 20 takes and 120 glues).
Another argument in favor of the elusive Joe hypothesis is that even if, hypothetically, you create such a synthesizer, a controller will be required for it. And then it turns out that the best controller for a guitar synthesizer is the guitar itself - therefore, the synthesizer can be thrown out of this scheme.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question