There is software like
widisoft to convert music to MIDI.
I have it. Frankly, it's not that good. You end up going through
the music note by note to clean it up and fix it up only to find
it very difficult to separate out the wanted notes from the
unwanted notes. Even bass lines that sound pretty clear get
lost in a sea of notes that the program creates; they don't
get converted well. Converting music to MIDI is not trivial.
To get bass lines out of music, I personally prefer
Transcribe!
It slows down the music and can perform a frequency
analysis to help identify notes. It still takes time and effort
but it beats other methods.