Alkex Posted June 7, 2005 Report Posted June 7, 2005 Hi folks!I've just finished my little 25 note midibox keyboard!I've based the code on the MIDIIO128Â and done some customizing to the code:+1 octave transposer button-1 octave transposer button+1 semitone transposer buttonsimple 16 note sequencer (like on my beloved PROONE synth :-*)Now I would like to store the 16 notes of the sequence into memory so I can powerOff and recall them later.I used 17 variables in app_defines as follows:;; ==========================================================================;; INTERNAL 16 STEP SEQUENCER NOTES;; ==========================================================================SEQ1Â Â Â Â Â Â Â Â Â Â EQU 0x030SEQ2Â Â Â Â Â Â Â Â Â Â EQU 0x031SEQ3Â Â Â Â Â Â Â Â Â Â EQU 0x032SEQ4Â Â Â Â Â Â Â Â Â Â EQU 0x033SEQ5Â Â Â Â Â Â Â Â Â Â EQU 0x034SEQ6Â Â Â Â Â Â Â Â Â Â EQU 0x035SEQ7Â Â Â Â Â Â Â Â Â Â EQU 0x036SEQ8Â Â Â Â Â Â Â Â Â Â EQU 0x037SEQ9Â Â Â Â Â Â Â Â Â Â EQU 0x038SEQ10Â Â Â Â Â Â Â Â Â Â EQU 0x039SEQ11Â Â Â Â Â Â Â Â Â Â EQU 0x040SEQ12Â Â Â Â Â Â Â Â Â Â EQU 0x041SEQ13Â Â Â Â Â Â Â Â Â Â EQU 0x042SEQ14Â Â Â Â Â Â Â Â Â Â EQU 0x043SEQ15Â Â Â Â Â Â Â Â Â Â EQU 0x044SEQ16Â Â Â Â Â Â Â Â Â Â EQU 0x045;; ==========================================================================;; LOOP POINT(number of recorded notes);; ==========================================================================SEQNBRÂ Â Â Â Â Â Â Â Â EQU 0x046I'm struggling with the MIOS_FLASH_Read/write functions and havent a clue how to store and recall 0x030...0x046many thanks for an example or explinationAlkex Quote
TK. Posted June 8, 2005 Report Posted June 8, 2005 Hi Alkex,I would suggest to store such data into EEPROM instead of Flash - in flash you can only write 64 bytes at once, and it reduces your code space. EEPROM is byte writeable, and the usage of MIOS_EEPROM_Write and MIOS_EEPROM_Read is much easier (no RAM buffer required)the EEADR 0x60..0xff are not used by the MIDIO128 application yetBest Regards, Thorsten. Quote
Alkex Posted June 18, 2005 Author Report Posted June 18, 2005 Thankyou Thorsten,I'll bare that valuable info in mind.Best regards, and thumbs up on your exciting projects!Alkex Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.