Thanks for sharing your knowledge! I've gone through the code snippets and while it seems complex, it definitely gets the job done. I did want to mention that when loading the sample from the file path using local s = [Sampler1.parseSampleFile(filePath)];, it gives you a JSON sample map.
To create the correct mapping, I used s['LoKey'] and s['HiKey'] to alter the JSON sample map. You can also set other common sample map parameters here.
Since I'm able to predict that I'll always have the exact same mapping, this method works perfectly for me!
Thanks again for your help!