Well, the only real advice I can give you merror (from what you’ve said so far) is to look at pattern matching strings in lua and the interface from the API to the samples and keymaps in Renoise.
But to try and give you an example that you can look at yourself I’ll attach a starter. This should add a menu item to the instrument sample box (right click) ‘Import Samples…’ It should bring up a file requester. The way the sample filename is now encoded is (for example):
choirsample!!bn_c3 nr_c2,f3!!.wav
that should load in that sample and set the base note to C3 and the note range from C2 to F3. As you can see the settings for the sample are surrounded by two exclamation marks !!..!!
Other example filenames:
testsamp!!bn_d#4!!.wav <- set base note to d#4
testsamp!!nr_f#5,a9!!.wav <- set note range to f#5 to a9
testsamp!!bn_c2 nr_c3,c3!!.wav <- set base note to c2 and note range to c3-c3
testsamp!!bn_f#3 nr_d3,d3 vl_08,7c!!.wav <- base note=f#3 note range=d3-d3 and velocity level 8-7c
Might give you some idea midierror of how you would go about writing it.
I’d like it to find those characters in any filename and assign it a note from that. So the data will be in the filename anyway as each file will only span one note
I understand I cant ask you to make this but i’m already struggling to understand what you sent me! - is it possible that you can annotate what youve made already so i can understand what each part is doing?
Sure, I’ve written a more advanced script so annotating probably wouldn’t help all that much…and why did I just know you wouldn’t want to rename the files?
You’ll have to give me a moment midierror while I simplify this script…