Auto Root key in Ableton Sampler from Sample name.

Just Evan's icon

Hi all!

Is there a way to make a max patch to automatically set the Root key in the Ableton Sampler, from the sample name?

Here is an example: Bass_01_F#.wav
Where 'F#' is the key that would be automatically applied to the Root key in the Ableton Sampler.