Jump to content

Recommended Posts

Posted

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 button

simple 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 0x030

SEQ2                    EQU 0x031

SEQ3                    EQU 0x032

SEQ4                    EQU 0x033

SEQ5                    EQU 0x034

SEQ6                    EQU 0x035

SEQ7                    EQU 0x036

SEQ8                    EQU 0x037

SEQ9                    EQU 0x038

SEQ10                   EQU 0x039

SEQ11                   EQU 0x040

SEQ12                   EQU 0x041

SEQ13                   EQU 0x042

SEQ14                   EQU 0x043

SEQ15                   EQU 0x044

SEQ16                   EQU 0x045

;; ==========================================================================

;; LOOP POINT(number of recorded notes)

;; ==========================================================================

SEQNBR                  EQU 0x046

I'm struggling with the MIOS_FLASH_Read/write functions

and havent a clue how to store and recall 0x030...0x046

many thanks for an example or explination

Alkex

KBD.jpg

Posted

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 yet

Best Regards, Thorsten.

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...