Saving a NBS project that contains lots of noteblocks and reopening the file will sometimes lead to a few note blocks disappearing.
Describe the bug I have a song that is 6 minutes long, and contains over 19000 noteblocks. i had made some modifications to the song, and saved. after a while, i opened the project again, only to find that exactly 112 noteblocks just..disappeared. out of nowhere. and it's not just chunks of the song missing. it's distributed over the entire song. There's also inconsistency in the placement of the noteblocks in some parts of the song, which also leads to increased or decreased song length.
To Reproduce Steps to reproduce the behavior:
- Import a midi that's long and has lots of notes.
- Make some changes to the song(e.g transposing notes to fit in minecraft's note block range or change the instrument of some noteblocks.
- Save the file.
- Wait for a while and then open it. you should see the note block count is significantly lower than before.(NOTE: this is very inconsistent, and i haven't been able to recreate this again, even with the same modifications i've made.)
Expected behavior NBS should save note block data properly to the file.
Screenshots
Here is the song imported from the midi with no changes made.
Here is the same song that i modified(NOTE: i did not remove or place any note blocks.), note the different song lenghts.
Additional context This doesn't only apply to long songs. I've had shorter songs that sounded fine before now sounding like they're missing notes and noteblocks playing off beat in random segments of the song. this bug has been present for a while in NBS. This is a concern for me, as any song i create can have the chance to corrupt like this.
Hi! I'm not able to reproduce this with my own files, can you send the affected files (before and after) so I can identify what type of notes are missing?
From what you described, there is a possibility that a layer has beed accidentally deleted, either manually or by the program misregistering the bottom layer. The song length difference is caused by changes to the tempo.
Hi! I'm not able to reproduce this with my own files, can you send the affected files (before and after) so I can identify what type of notes are missing?
files.zip sorry for replying late, here are the files. i too cannot reproduce the bug again. this seems to happen randomly everytime you open the file. as for the layers being deleted, that's not the case. i also tried to replicate the bug again, by doing the same steps i did in the corrupted file. after 1 day, the note block count remains the same.
I have compared the two files and it seems that the notes on layer 0 that are disappearing also disappears on layer 16, same with layer 1 and layer 17, a cause is yet to be found.
output:
flare@FlarezMacStudio Documents % python3 comparenbs.py
Note count:
19575
19463
Missing in first file:
set()
Missing in second file:
{(3012, 16), (1888, 0), (7977, 16), (2950, 16), (3016, 16), (7836, 16), (2948, 16), (2946, 0), (2952, 16), (3012, 0), (1106, 0), (1110, 16), (7838, 16), (7977, 0), (7994, 16), (2950, 0), (3984, 16), (2948, 0), (7985, 16), (2952, 0), (7838, 0), (7994, 0), (3984, 0), (7985, 0), (1936, 16), (7973, 16), (3010, 16), (1936, 0), (1106, 16), (7973, 0), (7990, 16), (3010, 0), (929, 1), (7990, 0), (962, 16), (7239, 16), (3936, 0), (7988, 0), (1904, 16), (3968, 16), (964, 16), (1120, 16), (7969, 16), (962, 0), (7239, 0), (1904, 0), (3968, 0), (3162, 16), (7982, 16), (964, 0), (7971, 16), (1120, 0), (7969, 0), (3164, 16), (3162, 0), (3168, 16), (899, 16), (7982, 0), (929, 17), (7999, 16), (7971, 0), (3166, 16), (3164, 0), (3936, 16), (8001, 16), (7988, 16), (3168, 0), (899, 0), (7999, 0), (1116, 16), (3166, 0), (1920, 0), (3154, 16), (8001, 0), (1118, 16), (3158, 16), (7844, 16), (7978, 16), (1116, 0), (7780, 16), (3160, 16), (3154, 0), (7980, 16), (1118, 0), (3158, 0), (7844, 0), (7978, 0), (7780, 0), (3160, 0), (7980, 0), (7997, 16), (7240, 16), (1112, 16), (3952, 0), (7993, 0), (1920, 16), (7997, 0), (3016, 0), (7240, 0), (7836, 0), (1112, 0), (1110, 0), (7842, 16), (7998, 16), (8002, 16), (1888, 16), (7842, 0), (7998, 0), (8002, 0), (3952, 16), (2946, 16), (7993, 16)}
Can you send the original midi file so I can have a look at the beforehand data? (and possibly the steps you performed)
Can you send the original midi file so I can have a look at the beforehand data? (and possibly the steps you performed)
alright. here is the midi. file.zip time precission was set to x2 and keep within note range disabled.
yea I can't reproduce it with this file either, this is going to need more people to report the same issue so there is more data to work with