Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Source and development > BIN export, samples Owner: Shiru New post
Page 1 of 1 Sort:  
BIN export, samples Posted: 2011-10-13 11:54 Reply | Quote
Shiru



Member for: 4890 days
Location: Russia, Moscow
Status: Offline

#24242
I have two different songs with exactly the same sample set - the same files, the same mapping. When I export these songs as BIN, I get samples.bin of exactly the same size, but content of these two files is very different. I need to make it uniform, to be able to use the same sample data with different songs. How it is possible to do?

Multisong does not help there, music data size exceed page size.

Posted: 2011-10-27 00:10 Reply | Quote
jsr
Administrator

Avatar

Member for: 5924 days
Location: Sweden
Status: Offline

#24830
Hi, sorry for late reply. I don't know why the files would differ if the same sample set is used, are the same samples played in both songs? (Unused samples are removed)

One option right now would be to assemble a file with the samples manually and then write the sample table by hand for both files, but this will be a lot easier later since I'm going to enable .ASM exporting again.

_______________________
Programmer and developer
Posted: 2011-10-27 15:37 Reply | Quote
Shiru



Member for: 4890 days
Location: Russia, Moscow
Status: Offline

#24851
Yes, the same samples, all them are used, and file size of the samples.bin is exactly the same.

More interesting, when I made the optimization (removing matching patterns) on these songs, samples.bin now identical for them. So the problem is unstable, and it is unclear when it happens.

Posted: 2011-10-28 00:40 Reply | Quote
jsr
Administrator

Avatar

Member for: 5924 days
Location: Sweden
Status: Offline

#24874
I'm not sure what's going on then. I'd like to take a look on the files, if possible.

_______________________
Programmer and developer
Posted: 2011-10-28 01:11  (Last Edited: 2011-10-28 01:11) Reply | Quote
Shiru



Member for: 4890 days
Location: Russia, Moscow
Status: Offline

#24881
I can only give you samples.bin files for now, [url=http://shiru.untergrund.net/temp1/samples.zip]here they are. They exported from two songs that use exactly the same set of samples with exactly the same order and note assignments. I messed with them in different ways, tried to reassign them to other instrument, or use samples in different orders - result was always the same. It only changed after the size optimization.

Posted: 2011-11-08 00:20 Reply | Quote
jsr
Administrator

Avatar

Member for: 5924 days
Location: Sweden
Status: Offline

#25395
I checked the samples and it's strange: the order of the samples is the same in both files, but the first file has an offset in the beginning and the last part has been cut off so it's still the same size. I hope this problem only appears in the music data exporter and not NSF.

_______________________
Programmer and developer
Page 1 of 1 Sort: