Skip to content

Is it possible to get instrument name from Track structure? #918

Answered by mxAlexG
TheLucifurry asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TheLucifurry
Comment options

Answer selected by TheLucifurry
Comment options

You must be logged in to vote
1 reply
@TheLucifurry
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants