Run Script In Expansion
-
@d-healey Thanks David!
-
@Lindon said that he put his samples in the appdata link file location.. what is it really? I was just basing it off of what he said
-
I have the main object which takes care of my samplemap identifying and I’m planning on using the JS script to push the samplemap object into the main object:
I’m also trying to do some other things with the main plugin for each expansion, for example my samplemap swapping. Basically, I have three samplers and for each sampler, you can mix and match samplemaps from all the expansions the user has. I’ve made this browser for each sampler that lets you select samplemaps with two viewports, one viewport for tags and categories (All, Pad, Chord, Pluck) and the second (with a label to search the viewport) for seeing the available samplemaps and selecting them to change the samplemap for that layer. To accomplish this, I’ve set made an object which has multiple objects inside (these are the tags and categories). In those objects, I’ve put in an object for each samplemap entry. So this object system acts as a file system where the objects are kind of the directories. (Is this a good system, first thing to come in mind to try, but I feel like there may be a better one) Basically, each expansion I add would come with a set amount of samplemaps and there would need to be a script which pushes the samplemap objects into the main object if that makes any sense..
-
Basically #1 in that what did @Lindon mean by putting samples in the linkfile location?
-
Ahh, so the samples being in different locations are what’s throwing off hise when I try to load different samplemaps from different locations/expansions.
-
So with my use case I could still use the standard encoding files from hise?
Thanks again!
-
-
-
Well that's automatic with the hr installer if I remember correctly because it gives the user the choice of where to install the samples and that populates the link file. You really should just go an try the built in installer and see how it works.
-
You'll have to find another way, you can't include extra scripts in your expansions.
-
Yeah the samples need to be in the location the link file in app data is pointing to.
-
I haven't seen anything in your use case that would prevent it.
-
-
@d-healey Tried exporting samples as an archive but the end result hr1 file doesn't seem to have the samples included as the file size is very small and is the exact same as the hxi file size. Do you know what I may be doing wrong? And i'm deciding on putting all samples into the main samples folder under my project folder, so I've set the location in the installer function to the samples folder, but after installing the hr file, nothing happens... Is there something I'm not getting?
Thanks for your help!
-
Do you know what I may be doing wrong?
Did you select the hxi in the sample exporter dialog window?
-
@d-healey Yup, the info.hxi one in my expansion folder
-
@Casmat Have the samples been converted to ch monoliths?
-
@d-healey bingo! never heard of them before and definitely did not do anything with the sample files. Mind giving a quick rundown on what it is and how to do it? Tried doing tools -> convert all samples to monolith + samplemap but it says missing convert sampler..
Thanks!
-
-
@d-healey ooh! Handy! Will update you once I tinker round
Thanks
-
@d-healey got the ch1 files but the same issue when exporting the samples occurs. The hr1 file should include the size of the ch1 samples, right? Right now the hr1 file is still very small
-
@Casmat Post a video of what you're doing
-
@d-healey my screen capture has been bugging out, but hope this would be enough:
note: "Morphology - Night Owl" is one of the expansions
This was my popup values for the export samples as archive:
This is the generated hr1 file in main project folder:
info.hxi in "Morphology - Night Owl" file i used for the export samples page:
ch1 files in the "Morphology - Night Owl/Samples" folder:
what my ch1 converter page looked like:
samplemaps i used for the converter in "Morphology - Night Owl/SampleMaps":
main samples folder in the project folder after "installing" the hr1 file:
Hope this helps!
-
@Casmat You keep your projects in your Downloads folder?
It looks like you're doing everything correctly so I'm not sure why it's not working. What is the expansion type in your project preferences set to?
-
@d-healey yeah, when testing out hise i had just put the project in the downloads and now i just stick with it haha! Heres the project settings: (dont mind the 1234...)
-
@Casmat 1234 is the best, that's the secret key to run a library in Rhapsody ;)
I have no idea why it's not working. I suggest you make a new minimal test project with just a single sample and try and figure out what's happening.
-
@d-healey true:beaming_face_with_smiling_eyes:! I’ll give it a go, what am I supposed to see once the hr1 package gets installed? Is the folder where you placed the samplers in the installer function supposed to populate with the ch1 files?
-
@Casmat Yes you should the ch1 files
-
@d-healey after deleting the expansion and starting from scratch, it seems to work, dont know why it didnt work before but now it does! I have installed the hr1 file and now the samples folder has the ch1 files. To revert the installation, I'd just need to delete the ch1 files, right? Is there any other files created by installing the hr1 file?
-
@Casmat The hxi should be in the app data folder too
-
@d-healey thanks so much!