For the record I had done somethig similar for
attack of the banjo on the high seas.
I needed to be able to play the correct sound when the player strikes a chord on a certain height on a virtual banjo.
I went to youtube to find a reference video of a guy playing banjo and striking all 5 chords.
Once I found it , I sampled a chord sound from this video, and using the video as a reference I adjusted the pitch so that I could find the sound of all the chords.
Then I had to make several tests until I could find the notes on each chords more or less correctly by changing the pitch. Once I had the numbers I programmed them in game.
I found out that to obtain the higher musical octave with the same note you need to multipliy the pitch by 2.
so It's not so difficult, you need to find one good sample of the instrument, then make some tests until you find the good pitch for each note (it helps to play a real life instrument there), then program all that
Of course there are chances it won't be 100 accurate, but oh well...