Class Header
java.lang.Object
dev.kosmx.playerAnim.core.data.opennbs.format.Header
Sound format header. contains Name, click amount, length, everything from header
field names and descriptions are form https://opennbs.org/nbs
Deprecated fields are not used by OPEN NOTE BLOCK STUDIO
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyteDeprecated.byteDeprecated.shortThe last layer with at least one note block in it, or the last layer that has had its name, volume or stereo changed.intAmount of times the user has left-clicked.byteWhether looping is on or off.shortDetermines which part of the song (in ticks) it loops back to.byte0 = infinite.If the song has been imported from a .mid or .schematic file, that file name is stored here (only the name of the file, not the path).intAmount of minutes spent on the project.byteThe version of the new NBS format.intAmount of times the user has added a note block.intThe amount of times the user have removed a note block.intAmount of times the user has right-clicked.The author of the song.The description of the song.shortDeprecated.The name of the song.The original author of the song.shortThe tempo of the song multiplied by 100 (for example, 1225 instead of 12.25).byteThe time signature of the song.byteAmount of default instruments when the song was saved. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NBS_version
public byte NBS_versionThe version of the new NBS format. -
Vanilla_instrument_count
public byte Vanilla_instrument_countAmount of default instruments when the song was saved. This is needed to determine at what index custom instruments start. -
Song_length
Deprecated.The length of the song, measured in ticks. Divide this by the tempo to get the length of the song in seconds. Note Block Studio doesn't really care about this value, the song size is calculated in the second part. (Note: this was re-added in NBS version 3) -
Layer_count
public short Layer_countThe last layer with at least one note block in it, or the last layer that has had its name, volume or stereo changed. -
Song_name
The name of the song. -
Song_author
The author of the song. -
Song_original_author
The original author of the song. -
Song_description
The description of the song. -
Song_tempo
public short Song_tempoThe tempo of the song multiplied by 100 (for example, 1225 instead of 12.25). Measured in ticks per second. -
Auto_saving
Deprecated.Whether auto-saving has been enabled (0 or 1). As of NBS version 4 this value is still saved to the file, but no longer used in the program. -
Auto_saving_duration
Deprecated.The amount of minutes between each auto-save (if it has been enabled) (1-60). As of NBS version 4 this value is still saved to the file, but no longer used in the program. -
Time_signature
public byte Time_signatureThe time signature of the song. If this is 3, then the signature is 3/4. Default is 4. This value ranges from 2-8. -
Minutes_spent
public int Minutes_spentAmount of minutes spent on the project. -
Left_clicks
public int Left_clicksAmount of times the user has left-clicked. -
Right_clicks
public int Right_clicksAmount of times the user has right-clicked. -
Note_blocks_added
public int Note_blocks_addedAmount of times the user has added a note block. -
Note_blocks_removed
public int Note_blocks_removedThe amount of times the user have removed a note block. -
MIDI_Schematic_file_name
If the song has been imported from a .mid or .schematic file, that file name is stored here (only the name of the file, not the path). -
Loop_on_off
public byte Loop_on_offWhether looping is on or off. (0 = off, 1 = on) -
Max_loop_count
public byte Max_loop_count0 = infinite. Other values mean the amount of times the song loops. -
Loop_start_tick
public short Loop_start_tickDetermines which part of the song (in ticks) it loops back to.
-
-
Constructor Details
-
Header
public Header()
-
-
Method Details
-
Auto_saving
public boolean Auto_saving() -
Loop_on_off
public boolean Loop_on_off()
-