Suggested file format? for Pad settings to my Midi controler

Hello all

Im not to sure what type of file format to go with to store information and settings for the Pads of my midi controller.

i would rather not use a plain text file as i think the lack of structure would make slow reading when the midi controller is being played and writing to the sd card when the save button is push.

My first thought was to create a xml file which i could see working but then again im not to sure how to go about parsing <--(not sure if thats the write word) the file correctly.

The information would have to be repeated 16 times because there is 16 pads/buttons.
Where Pad1 is would be replaced with Pad2, Pad3,Pad4 ect..

My arduno is a Mega 2560 and plan on using it with a LC Studio SD card reader. Any documentation or direction will help

Any suggestions?

Pad1_Ch:1
Pad1_Note:B0-DS8
Pad1_Bank:0-3
Pad1_PushStateMidiMessage:144-159
Pad1_ReleasedStateMidiMessage:128-143
Pad1_ProgramNum:0-127
Pad1_controlnum:0-127
Pad1_Pressure:0-127
Pad1_PitchBendRange:LSB MSB

i would rather not use a plain text file as i think the lack of structure would make slow reading

The alternative to text files is binary files.

My first thought was to create a xml file

If reading and writing a text file is too slow, how is embedding the data in an XML structure before writing, and extracting the data from the structure after reading the file, going to make things faster?

Since you seem to have the same amount of data for each pad, storing binary data makes sense. Read or write n bytes to have all the data for device x.

Pad1_Note:B0-DS8

I can't make sense of that range. Perhaps because I'm not a musician. I have trouble playing a radio.

hmm. ok i think i understand what our saying. So either way if i was to write a text file or xml both take pretty much the same time to complete and would be worthless to use a xml file. And my best bet would be to create a binary file to gather and write data?

the range B0-DS8 would be as follows.

The note "B" played in the 0 Octvave To DS8

DS8 would be D sharp in the 8th octave.

So that range would cover notes B,C,D,E,F,G,A and 0 to 8 Octaves for each note.