Moderators: Altitude, adafruit_support_bill, adafruit, phono, mome rath
antto wrote:in the so called "SafeBox" there _should_ be a way to extract the whole eeprom memory
the "READ_PATTERN" message - if you're talking about the RD_PATT_MSG thing in compcontrol.c - this is not really copying the "whole" eeprom at all
the original x0xb0x firmware stores 128 patterns of 16bytes each, that's 2048 bytes, while the eeprom is 4KB afaik
n0nx0x on the other hand stores again 128 patterns of 21bytes, but will use even more of the eeprom memory for other things
right now, my RD_PATT_MSG will indeed return the 21 bytes of the Nth pattern like it should, so in theory it should be possible to extract a n0nx0x memory file
another problem
c0ntr0l's "backup EEPROM" algo probably "scans" 16 banks by 8 pattern slots because this is how it looks like in compcontrol.c
this is very bad then
a possible solution:
we should implement a sepparate message in compcontrol.c for extracting the EEPROM memory, not patterns!
the new "c0ntr0l" app, whatever it's called should have a sepparate feature for this too

antto wrote:yes, in n0nx0x PATT_SIZE is 21
thus when c0ntr0l asks for a pattern - n0nx0x returns 21 bytes of data, logicaly
there is no track data yet, there is no track mode neither
for now there are only 128 patterns in memory
but once i have the new CPU mod, there will be enough room for implementing the new trackmode and other features into the firmware - thus, probably all of the 4KB will be used
also, there is a possibility that i might change the pattern structure again, but i'm not sure yet, we'll see
if your SafeBox app asks for patterns in banks 17 to 32 to get the "unused" portion of the EEPROM - then using this with n0nx0x will probably do something very BAD
it'll try to call spieeprom_read() with invalid addresses, i'm not sure what'll happen but if it was M$ winbooz - it would definately crash or throw a page fault or access violation
i'm afraid not to corrupt the bootloader because i can't fix it (i don't have the tools)
that's why i said there should be a sepparate message for extracting the memory not the patterns

antto wrote:yes, both the official and the "modified" c0ntr0l apps work with n0nx0x right now, since there are only 128 patterns in memory for now
all i really wanted was an app that safely and reliably can import and export the whole EEPROM memory from any OS, even if that means that all popular OS'es need to be modified a little
another possible solution would be to simply provide the user of an editbox where he can type the amount of memory there is on his x0xb0x (since in the future, there might be a memory MOD for more than 4KB)
and simply put a RD_CHUNK_MSG into the firmware, which will return a variable sized portion of memory to the SafeBox app
this way it'll be possible to extract the whole memory even if it's modded, and the responsibility is left to the user, he has to be careful ;]

antto wrote:also, there is a possibility that i might change the pattern structure again, but i'm not sure yet, we'll see
antto wrote:and btw, i don't care if people will lose their patterns when switching between n0nx0x or anything else
if it ain't broken - don't fix it

antto wrote:pattern managing (converting memory files between different OS formats or exporting/importing to software clones) could be even put into a web-based app (java?) or something, that you only need to have a browser and there is no difference whether Mac/Win/Lin or whatever you're running it on

j00lz wrote:- K0ntr0l: As above, but with many many more features. Import of patterns from ABL (.pat) and Rebirth (.rbs) is supported. I will add support for other file formats in the future, depending on user feedback. Export is currently only to ABL and MIDI. Again, users will decide on what formats get implemented next. Multiple patterns can be imported and assigned to consecutive banks/positions with just a few mouse clicks. Patterns that exceed the 16 steps limit are automatically split and assigned to consecutive positions. Patterns can be named. Sets of patterns can be defined and recalled with ease as well. It is basically a pattern librarian and editor, with full x0xb0x connectivity. It is possible to push modified (or altogether different) patterns to the x0xb0x while the box is playing, I have been having a lot of fun with this feature. Multiple pattern editors will be provided (text, graphical...etc). This application will be released in the coming weeks, as shareware. It will be very reasonably priced. Again, support for Mac OS X is pending resolution of the issue mentioned above. I'm pretty sure it will come eventually but I can't say when...
Paradigm X wrote:http://www.d16.pl/forum/viewtopic.php?f=9&t=8&start=15
Info on d16 pattern format. FYI.


Users browsing this forum: No registered users and 1 guest