OpenNoteBlockStudio
OpenNoteBlockStudio copied to clipboard
[Suggestion] Ability to package custom instrument samples into .nbs file
Would make it easier to share NBS files using custom instruments as you wouldn't have to share the sample files separately.
Would be useful for individual songs that use different samples with the same name.
Thanks for the suggestion! I've thought about this before, this would indeed make sharing songs a lot easier. The "Pack sounds to ZIP file" option added in 3.8.1 was intended to be an advancement in that direction, but I agree that packing everything into a single file would be even more convenient. Perhaps a middle-ground solution could be to package a ZIP file containing the .nbs file as well, not only the instruments.
If we ever do create a new file format for this purpose, it must be well thought-out: will the binary data of each sound file just be appended at the end of the current .nbs file structure, or will it be a different file type (maybe a ZIP file internally?) Also, will we keep the same file extension, or use a different one? (such as .nbsi
?) And more importantly, would it be viable for plugins to take advantage of that new structure to simplify song loading? (Likely not, since songs are loaded server-side while resources are client-side). These are just some things to keep in mind if we do implement this in the future. :)