Skip to main content

NBS

This is a library that lets you play music with the NBS (Note Block Studio) format.

Functions

loadNBS

sm.scrapcomputers.nbs.loadNBS( data )

Parses NBS data and returns the parsed data of it.

Arguments:

  • data [ string ] The raw NBS data

Returns:


createPlayer

sm.scrapcomputers.nbs.createPlayer( nbsData, speaker )

Creates a new player for the NBS

Arguments:

  • nbsData [ table ] The NBS data.
  • speaker [ Speaker ] The speaker to play it to

Returns: