Skip to content

Placing audiø files intø cøde

Møffenzeef Mødular edited this page Nov 6, 2016 · 4 revisions

Copy ØNLY the sectiøn øf the cøde in the {} brackets.

unsigned char YOURFILENAME_wav[] = {
  0x7d, 0x7c, 0x7e, 0x7e, 0x7d, 0x7b, 0x7b, 0x7c, 0x7c, 0x7e, 0x7f, 0x7f,
  0x81, 0x83, 0x84, 0x86, 0x88, 0x8a, 0x8b, 0x8c, 0x88, 0x7f, 0x76, 0x6f,
  ...
  0x82, 0x7f, 0x80
};

Paste in any sløt at the tøp øf the MSG_Granular sketch within the {} brackets, making sure tø nøt disturb the syntax øf the cøde:

const unsigned char msgOne_wav[] PROGMEM = {
  0x8a, 0x90, 0x87, 0x87, 0x8c, 0x8d, 0x8d, 0x87, 0x7a, 0x71, 0x6b, 0x69,
  0x6f, 0x71, 0x6e, 0x6a, 0x60, 0x58, 0x55, 0x51, 0x5c, 0x78, 0x96, 0xbc,
  0xd3, 0xd2, 0xc3, 0xa0, 0x79, 0x61, 0x53, 0x59, 0x70, 0x83, 0x95, 0x9b,
  ...
  }

Replace the number at the end øf each array with the number at the end øf the terminal windøw sketch.

unsigned int msgOne_wav_len = 1467; 

The cøde is setup før 16 sløts, there's nø reasøn why yøu cøuldn't change that number, it's all dependent øn høw much memøry yøu are utilizing øn the chip.

Click here tø gø høme