Is it possible to get instrument name from Track structure? #918
|
That's the whole question) I've tried to parse it from |
Replies: 2 comments 2 replies
|
One way I know of is to get the midi program number in track.playbackInfo.program which you can write a function that resolves that to a string. Bare in mind that midi has several program numbers for guitars (overdrive, distortion, clean, etc). |
|
As @mxAlexG indicated: The best way to identify the instrument is the |
One way I know of is to get the midi program number in track.playbackInfo.program which you can write a function that resolves that to a string. Bare in mind that midi has several program numbers for guitars (overdrive, distortion, clean, etc).
From wiki:
Guitar
25 Acoustic Guitar (nylon)
26 Acoustic Guitar (steel)
27 Electric Guitar (jazz)
28 Electric Guitar (clean)
29 Electric Guitar (muted)
30 Electric Guitar (overdriven)
31 Electric Guitar (distortion)
32 Electric Guitar (harmonics)