Skip to content

[Suggestion] Ability to package custom instrument samples into .nbs file #239

Closed

Description

@ItsOnlyKatniss

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.

Activity

  1. Bentroen commented on Apr 2, 2021

    @Bentroen
    Member

    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. :)

  2. added this to the v4.0 milestone on Apr 17, 2021
  3. added
    C: NBS format changeSuggestions or issues that require changes to the NBS format
    and removed on Feb 22, 2022
  4. Bentroen commented on Mar 22, 2026

    @Bentroen
    Member

    Added in e01bd24 (part of release 3.11)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: NBS format changeSuggestions or issues that require changes to the NBS formatS: Resolved in next releaseThis bugfix or suggestion has been applied to the code

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions