Every other time I call analogRead(A0), it returns 0

Status
Not open for further replies.

Somnitec

Member
I get some strange behavior from analogRead in the code below, in which I can't figure out what goes wrong... Somehow every other time analogRead() is called in my loop, it just returns 0 as seen below. It has nothing to do with the frequency in which it is called and neither does analogReadAveraging() seem to have any effect. Any help would be much appreciated!

Code:
 - - - 586
 - - - 0 
 - - - 587
 - - - 0 
 - - - 585
 - - - 0
 - - - 586


Code:
//Made by Arvid Jense, May 2013, CC-SA

//A simple sample player for Teensy3.0 using IntervalTimer and analogWriteFrequency
//It uses the prinicple of Pulse Density Modulation (PDM) AKA Direct-Stream Digital (DSD) 
//AKA Delta Modulation AKA 1bit DAC
//see http://en.wikipedia.org/wiki/Pulse-density_modulation
//and http://www.cs.tut.fi/sgn/arg/rosti/1-bit/

//Made using these resources, the sample is property of  Phil Burgess, writer
//of the hackaday article
//http://hackaday.com/2011/06/08/chipkit-sketch-mini-polyphonic-sampling-synth/
//http://www.pjrc.com/teensy/td_pulse.html

//Binary sketch size: 17,220 bytes (of a 131,072 byte maximum)
//Estimated memory use: 2,804 bytes (of a 16,384 byte maximum)


//This guy is the sample played, just scroll to the bottom to see the actual code
const signed char sample_boing[] = {
  0x01,0x03,0x08,0x06,0x05,0x07,0x04,0xfd,
  0xfa,0xfb,0xfe,0x01,0x01,0x03,0x04,0x09,
  0x07,0xff,0xf4,0xeb,0xe5,0xe5,0xe5,0xe5,
  0xec,0xf3,0xf9,0xfa,0xf7,0xf7,0xf9,0xfc,
  0x01,0x07,0x08,0x0a,0x0b,0x10,0x14,0x15,
  0x16,0x19,0x1f,0x22,0x23,0x24,0x22,0x1f,
  0x20,0x21,0x22,0x1d,0x18,0x15,0x0f,0x0a,
  0x05,0x02,0x01,0xfe,0xf9,0xf4,0xf1,0xf0,
  0xef,0xed,0xea,0xe6,0xe1,0xe0,0xe0,0xe0,
  0xde,0xdc,0xdd,0xdf,0xe0,0xe2,0xe3,0xe6,
  0xe9,0xec,0xf0,0xf4,0xf6,0xf8,0xfb,0xfe,
  0xff,0x00,0x01,0x04,0x02,0x00,0xfe,0xfd,
  0xfd,0xfc,0xf9,0xf5,0xee,0xeb,0xed,0xee,
  0xef,0xf0,0xf2,0xf4,0xf7,0xfc,0x02,0x09,
  0x10,0x15,0x1a,0x1d,0x22,0x27,0x2b,0x2f,
  0x2f,0x2d,0x2c,0x2d,0x2e,0x2d,0x2b,0x27,
  0x23,0x1d,0x1b,0x19,0x15,0x13,0x10,0x0c,
  0x08,0x05,0x04,0x04,0x03,0x01,0xfe,0xfb,
  0xfb,0xfc,0xfd,0xfb,0xf9,0xf7,0xf7,0xf8,
  0xf9,0xf8,0xf6,0xf5,0xf1,0xf1,0xf2,0xf2,
  0xf1,0xee,0xeb,0xe9,0xe8,0xe8,0xea,0xec,
  0xea,0xeb,0xee,0xef,0xf1,0xed,0xef,0xf2,
  0xf9,0x02,0x07,0x06,0x02,0xfc,0xfa,0xfd,
  0x00,0x03,0x00,0xfa,0xef,0xec,0xee,0xf7,
  0x00,0x02,0x03,0x00,0x00,0x04,0x0c,0x11,
  0x14,0x10,0x08,0x00,0xfb,0xfb,0xfb,0xf9,
  0xf5,0xf1,0xef,0xf1,0xf8,0x00,0x07,0x0b,
  0x0c,0x10,0x13,0x17,0x19,0x17,0x14,0x0f,
  0x0b,0x0b,0x0c,0x0c,0x0c,0x0d,0x0d,0x0f,
  0x0b,0xfe,0xf0,0xe7,0xe0,0xdc,0xda,0xda,
  0xda,0xda,0xdb,0xd9,0xcb,0xc3,0xc5,0xc9,
  0xd1,0xdb,0xe8,0xf5,0x04,0x12,0x1d,0x25,
  0x29,0x2c,0x2e,0x30,0x31,0x2e,0x29,0x24,
  0x20,0x1c,0x18,0x13,0x0d,0x08,0x02,0xfe,
  0xfc,0xf9,0xf7,0xf5,0xf2,0xf1,0xf4,0xf6,
  0xfa,0xff,0x05,0x0c,0x14,0x19,0x1c,0x1f,
  0x20,0x1d,0x1b,0x19,0x17,0x13,0x0d,0x06,
  0x00,0xfc,0xfc,0xfe,0xfd,0xfb,0xf7,0xf3,
  0xf0,0xf0,0xf3,0xf4,0xf3,0xec,0xe3,0xdd,
  0xdb,0xdb,0xdd,0xdd,0xdd,0xdd,0xdd,0xe2,
  0xe5,0xeb,0xf6,0xfe,0x03,0x09,0x0e,0x11,
  0x15,0x19,0x1a,0x1c,0x19,0x17,0x13,0x12,
  0x10,0x11,0x13,0x17,0x16,0x07,0xfa,0xef,
  0xe8,0xe4,0xe3,0xe3,0xe5,0xe5,0xe7,0xdc,
  0xc8,0xc5,0xca,0xd6,0xe4,0xf1,0x00,0x11,
  0x23,0x38,0x4a,0x59,0x60,0x62,0x5f,0x5d,
  0x58,0x53,0x4b,0x44,0x3b,0x33,0x2c,0x23,
  0x15,0x0b,0x02,0xfc,0xf7,0xf4,0xf1,0xf0,
  0xee,0xed,0xeb,0xeb,0xdd,0xc2,0xb6,0xb4,
  0xbb,0xd0,0xf0,0x09,0x1c,0x27,0x2f,0x32,
  0x34,0x3d,0x4f,0x58,0x55,0x4a,0x3a,0x2a,
  0x1a,0x0a,0xfd,0xf0,0xe5,0xdd,0xd8,0xd6,
  0xd8,0xda,0xdc,0xdc,0xda,0xd8,0xd6,0xd5,
  0xd5,0xd6,0xd6,0xd6,0xd8,0xdb,0xe0,0xe6,
  0xec,0xf2,0xf8,0xfa,0xfb,0xfb,0xf7,0xf5,
  0xf2,0xec,0xe7,0xe0,0xd6,0xd0,0xcd,0xd2,
  0xd9,0xdd,0xdf,0xdd,0xdd,0xe1,0xec,0xf6,
  0xfb,0xfa,0xf1,0xe2,0xda,0xd7,0xd7,0xd9,
  0xd4,0xd0,0xcc,0xcf,0xd7,0xe7,0xf6,0x00,
  0x05,0x06,0x06,0x0c,0x16,0x20,0x23,0x20,
  0x1c,0x16,0x16,0x1c,0x1f,0x24,0x24,0x23,
  0x23,0x22,0x22,0x21,0x17,0x07,0xfd,0xf5,
  0xf0,0xed,0xea,0xe0,0xd6,0xd0,0xd2,0xda,
  0xe5,0xf3,0xfd,0x08,0x14,0x22,0x2f,0x3a,
  0x42,0x44,0x43,0x41,0x40,0x3d,0x3b,0x34,
  0x2c,0x23,0x1d,0x1b,0x1a,0x1a,0x15,0x0f,
  0x08,0x02,0xff,0xfc,0xfa,0xf6,0xf3,0xef,
  0xef,0xf1,0xf7,0xfc,0x04,0x0a,0x11,0x17,
  0x20,0x27,0x2a,0x2c,0x29,0x25,0x20,0x19,
  0x11,0x08,0x00,0xf9,0xf5,0xf3,0xf6,0xf8,
  0xf8,0xf9,0xfa,0xfc,0xfc,0xfd,0xfe,0xfb,
  0xf5,0xef,0xe8,0xe3,0xe1,0xe0,0xe0,0xe3,
  0xe5,0xe5,0xe8,0xea,0xee,0xf3,0xf8,0xfc,
  0x00,0xff,0xf9,0xf5,0xf0,0xec,0xe9,0xe7,
  0xe6,0xe3,0xdf,0xdf,0xdf,0xe9,0xf5,0xff,
  0x06,0x07,0x03,0x01,0xfb,0xf7,0xf5,0xeb,
  0xe3,0xdc,0xd7,0xda,0xdf,0xeb,0xf9,0x04,
  0x0e,0x14,0x17,0x1c,0x1f,0x21,0x26,0x24,
  0x23,0x20,0x1b,0x1a,0x19,0x18,0x19,0x1a,
  0x1c,0x20,0x21,0x23,0x23,0x1c,0x10,0x02,
  0xf9,0xf3,0xef,0xee,0xed,0xeb,0xdc,0xcf,
  0xcc,0xcd,0xd5,0xe1,0xf1,0x03,0x17,0x28,
  0x37,0x42,0x47,0x4a,0x4c,0x4a,0x46,0x41,
  0x37,0x2d,0x24,0x1c,0x16,0x0f,0x0b,0x06,
  0x01,0xfe,0xfa,0xf7,0xf3,0xee,0xe8,0xe5,
  0xe3,0xe6,0xea,0xf0,0xf8,0xff,0x04,0x0e,
  0x17,0x1d,0x23,0x23,0x1f,0x1b,0x15,0x0d,
  0x06,0xfe,0xf4,0xeb,0xe2,0xdd,0xdb,0xda,
  0xd9,0xdc,0xe0,0xe5,0xeb,0xef,0xf2,0xf2,
  0xf1,0xf3,0xf4,0xf6,0xf5,0xef,0xe9,0xe7,
  0xe7,0xe7,0xe5,0xe2,0xe0,0xdf,0xe3,0xed,
  0xf8,0xfc,0xfd,0xf5,0xee,0xef,0xf1,0xf7,
  0xf9,0xf2,0xe3,0xd2,0xc9,0xcc,0xd7,0xe6,
  0xee,0xed,0xea,0xe6,0xea,0xf4,0xfc,0x03,
  0x07,0x09,0x0b,0x0c,0x0a,0x06,0xfd,0xf8,
  0xf8,0xfd,0x10,0x20,0x2f,0x34,0x2f,0x24,
  0x1b,0x08,0xf7,0xec,0xe5,0xe1,0xe0,0xe0,
  0xdf,0xdd,0xcb,0xba,0xb4,0xba,0xc9,0xdc,
  0xfa,0x12,0x2a,0x3e,0x4c,0x57,0x60,0x60,
  0x5b,0x51,0x46,0x3a,0x30,0x29,0x22,0x18,
  0x0e,0x04,0x00,0x00,0x00,0x00,0xfe,0xf9,
  0xf5,0xf3,0xf2,0xf4,0xf6,0xf7,0xfc,0x05,
  0x11,0x1f,0x2d,0x38,0x41,0x47,0x48,0x48,
  0x45,0x3f,0x35,0x25,0x10,0xff,0xf0,0xe2,
  0xdb,0xd8,0xd9,0xdc,0xe2,0xea,0xf0,0xf9,
  0x05,0x0e,0x13,0x16,0x15,0x12,0x0b,0x00,
  0xf7,0xf0,0xea,0xe5,0xe1,0xde,0xdc,0xd9,
  0xd8,0xdb,0xe2,0xe7,0xea,0xee,0xf1,0xf0,
  0xef,0xed,0xeb,0xea,0xea,0xec,0xf3,0xfc,
  0x02,0x01,0x02,0xfc,0xf1,0xdf,0xd3,0xcb,
  0xc5,0xc3,0xc1,0xbf,0xc0,0xc4,0xd0,0xe1,
  0xed,0xf7,0xfe,0x03,0x0b,0x12,0x1a,0x1b,
  0x1b,0x26,0x29,0x2e,0x3d,0x3f,0x24,0x08,
  0xf4,0xe4,0xdb,0xd5,0xd4,0xd3,0xd5,0xcc,
  0xc0,0xb5,0x87,0xab,0xb5,0xce,0xf4,0x0e,
  0x24,0x34,0x47,0x5f,0x77,0x74,0x78,0x6a,
  0x60,0x4a,0x33,0x22,0x16,0x0f,0x0b,0x08,
  0x05,0x03,0x02,0x00,0xff,0xfe,0xfc,0xef,
  0xe6,0xdc,0xdb,0xdf,0xe8,0xee,0xf9,0x0e,
  0x24,0x35,0x45,0x5c,0x6d,0x73,0x6e,0x68,
  0x5e,0x50,0x39,0x22,0x11,0x00,0xea,0xd7,
  0xce,0xca,0xcc,0xd2,0xdc,0xe7,0xf4,0x01,
  0x0b,0x11,0x18,0x1c,0x1c,0x19,0x13,0x0b,
  0x03,0xfb,0xf7,0xf4,0xf3,0xef,0xea,0xe7,
  0xea,0xeb,0xea,0xe6,0xe3,0xe2,0xe2,0xe2,
  0xe4,0xe9,0xe9,0xe9,0xea,0xed,0xf3,0xfa,
  0xfe,0xfc,0xf6,0xee,0xeb,0xea,0xe8,0xe3,
  0xda,0xd3,0xce,0xca,0xc7,0xca,0xd2,0xdc,
  0xeb,0xf7,0xfe,0x07,0x07,0x06,0x04,0x00,
  0xff,0x00,0xfe,0xf8,0xf4,0xf1,0xf3,0xf5,
  0xf8,0xfc,0x03,0x0f,0x1a,0x1f,0x13,0x00,
  0xf3,0xe9,0xe3,0xe1,0xe0,0xe1,0xdb,0xc7,
  0xba,0xb9,0xc8,0xdf,0xf5,0x07,0x1a,0x2d,
  0x40,0x4f,0x56,0x58,0x57,0x4f,0x41,0x32,
  0x24,0x1a,0x14,0x10,0x0d,0x08,0x00,0xfc,
  0xfd,0xfc,0xfa,0xfd,0x03,0x09,0x0b,0x0a,
  0x0a,0x0c,0x0e,0x12,0x1b,0x24,0x29,0x2f,
  0x35,0x3e,0x43,0x42,0x3e,0x38,0x2e,0x23,
  0x17,0x0f,0x06,0xf8,0xe9,0xe1,0xdf,0xdf,
  0xe1,0xe5,0xec,0xf2,0xf7,0xfe,0x04,0x0a,
  0x0c,0x0c,0x0c,0x0a,0x05,0x01,0xfe,0xf9,
  0xf4,0xf0,0xef,0xef,0xee,0xe8,0xe6,0xe8,
  0xe8,0xe8,0xe9,0xea,0xea,0xec,0xec,0xed,
  0xef,0xeb,0xea,0xeb,0xec,0xed,0xec,0xe7,
  0xe4,0xe0,0xda,0xda,0xde,0xe2,0xe3,0xe2,
  0xe5,0xe6,0xef,0xf7,0xff,0x08,0x08,0x00,
  0xfa,0xf2,0xec,0xed,0xf1,0xf8,0x00,0x03,
  0x04,0x0a,0x18,0x25,0x2f,0x2a,0x10,0xfc,
  0xeb,0xe1,0xdb,0xd9,0xd8,0xd8,0xd0,0xb3,
  0xa9,0xab,0xb6,0xca,0xe9,0x06,0x26,0x47,
  0x5d,0x63,0x60,0x5b,0x52,0x42,0x2e,0x21,
  0x17,0x12,0x0d,0x0b,0x06,0x00,0xfd,0xfb,
  0xff,0x05,0x08,0x0d,0x0e,0x0c,0x09,0x06,
  0x03,0x03,0x01,0x01,0x06,0x0e,0x17,0x23,
  0x32,0x3e,0x4b,0x52,0x54,0x52,0x49,0x3d,
  0x2e,0x1b,0x07,0xf9,0xef,0xe5,0xe0,0xdd,
  0xde,0xe6,0xf0,0xfb,0x06,0x0e,0x11,0x13,
  0x11,0x0c,0x07,0x01,0xfb,0xf4,0xea,0xe2,
  0xe0,0xe1,0xe2,0xe8,0xee,0xf1,0xf7,0xfb,
  0xfa,0xfc,0xf9,0xf4,0xf2,0xef,0xea,0xe7,
  0xe5,0xe0,0xdf,0xe0,0xe1,0xe7,0xec,0xef,
  0xf0,0xec,0xe5,0xe0,0xdd,0xd9,0xd6,0xd5,
  0xd4,0xcf,0xca,0xca,0xd5,0xe0,0xe9,0xf1,
  0xf8,0xfe,0xfc,0xfd,0x03,0x0b,0x0b,0x0f,
  0x0d,0x0b,0x0b,0x08,0x0d,0x16,0x1a,0x17,
  0x03,0xf0,0xe2,0xd8,0xd3,0xd1,0xd0,0xd0,
  0xc6,0xb5,0xa7,0xa6,0xb0,0xc5,0xe4,0x00,
  0x16,0x30,0x4d,0x5a,0x5d,0x5e,0x58,0x4d,
  0x40,0x2f,0x21,0x18,0x12,0x0e,0x0a,0x04,
  0x05,0x0d,0x0e,0x0b,0x0a,0x08,0x07,0x06,
  0x07,0x07,0x06,0xf9,0xea,0xe6,0xe9,0xef,
  0xfc,0x0d,0x1e,0x33,0x4a,0x5a,0x62,0x64,
  0x60,0x57,0x4c,0x3c,0x2d,0x1c,0x08,0xf6,
  0xea,0xe2,0xe0,0xe3,0xe8,0xf1,0xfc,0x03,
  0x0a,0x10,0x11,0x10,0x0f,0x0b,0x07,0x02,
  0xfc,0xf7,0xf5,0xf3,0xf3,0xf6,0xfa,0xfe,
  0xff,0xfe,0xfc,0xf8,0xf4,0xf0,0xeb,0xe5,
  0xe1,0xdf,0xe0,0xe4,0xe8,0xee,0xf3,0xf5,
  0xf3,0xf0,0xe9,0xe5,0xe4,0xe2,0xdc,0xd5,
  0xcc,0xc4,0xbc,0xbe,0xcc,0xd8,0xe3,0xea,
  0xef,0xf5,0x03,0x06,0xfc,0xf5,0xf4,0xf7,
  0xfd,0x02,0xff,0xf7,0xf1,0xf1,0x05,0x1e,
  0x29,0x2a,0x15,0xfe,0xed,0xdf,0xd8,0xd5,
  0xd6,0xd6,0xd6,0xc5,0xb4,0xad,0xab,0xbf,
  0xde,0xfd,0x15,0x38,0x52,0x58,0x57,0x56,
  0x57,0x49,0x35,0x27,0x1d,0x17,0x14,0x11,
  0x0f,0x09,0x00,0x00,0x08,0x13,0x1b,0x1a,
  0x15,0x13,0x12,0x10,0x0c,0x09,0x03,0xff,
  0xff,0x03,0x0e,0x19,0x23,0x30,0x3d,0x48,
  0x4d,0x4d,0x47,0x3d,0x31,0x25,0x1a,0x11,
  0x07,0xfd,0xf7,0xf6,0xf9,0x00,0x07,0x0f,
  0x15,0x19,0x1a,0x19,0x15,0x0d,0x03,0xfc,
  0xf5,0xf1,0xeb,0xe6,0xe5,0xe4,0xe5,0xe7,
  0xec,0xf3,0xf6,0xf7,0xf6,0xf7,0xf8,0xf6,
  0xf3,0xef,0xeb,0xea,0xe8,0xe7,0xe7,0xe7,
  0xe8,0xe8,0xeb,0xee,0xee,0xea,0xe4,0xdc,
  0xd5,0xd0,0xca,0xc7,0xc2,0xc1,0xcb,0xd8,
  0xe1,0xe9,0xee,0xf2,0xfd,0x08,0x08,0x05,
  0xff,0xf1,0xe6,0xde,0xda,0xdf,0xe4,0xeb,
  0xf4,0xfd,0x10,0x2c,0x3b,0x41,0x2c,0x0d,
  0xf7,0xe5,0xdc,0xd6,0xd6,0xd5,0xd3,0xbb,
  0xa8,0xa6,0xb0,0xc5,0xe0,0xfc,0x1b,0x3d,
  0x50,0x53,0x4e,0x4a,0x43,0x32,0x22,0x19,
  0x12,0x0d,0x04,0xf9,0xfc,0x02,0x0c,0x1a,
  0x26,0x24,0x1d,0x18,0x13,0x11,0x0f,0x0f,
  0x0f,0x07,0xf5,0xec,0xeb,0xf2,0x00,0x14,
  0x2b,0x42,0x52,0x5a,0x5e,0x5c,0x55,0x4a,
  0x39,0x27,0x13,0x00,0xf3,0xec,0xeb,0xed,
  0xf2,0xf9,0x03,0x10,0x1a,0x1d,0x1d,0x18,
  0x11,0x0b,0x05,0xfe,0xf7,0xf0,0xec,0xeb,
  0xed,0xf0,0xf6,0xfc,0x04,0x09,0x0b,0x0a,
  0x06,0xfe,0xf5,0xea,0xe0,0xd8,0xd3,0xce,
  0xcd,0xd2,0xdb,0xe3,0xf0,0xfc,0x00,0x01,
  0xff,0xf7,0xea,0xda,0xcb,0xbf,0xb8,0xbb,
  0xc0,0xc8,0xd4,0xde,0xe5,0xea,0xee,0xf0,
  0xff,0x0e,0x08,0xfe,0xf2,0xe8,0xe2,0xdd,
  0xdb,0xdd,0xe6,0xf0,0xf8,0x00,0x19,0x2e,
  0x3a,0x3b,0x21,0x07,0xf3,0xe4,0xdc,0xd8,
  0xd7,0xd2,0xbd,0xb1,0xa3,0xab,0xc0,0xe0,
  0xfa,0x1a,0x3c,0x4c,0x52,0x4e,0x4a,0x37,
  0x27,0x19,0x11,0x06,0x00,0xf9,0xf8,0xfd,
  0x03,0x15,0x25,0x36,0x36,0x2a,0x21,0x1a,
  0x14,0x12,0x10,0x10,0x04,0xf4,0xf0,0xf1,
  0xfb,0x08,0x19,0x2c,0x3f,0x52,0x5c,0x5d,
  0x55,0x48,0x36,0x25,0x12,0x03,0xfc,0xf6,
  0xf5,0xfb,0x04,0x0d,0x15,0x1b,0x21,0x25,
  0x22,0x1c,0x14,0x06,0xf9,0xee,0xe7,0xe4,
  0xe7,0xec,0xf3,0xfc,0x06,0x0e,0x14,0x15,
  0x14,0x0e,0x07,0x00,0xf4,0xe6,0xd9,0xce,
  0xc9,0xce,0xd3,0xdb,0xe5,0xec,0xf5,0xfe,
  0x03,0x05,0x03,0xfc,0xf2,0xe6,0xda,0xce,
  0xc2,0xba,0xba,0xbf,0xcb,0xd8,0xe1,0xe7,
  0xeb,0xee,0xef,0xf1,0xfc,0x0b,0x0e,0x07,
  0xf7,0xdd,0xcb,0xcd,0xd9,0xe4,0xef,0xf6,
  0xfb,0x00,0x0c,0x24,0x31,0x35,0x2c,0x0f,
  0xfa,0xe8,0xde,0xd7,0xd4,0xcb,0xbc,0xb8,
  0xbc,0xc5,0xcf,0xda,0xef,0x03,0x14,0x24,
  0x2d,0x2e,0x2b,0x20,0x12,0x0c,0x07,0x0a,
  0x14,0x1f,0x26,0x2a,0x29,0x28,0x2a,0x2a,
  0x24,0x1d,0x19,0x17,0x16,0x15,0x14,0x0c,
  0xfe,0xfb,0x00,0x08,0x12,0x1d,0x25,0x2c,
  0x32,0x37,0x3a,0x3b,0x38,0x2f,0x25,0x19,
  0x11,0x0d,0x0d,0x11,0x18,0x1e,0x23,0x25,
  0x24,0x21,0x1c,0x16,0x12,0x0c,0x04,0xfd,
  0xf6,0xf0,0xef,0xf0,0xf6,0xfd,0x02,0x0a,
  0x0f,0x0f,0x0c,0x04,0xfb,0xf1,0xe8,0xe2,
  0xde,0xdd,0xda,0xdb,0xdd,0xe3,0xea,0xf1,
  0xfa,0xff,0xfd,0xf9,0xf4,0xec,0xe3,0xdc,
  0xda,0xda,0xd7,0xd1,0xce,0xcd,0xcf,0xd5,
  0xe0,0xeb,0xed,0xea,0xe5,0xdd,0xd5,0xcc,
  0xc9,0xd2,0xdd,0xe6,0xed,0xf4,0x00,0x09,
  0xff,0xf0,0xe7,0xe7,0xee,0xf4,0xff,0xff,
  0x03,0x19,0x2b,0x34,0x38,0x27,0x08,0xf4,
  0xe3,0xd9,0xd2,0xd0,0xbe,0xaf,0xb6,0xc3,
  0xce,0xd6,0xe4,0xf1,0x01,0x15,0x24,0x29,
  0x26,0x1b,0x18,0x16,0x11,0x11,0x16,0x1d,
  0x28,0x34,0x3a,0x3c,0x34,0x2a,0x22,0x1c,
  0x18,0x17,0x17,0x16,0x0f,0x05,0x04,0x0a,
  0x0f,0x14,0x1b,0x24,0x2d,0x32,0x32,0x2d,
  0x28,0x27,0x28,0x29,0x28,0x22,0x1d,0x1b,
  0x1b,0x1f,0x23,0x24,0x26,0x25,0x22,0x1f,
  0x19,0x12,0x0b,0x07,0x04,0x04,0x05,0x05,
  0x02,0x00,0x00,0x02,0x04,0x03,0x00,0xfb,
  0xf5,0xf2,0xee,0xeb,0xe9,0xe7,0xe8,0xea,
  0xec,0xef,0xf1,0xf1,0xf0,0xed,0xe8,0xe3,
  0xdf,0xdb,0xd8,0xd9,0xdc,0xe1,0xe4,0xe6,
  0xe6,0xe6,0xe7,0xe5,0xdf,0xd6,0xcb,0xc2,
  0xc3,0xca,0xd4,0xdb,0xdc,0xde,0xe2,0xea,
  0xf2,0xf2,0xea,0xe2,0xe2,0xe8,0xee,0x02,
  0x0f,0x0a,0xf8,0xe2,0xd6,0xda,0xe4,0xef,
  0xfb,0x09,0x1b,0x2f,0x34,0x2a,0x20,0x0c,
  0xf6,0xe5,0xdb,0xd3,0xcd,0xb4,0xa9,0xbd,
  0xd1,0xe5,0xf6,0xfd,0x00,0xff,0xff,0x03,
  0x05,0x00,0xff,0x04,0x0e,0x1c,0x26,0x2e,
  0x35,0x3d,0x47,0x4f,0x4c,0x3f,0x30,0x22,
  0x1d,0x1b,0x1b,0x1e,0x21,0x21,0x23,0x29,
  0x2a,0x2a,0x21,0x17,0x11,0x10,0x11,0x13,
  0x12,0x12,0x15,0x1f,0x2c,0x36,0x3a,0x38,
  0x32,0x2b,0x23,0x1d,0x19,0x16,0x16,0x19,
  0x1c,0x1f,0x1f,0x1c,0x17,0x13,0x0e,0x0a,
  0x06,0xff,0xf6,0xee,0xeb,0xed,0xf0,0xf4,
  0xf8,0xfa,0xfa,0xfa,0xfb,0xf9,0xf5,0xef,
  0xe9,0xe4,0xe1,0xdf,0xe0,0xe2,0xe4,0xe6,
  0xe9,0xec,0xec,0xe8,0xe1,0xdb,0xd8,0xd6,
  0xd8,0xd8,0xdb,0xdb,0xdd,0xdd,0xdc,0xda,
  0xda,0xda,0xd9,0xd8,0xd5,0xd1,0xce,0xd5,
  0xdf,0xe6,0xf5,0x06,0x06,0xf9,0xe8,0xd9,
  0xe0,0xf1,0x00,0x05,0xfa,0xf1,0xe8,0xe8,
  0xec,0xef,0xee,0xec,0xed,0xf8,0x10,0x26,
  0x2e,0x2d,0x26,0x20,0x10,0xfa,0xea,0xe0,
  0xd1,0xc3,0xc2,0xd3,0xe1,0xe6,0xe9,0xee,
  0xf7,0xfc,0xff,0xf8,0xf3,0xee,0xef,0xfb,
  0x10,0x21,0x30,0x38,0x46,0x53,0x57,0x4e,
  0x3f,0x2e,0x1c,0x15,0x19,0x20,0x23,0x24,
  0x2c,0x37,0x42,0x3e,0x34,0x2c,0x24,0x16,
  0x09,0x08,0x07,0x06,0x08,0x13,0x22,0x32,
  0x3a,0x3c,0x36,0x2b,0x22,0x1c,0x18,0x15,
  0x11,0x13,0x1b,0x24,0x2b,0x2e,0x2a,0x23,
  0x18,0x0c,0x02,0xf9,0xed,0xe4,0xe2,0xe9,
  0xf3,0xfb,0x01,0x01,0xfe,0xf8,0xf5,0xf1,
  0xea,0xe3,0xdf,0xe0,0xe3,0xe7,0xeb,0xeb,
  0xe8,0xe5,0xe5,0xe5,0xe2,0xda,0xd5,0xd3,
  0xd3,0xd7,0xda,0xde,0xde,0xdd,0xdd,0xdd,
  0xdb,0xd9,0xd7,0xd6,0xd4,0xd3,0xcf,0xcd,
  0xcc,0xd0,0xda,0xe8,0xf6,0xfc,0xf7,0xf1,
  0xeb,0xe3,0xdf,0xe1,0xe2,0xed,0xfd,0x11,
  0x1e,0x1e,0x10,0xf2,0xd1,0xbc,0xc5,0xd6,
  0xe8,0xf6,0x0a,0x22,0x22,0x2a,0x29,0x26,
  0x1b,0x0f,0x0c,0x01,0xf4,0xdd,0xd0,0xd5,
  0xdf,0xf2,0x03,0x01,0xfb,0xf3,0xe2,0xd3,
  0xc9,0xd3,0xe9,0x01,0x13,0x1b,0x28,0x35,
  0x37,0x33,0x30,0x32,0x32,0x2c,0x28,0x27,
  0x28,0x2e,0x38,0x48,0x52,0x4c,0x3f,0x33,
  0x26,0x18,0x0c,0x0e,0x12,0x15,0x19,0x21,
  0x2c,0x2d,0x21,0x16,0x10,0x0c,0x0e,0x13,
  0x1b,0x20,0x20,0x22,0x26,0x29,0x27,0x23,
  0x22,0x1e,0x16,0x0c,0x08,0x06,0x05,0x06,
  0x0c,0x13,0x13,0x0a,0xfe,0xf3,0xea,0xe5,
  0xe5,0xe8,0xeb,0xee,0xf0,0xf4,0xf7,0xf4,
  0xf1,0xec,0xe6,0xe0,0xda,0xd7,0xd7,0xd9,
  0xdc,0xe1,0xe7,0xe9,0xe6,0xe1,0xdb,0xd8,
  0xd5,0xd5,0xd6,0xd8,0xda,0xdd,0xe0,0xe0,
  0xe0,0xe1,0xe0,0xdf,0xde,0xdb,0xd6,0xd2,
  0xd3,0xd4,0xdd,0xe8,0xf5,0xff,0xff,0xfb,
  0xf5,0xeb,0xdf,0xd8,0xdd,0xe9,0xf5,0x0e,
  0x22,0x1d,0x0e,0x02,0xed,0xe1,0xd9,0xd2,
  0xdd,0xed,0xfd,0x13,0x21,0x28,0x17,0x11,
  0x10,0x0e,0x1c,0x20,0x2a,0x25,0x13,0x01,
  0xf0,0xe0,0xd9,0xd6,0xe4,0xf0,0xf4,0xf6,
  0xeb,0xdd,0xd7,0xe1,0xf0,0xff,0x06,0x07,
  0x09,0x0d,0x1a,0x26,0x36,0x41,0x46,0x45,
  0x3c,0x35,0x2f,0x29,0x28,0x2e,0x37,0x3e,
  0x3f,0x3d,0x35,0x2b,0x29,0x2d,0x30,0x2b,
  0x23,0x1f,0x1f,0x1d,0x1e,0x1e,0x1c,0x1c,
  0x19,0x1b,0x1d,0x1d,0x1b,0x17,0x17,0x16,
  0x17,0x1a,0x1c,0x1c,0x18,0x14,0x13,0x0e,
  0x0b,0x0a,0x0c,0x0f,0x0d,0x06,0xfc,0xf0,
  0xe7,0xe3,0xe5,0xea,0xed,0xf1,0xf1,0xed,
  0xea,0xe5,0xe1,0xde,0xdc,0xdc,0xdd,0xde,
  0xe0,0xdf,0xde,0xde,0xde,0xdd,0xdc,0xda,
  0xd7,0xd3,0xd1,0xd5,0xd8,0xdd,0xe1,0xe4,
  0xe4,0xe2,0xde,0xd9,0xd3,0xd0,0xd1,0xd4,
  0xdb,0xe2,0xe6,0xe9,0xe9,0xe6,0xe2,0xe1,
  0xe0,0xdf,0xe2,0xe8,0xf3,0xfc,0x00,0xff,
  0xfd,0xf7,0xfa,0x05,0x0e,0x12,0x05,0xf6,
  0xe5,0xd1,0xd5,0xe5,0xfb,0x16,0x28,0x30,
  0x24,0x08,0xeb,0xd8,0xd2,0xdf,0xfb,0x31,
  0x56,0x60,0x54,0x30,0x0d,0xe5,0xc6,0xc1,
  0xd6,0xed,0x00,0x14,0x12,0x07,0xfb,0xeb,
  0xdf,0xd9,0xda,0xe2,0xf9,0x0d,0x1e,0x2a,
  0x34,0x38,0x30,0x22,0x17,0x13,0x11,0x18,
  0x26,0x3d,0x4c,0x53,0x53,0x48,0x30,0x17,
  0x0c,0x0e,0x19,0x27,0x3b,0x4c,0x51,0x44,
  0x30,0x18,0x06,0xfd,0xff,0x0b,0x19,0x23,
  0x29,0x29,0x24,0x19,0x0f,0x08,0x04,0x03,
  0x05,0x0a,0x11,0x15,0x16,0x15,0x13,0x0c,
  0x04,0xfe,0xf9,0xf7,0xf6,0xf7,0xfa,0xfb,
  0xf8,0xf3,0xec,0xe3,0xdc,0xd9,0xdb,0xe0,
  0xe5,0xea,0xec,0xea,0xe4,0xdd,0xd7,0xd3,
  0xd4,0xd8,0xde,0xe5,0xe9,0xe8,0xe4,0xe1,
  0xde,0xdd,0xdc,0xdd,0xdf,0xe2,0xe4,0xe5,
  0xe5,0xe4,0xe0,0xda,0xd6,0xd4,0xd8,0xde,
  0xe6,0xec,0xe9,0xe3,0xde,0xde,0xde,0xe6,
  0xf9,0x05,0x09,0x00,0xf3,0xe9,0xf0,0xf7,
  0x01,0x14,0x15,0x10,0x0d,0x05,0xfa,0xf8,
  0xfd,0xf5,0xea,0xe7,0xec,0xfa,0x0e,0x1b,
  0x19,0x05,0xf2,0xee,0xef,0xec,0xf8,0x15,
  0x33,0x3d,0x3d,0x3c,0x2c,0x0c,0xef,0xe7,
  0xe9,0xef,0xf7,0x0a,0x13,0x08,0xff,0xf7,
  0xea,0xd9,0xd0,0xdb,0xf3,0x08,0x17,0x1d,
  0x1f,0x16,0x07,0x01,0x08,0x14,0x22,0x32,
  0x44,0x4c,0x44,0x37,0x31,0x2d,0x26,0x25,
  0x2d,0x37,0x38,0x38,0x3b,0x3f,0x39,0x2a,
  0x21,0x1b,0x16,0x13,0x17,0x1f,0x23,0x20,
  0x1c,0x17,0x0e,0x04,0x01,0x07,0x0f,0x13,
  0x13,0x14,0x10,0x08,0x01,0x00,0x01,0x00,
  0x00,0x03,0x07,0x06,0x00,0xfb,0xf4,0xe9,
  0xe1,0xe0,0xe4,0xea,0xeb,0xed,0xed,0xe8,
  0xdf,0xda,0xd8,0xd9,0xdc,0xe1,0xe5,0xe4,
  0xdf,0xdb,0xd9,0xd9,0xda,0xdc,0xde,0xdf,
  0xdd,0xdf,0xe3,0xe4,0xe3,0xe1,0xdf,0xdf,
  0xdf,0xe0,0xe3,0xe3,0xe2,0xe2,0xe4,0xe4,
  0xe4,0xe3,0xe4,0xe7,0xeb,0xed,0xf0,0xef,
  0xec,0xec,0xed,0xf2,0xf6,0xf8,0xfc,0x00,
  0xff,0xfc,0xf8,0xf4,0xf3,0xf7,0x02,0x0f,
  0x1a,0x1a,0x0d,0xfc,0xec,0xde,0xe0,0xea,
  0x00,0x13,0x18,0x18,0x0b,0xfa,0xe5,0xda,
  0xe7,0x00,0x20,0x35,0x37,0x2a,0x15,0x08,
  0x03,0x0b,0x07,0x04,0x04,0x0d,0x12,0x0e,
  0x09,0xff,0xee,0xdd,0xe0,0xea,0xef,0xf3,
  0xff,0x0e,0x13,0x0c,0xfe,0xf9,0xf9,0x01,
  0x17,0x2f,0x39,0x35,0x2e,0x2c,0x2b,0x26,
  0x27,0x2e,0x36,0x39,0x3d,0x3e,0x39,0x2f,
  0x27,0x2a,0x30,0x31,0x2d,0x2c,0x2b,0x29,
  0x26,0x21,0x1b,0x0f,0x05,0x05,0x0d,0x13,
  0x16,0x17,0x17,0x12,0x06,0xff,0xfc,0xfe,
  0x00,0x07,0x10,0x11,0x0b,0x01,0xfc,0xf9,
  0xf6,0xf5,0xf7,0xf8,0xf5,0xf2,0xee,0xeb,
  0xe6,0xe2,0xe1,0xe3,0xe6,0xe5,0xe6,0xe6,
  0xe4,0xe1,0xdd,0xdb,0xda,0xda,0xdc,0xe2,
  0xe5,0xe6,0xe3,0xe0,0xdd,0xdc,0xde,0xe2,
  0xe7,0xe7,0xe3,0xe0,0xde,0xde,0xe0,0xe3,
  0xe7,0xe9,0xe8,0xe6,0xe2,0xe0,0xe3,0xe8,
  0xee,0xf1,0xf2,0xf3,0xf1,0xf0,0xf3,0xf5,
  0xf7,0xf8,0xf9,0xfc,0xfc,0xfb,0xfb,0xf6,
  0xee,0xea,0xf2,0x08,0x1b,0x20,0x1d,0x0f,
  0xfc,0xeb,0xe6,0xee,0xf6,0x00,0x0e,0x14,
  0x0f,0xfe,0xf3,0xf6,0xf5,0xfb,0x05,0x0d,
  0x13,0x11,0x0c,0x0f,0x0a,0x06,0x0b,0x10,
  0x1b,0x21,0x22,0x1b,0x08,0xf6,0xf2,0xf4,
  0xfb,0xff,0x03,0x06,0x01,0xfa,0xf5,0xf4,
  0xfb,0x01,0x09,0x11,0x0f,0x0a,0x0b,0x0f,
  0x15,0x1a,0x21,0x28,0x29,0x26,0x28,0x2a,
  0x2a,0x27,0x28,0x2d,0x2f,0x2e,0x2d,0x2c,
  0x2b,0x2e,0x32,0x33,0x2f,0x2a,0x25,0x23,
  0x1f,0x19,0x15,0x11,0x0e,0x0e,0x0d,0x0e,
  0x0d,0x0c,0x0b,0x07,0x04,0x00,0xff,0x00,
  0x02,0x03,0x02,0xff,0xfc,0xfb,0xfc,0xfe,
  0xff,0xfc,0xf9,0xf4,0xef,0xea,0xe6,0xe5,
  0xe6,0xe9,0xe9,0xe6,0xe3,0xe0,0xe1,0xe3,
  0xe5,0xe5,0xe2,0xdf,0xde,0xdc,0xdc,0xdb,
  0xdb,0xdd,0xdf,0xe0,0xe2,0xe1,0xe0,0xe0,
  0xe1,0xe2,0xe1,0xe1,0xe3,0xe5,0xe6,0xe6,
  0xe7,0xe9,0xe8,0xe7,0xe7,0xe6,0xe3,0xe1,
  0xe6,0xeb,0xee,0xf1,0xf4,0xf5,0xf3,0xf1,
  0xf1,0xf7,0xfa,0xfb,0xfd,0xfc,0xfb,0xf8,
  0xf4,0xf1,0xef,0xf2,0x00,0x09,0x0f,0x0e,
  0x04,0xfb,0xf4,0xf2,0xfc,0x06,0x0a,0x04,
  0xfc,0xfa,0xfd,0xff,0xfd,0xff,0xff,0x04,
  0x0d,0x0e,0x0c,0x04,0x07,0x14,0x22,0x24,
  0x1e,0x18,0x15,0x17,0x16,0x16,0x14,0x0c,
  0x04,0x01,0x04,0x02,0xfc,0xfa,0xfd,0x02,
  0x04,0x00,0xfb,0xfc,0xfd,0x03,0x0d,0x11,
  0x10,0x0e,0x13,0x1b,0x1f,0x21,0x23,0x28,
  0x2a,0x29,0x2a,0x27,0x24,0x24,0x28,0x2f,
  0x33,0x31,0x31,0x32,0x30,0x30,0x2f,0x2c,
  0x27,0x22,0x20,0x21,0x1e,0x19,0x16,0x11,
  0x0c,0x09,0x06,0x06,0x08,0x08,0x07,0x05,
  0x00,0xfb,0xf9,0xfb,0xff,0x01,0x00,0xff,
  0xfc,0xf9,0xf8,0xf6,0xf6,0xf5,0xf3,0xf2,
  0xf0,0xed,0xea,0xe8,0xe9,0xe8,0xe7,0xe5,
  0xe4,0xe3,0xe3,0xe1,0xe0,0xdd,0xdc,0xdb,
  0xdc,0xde,0xde,0xdd,0xdd,0xde,0xdf,0xe0,
  0xe1,0xe1,0xe2,0xe2,0xe3,0xe4,0xe4,0xe3,
  0xe4,0xe5,0xe5,0xe6,0xe7,0xe8,0xe7,0xe5,
  0xe5,0xe6,0xe7,0xea,0xeb,0xed,0xef,0xf2,
  0xf1,0xf0,0xef,0xf0,0xf5,0xf8,0xfa,0xfb,
  0xfa,0xf7,0xf6,0xfa,0xfc,0xf9,0xf8,0xfa,
  0x00,0x06,0x08,0x05,0x04,0xff,0xfa,0xfc,
  0x01,0x0c,0x07,0x01,0xfa,0xf1,0xf2,0xf7,
  0x0d,0x1b,0x15,0x07,0xf6,0xf6,0xfc,0x05,
  0x16,0x1f,0x22,0x1d,0x12,0x0b,0x0c,0x18,
  0x30,0x3b,0x2b,0x0d,0xf9,0xfa,0x0a,0x13,
  0x12,0x09,0xfb,0xf3,0xf8,0x02,0x0b,0x0e,
  0x0a,0x07,0x02,0xfb,0xfb,0x04,0x10,0x18,
  0x1e,0x1e,0x17,0x13,0x17,0x26,0x33,0x31,
  0x2c,0x24,0x20,0x20,0x25,0x2b,0x2f,0x2f,
  0x30,0x2d,0x2c,0x2a,0x28,0x2b,0x2b,0x28,
  0x22,0x17,0x12,0x10,0x12,0x14,0x11,0x0c,
  0x07,0x05,0x04,0x03,0x02,0xff,0xfc,0xfa,
  0xf9,0xf9,0xf8,0xf6,0xf6,0xf6,0xf5,0xf5,
  0xf3,0xf3,0xf2,0xf1,0xee,0xe9,0xe5,0xe4,
  0xe6,0xe9,0xe9,0xe6,0xe1,0xde,0xdd,0xde,
  0xdf,0xdf,0xdd,0xda,0xd9,0xd8,0xd7,0xd7,
  0xd9,0xdc,0xde,0xde,0xdd,0xdd,0xdd,0xdf,
  0xe0,0xe1,0xdf,0xde,0xdf,0xe3,0xe6,0xe6,
  0xe8,0xea,0xeb,0xeb,0xea,0xec,0xed,0xef,
  0xf1,0xf0,0xec,0xe9,0xeb,0xf3,0xf7,0xf6,
  0xf3,0xef,0xee,0xf0,0xf8,0x00,0x02,0xff,
  0xfb,0xf8,0xf8,0xf8,0xfd,0x03,0x07,0x04,
  0x00,0xfe,0xfc,0xfe,0x04,0x0f,0x14,0x0d,
  0x01,0xf9,0xfb,0x00,0x06,0x0b,0x07,0x00,
  0xfb,0x01,0x0e,0x16,0x16,0x12,0x0f,0x05,
  0x00,0x05,0x10,0x1c,0x1f,0x21,0x1f,0x12,
  0x08,0x11,0x23,0x2b,0x23,0x17,0x0c,0x03,
  0xfe,0x05,0x10,0x12,0x0a,0x09,0x0d,0x06,
  0x00,0x00,0x0a,0x10,0x10,0x0c,0x0b,0x05,
  0x03,0x11,0x1f,0x24,0x21,0x1f,0x21,0x1f,
  0x1e,0x21,0x26,0x25,0x23,0x24,0x25,0x23,
  0x23,0x26,0x2a,0x2a,0x28,0x26,0x22,0x1d,
  0x1a,0x1a,0x16,0x11,0x0d,0x0b,0x09,0x06,
  0x04,0x05,0x07,0x05,0x04,0x00,0xfb,0xf8,
  0xf7,0xfa,0xfd,0xfc,0xfa,0xf8,0xf6,0xf5,
  0xf4,0xf4,0xf5,0xf5,0xf2,0xef,0xeb,0xe7,
  0xe5,0xe7,0xe9,0xea,0xe7,0xe4,0xe2,0xe0,
  0xe0,0xe1,0xe0,0xe0,0xdf,0xdf,0xe0,0xdf,
  0xdd,0xdd,0xde,0xe1,0xe4,0xe5,0xe5,0xe3,
  0xe1,0xe0,0xe0,0xe1,0xe3,0xe6,0xe9,0xe9,
  0xe9,0xe6,0xe5,0xe7,0xed,0xf2,0xf2,0xee,
  0xeb,0xe9,0xe9,0xec,0xf1,0xf5,0xf5,0xf3,
  0xf3,0xf4,0xf2,0xf2,0xf5,0xfa,0xfe,0xfc,
  0x00,0xff,0xfc,0xfc,0xfd,0x03,0x06,0x06,
  0x06,0x03,0x03,0x00,0xff,0x04,0x06,0x09,
  0x06,0x03,0x03,0x03,0x04,0x03,0x06,0x05,
  0x04,0x05,0x04,0x06,0x02,0x02,0x0a,0x15,
  0x18,0x10,0x0d,0x07,0x0a,0x13,0x1a,0x1c,
  0x15,0x0c,0x0e,0x18,0x1d,0x21,0x1e,0x1a,
  0x17,0x14,0x17,0x19,0x12,0x0a,0x0a,0x0e,
  0x0b,0x06,0x01,0x02,0x07,0x0a,0x09,0x08,
  0x05,0x04,0x09,0x0c,0x0e,0x0b,0x0a,0x0d,
  0x14,0x14,0x13,0x13,0x13,0x17,0x1a,0x1c,
  0x1a,0x18,0x16,0x19,0x1c,0x1a,0x17,0x18,
  0x1a,0x1e,0x1f,0x1b,0x16,0x13,0x11,0x12,
  0x11,0x0e,0x0c,0x0b,0x09,0x08,0x05,0x02,
  0x01,0x01,0x02,0x01,0xfe,0xf6,0xf4,0xf4,
  0xf6,0xf8,0xf8,0xf7,0xf5,0xf3,0xf2,0xf2,
  0xf1,0xf0,0xf1,0xf1,0xed,0xe9,0xe5,0xe5,
  0xe7,0xe9,0xea,0xea,0xe6,0xe3,0xe2,0xe3,
  0xe4,0xe3,0xe4,0xe5,0xe5,0xe2,0xdf,0xde,
  0xe0,0xe3,0xe6,0xe9,0xe7,0xe3,0xe3,0xe5,
  0xe8,0xe9,0xe9,0xea,0xea,0xe9,0xea,0xec,
  0xeb,0xeb,0xee,0xee,0xed,0xeb,0xed,0xee,
  0xef,0xf0,0xf1,0xf2,0xf1,0xf0,0xf4,0xf8,
  0xf8,0xf6,0xf6,0xf7,0xf8,0xfa,0xfe,0xff,
  0x00,0x00,0x01,0x02,0x00,0xff,0x03,0x06,
  0x03,0x00,0xfe,0x00,0x01,0x07,0x0e,0x0d,
  0x0a,0x03,0x00,0x02,0x09,0x0c,0x0e,0x09,
  0xff,0xfc,0xfe,0x0a,0x12,0x13,0x11,0x0b,
  0x07,0x03,0x05,0x09,0x11,0x17,0x16,0x12,
  0x09,0x05,0x0e,0x1f,0x2b,0x27,0x1e,0x14,
  0x13,0x19,0x1f,0x21,0x1c,0x15,0x15,0x16,
  0x14,0x10,0x0f,0x11,0x14,0x12,0x0a,0x07,
  0x05,0x08,0x0c,0x0a,0x05,0x02,0x05,0x0a,
  0x10,0x10,0x0e,0x0a,0x08,0x0d,0x11,0x12,
  0x11,0x12,0x12,0x12,0x11,0x10,0x11,0x14,
  0x18,0x1c,0x19,0x13,0x0e,0x0e,0x11,0x12,
  0x12,0x0f,0x0c,0x0b,0x0a,0x09,0x06,0x05,
  0x04,0x04,0x02,0xff,0xfb,0xf9,0xfa,0xfc,
  0xfd,0xfa,0xf6,0xf4,0xf5,0xf7,0xf7,0xf5,
  0xf4,0xf3,0xf1,0xf0,0xed,0xeb,0xea,0xeb,
  0xee,0xee,0xeb,0xe8,0xe7,0xe7,0xe7,0xe7,
  0xe6,0xe5,0xe5,0xe5,0xe5,0xe3,0xe1,0xe2,
  0xe5,0xe6,0xe7,0xe5,0xe4,0xe2,0xe3,0xe4,
  0xe5,0xe4,0xe6,0xe7,0xe7,0xe7,0xe6,0xe7,
  0xe9,0xeb,0xee,0xef,0xec,0xeb,0xeb,0xed,
  0xee,0xed,0xee,0xef,0xf0,0xf0,0xf1,0xf1,
  0xf1,0xf2,0xf5,0xfa,0xf8,0xf4,0xf4,0xf5,
  0xf9,0xfb,0xfd,0xfe,0xfc,0xfb,0xff,0x01,
  0x01,0x01,0x03,0x06,0x03,0x00,0xff,0x00,
  0x05,0x0a,0x0d,0x0d,0x07,0x05,0x06,0x0b,
  0x10,0x10,0x13,0x0e,0x07,0x04,0x04,0x08,
  0x0b,0x12,0x11,0x0e,0x0a,0x0b,0x0f,0x11,
  0x12,0x17,0x1a,0x15,0x16,0x19,0x18,0x18,
  0x19,0x20,0x23,0x1e,0x1d,0x1e,0x20,0x1c,
  0x1c,0x1c,0x1b,0x1a,0x1c,0x1a,0x13,0x0a,
  0x08,0x09,0x0c,0x12,0x14,0x11,0x08,0x00,
  0xfe,0x00,0x02,0x0a,0x0f,0x0b,0x04,0xfd,
  0xf9,0xfc,0x02,0x0e,0x16,0x14,0x0b,0x02,
  0x00,0x00,0x07,0x10,0x16,0x15,0x10,0x0b,
  0x06,0x06,0x0a,0x11,0x17,0x17,0x0f,0x05,
  0x00,0x00,0x03,0x0a,0x0d,0x0a,0x02,0xfd,
  0xf9,0xfa,0xfd,0x00,0x02,0x00,0xfb,0xf6,
  0xf2,0xf2,0xf5,0xfa,0xfd,0xfa,0xf6,0xf3,
  0xf1,0xf1,0xf3,0xf4,0xf3,0xf2,0xf0,0xec,
  0xe9,0xea,0xec,0xed,0xee,0xee,0xeb,0xe8,
  0xe6,0xe6,0xe7,0xe8,0xe9,0xea,0xe8,0xe5,
  0xe5,0xe5,0xe6,0xe8,0xea,0xea,0xea,0xe8,
  0xe5,0xe4,0xe6,0xea,0xec,0xed,0xec,0xea,
  0xe9,0xe9,0xeb,0xee,0xf1,0xf2,0xf1,0xef,
  0xed,0xed,0xef,0xf2,0xf4,0xf4,0xf2,0xf1,
  0xf2,0xf3,0xf5,0xf7,0xf8,0xfa,0xfa,0xfb,
  0xfa,0xfa,0xfb,0xfe,0x01,0x03,0x05,0x04,
  0x02,0x03,0x04,0x05,0x05,0x04,0x05,0x05,
  0x04,0x03,0x03,0x05,0x09,0x0d,0x0d,0x0a,
  0x0a,0x08,0x09,0x09,0x0a,0x0e,0x11,0x10,
  0x0f,0x09,0x06,0x0a,0x11,0x19,0x17,0x13,
  0x10,0x11,0x14,0x18,0x1b,0x1d,0x1d,0x1d,
  0x1b,0x17,0x16,0x1c,0x22,0x25,0x23,0x1d,
  0x17,0x12,0x15,0x1b,0x1a,0x13,0x0b,0x09,
  0x07,0x08,0x0b,0x10,0x11,0x0d,0x07,0x01,
  0xfe,0xff,0x06,0x0d,0x0d,0x09,0x01,0xfd,
  0xfe,0x04,0x0b,0x0f,0x0d,0x0b,0x07,0x02,
  0x01,0x04,0x0a,0x10,0x12,0x11,0x0b,0x07,
  0x07,0x0b,0x11,0x13,0x12,0x0f,0x0b,0x08,
  0x06,0x06,0x07,0x0b,0x0b,0x0b,0x07,0x02,
  0x00,0xff,0x00,0x01,0x00,0xff,0xfe,0xfc,
  0xfa,0xf8,0xf8,0xf9,0xf9,0xf8,0xf6,0xf3,
  0xf0,0xf0,0xf0,0xf0,0xef,0xee,0xed,0xeb,
  0xea,0xe9,0xe8,0xe8,0xe8,0xe7,0xe5,0xe4,
  0xe3,0xe3,0xe4,0xe4,0xe4,0xe3,0xe1,0xe1,
  0xe1,0xe2,0xe3,0xe4,0xe5,0xe5,0xe4,0xe3,
  0xe3,0xe3,0xe5,0xe7,0xe8,0xe7,0xe7,0xe7,
  0xe9,0xea,0xec,0xed,0xed,0xed,0xed,0xed,
  0xee,0xee,0xef,0xf1,0xf2,0xf2,0xf3,0xf4,
  0xf4,0xf5,0xf7,0xf8,0xf7,0xf8,0xfa,0xfc,
  0xfb,0xfc,0xfe,0xfd,0xfe,0xfe,0xff,0x00,
  0x00,0x01,0x02,0x02,0x02,0x02,0x03,0x02,
  0x04,0x03,0x02,0x01,0x01,0x03,0x05,0x07,
  0x09,0x0c,0x0d,0x0e,0x0c,0x0a,0x0a,0x0a,
  0x0b,0x0e,0x11,0x10,0x11,0x12,0x12,0x12,
  0x12,0x15,0x18,0x18,0x16,0x16,0x16,0x16,
  0x17,0x1c,0x21,0x23,0x23,0x22,0x1e,0x1a,
  0x18,0x1b,0x20,0x21,0x21,0x21,0x1f,0x19,
  0x13,0x13,0x15,0x16,0x15,0x15,0x14,0x0e,
  0x09,0x0a,0x0b,0x0a,0x0a,0x0c,0x0d,0x08,
  0x03,0x02,0x02,0x02,0x02,0x03,0x03,0x03,
  0x03,0x03,0x03,0x02,0x03,0x04,0x05,0x05,
  0x06,0x07,0x07,0x06,0x05,0x06,0x07,0x07,
  0x09,0x0b,0x0a,0x09,0x07,0x06,0x05,0x05,
  0x05,0x06,0x07,0x05,0x03,0x02,0x00,0xff,
  0xfe,0xff,0xfd,0xfc,0xfc,0xfb,0xf8,0xf5,
  0xf4,0xf4,0xf3,0xf3,0xf3,0xf1,0xef,0xed,
  0xec,0xeb,0xea,0xea,0xeb,0xea,0xe8,0xe7,
  0xe6,0xe4,0xe3,0xe4,0xe5,0xe4,0xe4,0xe4,
  0xe4,0xe3,0xe2,0xe2,0xe2,0xe1,0xe2,0xe3,
  0xe2,0xe2,0xe2,0xe2,0xe3,0xe3,0xe5,0xe5,
  0xe6,0xe6,0xe6,0xe6,0xe7,0xe9,0xea,0xeb,
  0xeb,0xed,0xee,0xef,0xf0,0xf1,0xf1,0xf1,
  0xf2,0xf2,0xf2,0xf3,0xf5,0xf5,0xf6,0xf9,
  0xf9,0xfb,0xfb,0xfb,0xfc,0xfd,0xfd,0xff,
  0x01,0x02,0x04,0x04,0x04,0x05,0x06,0x06,
  0x08,0x0a,0x0a,0x08,0x08,0x0a,0x0b,0x0c,
  0x0d,0x10,0x10,0x0e,0x0c,0x0c,0x0d,0x0d,
  0x0e,0x12,0x14,0x13,0x12,0x12,0x13,0x13,
  0x13,0x14,0x15,0x14,0x13,0x12,0x14,0x17,
  0x19,0x1c,0x1e,0x1d,0x1b,0x19,0x19,0x1a,
  0x1a,0x1d,0x20,0x20,0x1d,0x1c,0x1a,0x19,
  0x1a,0x1d,0x1e,0x1e,0x1f,0x1e,0x1a,0x16,
  0x16,0x16,0x14,0x12,0x13,0x13,0x0e,0x0b,
  0x0c,0x0d,0x08,0x08,0x0a,0x09,0x03,0x00,
  0x00,0x00,0xfc,0xfc,0xff,0x00,0x00,0xff,
  0x00,0x00,0xfe,0xfd,0xfe,0x00,0xfd,0xfc,
  0xfe,0xff,0xfe,0xff,0x00,0x00,0x00,0x00,
  0x03,0x01,0x02,0x01,0x00,0xff,0xfe,0xff,
  0x00,0x00,0x00,0x00,0xff,0xfc,0xfb,0xfb,
  0xfa,0xf7,0xf8,0xf8,0xf6,0xf4,0xf3,0xf2,
  0xf2,0xf1,0xf1,0xf2,0xf1,0xef,0xee,0xed,
  0xeb,0xe9,0xe9,0xe9,0xe9,0xe8,0xe8,0xe8,
  0xe7,0xe6,0xe6,0xe6,0xe5,0xe5,0xe6,0xe5,
  0xe4,0xe3,0xe3,0xe4,0xe5,0xe5,0xe7,0xe7,
  0xe7,0xe7,0xe7,0xe6,0xe6,0xe6,0xe7,0xe8,
  0xe9,0xe9,0xea,0xeb,0xec,0xec,0xee,0xef,
  0xee,0xef,0xf0,0xf1,0xf1,0xf1,0xf2,0xf3,
  0xf4,0xf4,0xf7,0xf8,0xf8,0xf9,0xfa,0xfa,
  0xfc,0xfd,0xfd,0xfd,0xff,0xfd,0xfd,0xff,
  0x00,0x02,0x03,0x05,0x05,0x04,0x03,0x04,
  0x05,0x06,0x07,0x09,0x0b,0x0b,0x0c,0x0e,
  0x11,0x12,0x0f,0x0f,0x0d,0x09,0x06,0x08,
  0x0d,0x10,0x14,0x19,0x1a,0x16,0x14,0x15,
  0x15,0x13,0x16,0x1a,0x1a,0x19,0x19,0x1b,
  0x1d,0x1c,0x1f,0x22,0x20,0x1a,0x17,0x16,
  0x15,0x16,0x1a,0x1f,0x20,0x1f,0x1c,0x19,
  0x17,0x16,0x18,0x1b,0x1e,0x1c,0x1a,0x17,
  0x15,0x12,0x13,0x16,0x1a,0x1b,0x19,0x15,
  0x10,0x09,0x05,0x06,0x08,0x0a,0x0a,0x09,
  0x08,0x04,0x00,0xfe,0xfe,0xfe,0xfe,0xfd,
  0xfb,0xfa,0xf8,0xf5,0xf4,0xf6,0xf7,0xfa,
  0xfb,0xfb,0xf9,0xf8,0xf6,0xf6,0xf7,0xf8,
  0xf9,0xfc,0xfd,0xfc,0xfc,0xfc,0xfd,0xfc,
  0xfd,0xfe,0xff,0xff,0xfd,0xfc,0xfc,0xfb,
  0xfb,0xfc,0xfc,0xfb,0xfa,0xfa,0xf8,0xf7,
  0xf6,0xf5,0xf5,0xf5,0xf6,0xf6,0xf5,0xf3,
  0xf2,0xf1,0xf1,0xf0,0xf0,0xf0,0xef,0xee,
  0xec,0xeb,0xea,0xe9,0xea,0xea,0xea,0xea,
  0xea,0xe8,0xe7,0xe7,0xe7,0xe6,0xe7,0xe8,
  0xe7,0xe7,0xe6,0xe6,0xe6,0xe6,0xe6,0xe7,
  0xe6,0xe7,0xe7,0xe7,0xe7,0xe8,0xea,0xeb,
  0xeb,0xec,0xed,0xee,0xef,0xf0,0xf0,0xf1,
  0xf1,0xf2,0xf2,0xf2,0xf3,0xf3,0xf5,0xf6,
  0xf7,0xf8,0xf9,0xf9,0xfb,0xfc,0xfb,0xfc,
  0xfd,0xfe,0x00,0x00,0x01,0x03,0x05,0x07,
  0x07,0x06,0x06,0x06,0x06,0x07,0x0a,0x0b,
  0x0e,0x10,0x12,0x11,0x10,0x0f,0x0e,0x0e,
  0x0f,0x10,0x12,0x12,0x11,0x12,0x13,0x15,
  0x15,0x18,0x19,0x17,0x14,0x14,0x15,0x14,
  0x15,0x19,0x1b,0x1b,0x1b,0x1c,0x1d,0x1c,
  0x1c,0x1d,0x1e,0x1c,0x1a,0x19,0x18,0x16,
  0x16,0x19,0x1b,0x1b,0x1c,0x1c,0x19,0x15,
  0x13,0x13,0x12,0x12,0x15,0x16,0x15,0x13,
  0x13,0x13,0x12,0x13,0x17,0x18,0x16,0x12,
  0x0e,0x0a,0x06,0x06,0x09,0x0b,0x0b,0x0a,
  0x07,0x01,0xfd,0xfb,0xfa,0xfa,0xfa,0xfb,
  0xf9,0xf6,0xf4,0xf2,0xf1,0xef,0xf1,0xf2,
  0xf3,0xf2,0xf1,0xf0,0xec,0xea,0xea,0xec,
  0xee,0xf0,0xf1,0xf3,0xf3,0xf1,0xf0,0xf1,
  0xf3,0xf4,0xf6,0xf8,0xf8,0xf6,0xf6,0xf6,
  0xf5,0xf6,0xf7,0xf8,0xf8,0xf7,0xf7,0xf5,
  0xf3,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf6,
  0xf5,0xf4,0xf4,0xf5,0xf5,0xf6,0xf7,0xf6,
  0xf5,0xf3,0xf2,0xf2,0xf2,0xf3,0xf4,0xf4,
  0xf4,0xf3,0xf2,0xf1,0xf0,0xf0,0xf0,0xf1,
  0xf2,0xf2,0xf1,0xf0,0xf0,0xef,0xef,0xef,
  0xf0,0xf0,0xf1,0xf0,0xef,0xee,0xee,0xef,
  0xf0,0xf1,0xf3,0xf4,0xf4,0xf4,0xf4,0xf3,
  0xf3,0xf4,0xf4,0xf4,0xf5,0xf6,0xf6,0xf6,
  0xf6,0xf7,0xf7,0xf9,0xfb,0xfb,0xfc,0xfc,
  0xfc,0xfd,0xfe,0x00,0x01,0x02,0x03,0x03,
  0x03,0x03,0x05,0x07,0x08,0x09,0x0a,0x0b,
  0x0a,0x0a,0x0b,0x0c,0x0d,0x0c,0x0c,0x0d,
  0x0d,0x0d,0x0f,0x11,0x12,0x12,0x10,0x0f,
  0x0e,0x0e,0x0f,0x10,0x12,0x13,0x13,0x13,
  0x14,0x16,0x17,0x19,0x1a,0x19,0x17,0x15,
  0x15,0x15,0x17,0x19,0x19,0x18,0x17,0x17,
  0x17,0x16,0x16,0x17,0x16,0x15,0x14,0x15,
  0x15,0x16,0x18,0x19,0x19,0x18,0x17,0x14,
  0x11,0x0d,0x0d,0x0e,0x0e,0x0e,0x0e,0x0f,
  0x0d,0x0a,0x09,0x08,0x06,0x08,0x09,0x0a,
  0x09,0x08,0x05,0x01,0x00,0xff,0xfe,0xfd,
  0xfd,0xfb,0xf9,0xf7,0xf5,0xf3,0xf1,0xef,
  0xef,0xee,0xee,0xed,0xed,0xed,0xec,0xed,
  0xed,0xee,0xef,0xef,0xef,0xef,0xef,0xee,
  0xee,0xee,0xf0,0xf2,0xf1,0xf2,0xf3,0xf3,
  0xf3,0xf4,0xf7,0xf7,0xf8,0xf8,0xf8,0xf9,
  0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,
  0xf9,0xf9,0xfa,0xf9,0xf9,0xf9,0xf9,0xf9,
  0xfa,0xfb,0xfb,0xfa,0xfb,0xfb,0xfb,0xfa,
  0xfa,0xfa,0xf9,0xf9,0xf8,0xf8,0xf7,0xf7,
  0xf7,0xf7,0xf6,0xf6,0xf7,0xf7,0xf6,0xf5,
  0xf5,0xf4,0xf4,0xf3,0xf3,0xf3,0xf3,0xf2,
  0xf1,0xf1,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
  0xf1,0xf1,0xf2,0xf2,0xf2,0xf3,0xf4,0xf5,
  0xf5,0xf4,0xf4,0xf4,0xf4,0xf5,0xf5,0xf6,
  0xf7,0xf8,0xf8,0xf9,0xf9,0xf9,0xfa,0xfa,
  0xfb,0xfc,0xfe,0x00,0x01,0x02,0x03,0x03,
  0x04,0x03,0x04,0x06,0x07,0x08,0x08,0x09,
  0x09,0x09,0x0a,0x0d,0x0e,0x0e,0x0e,0x0f,
  0x10,0x10,0x0f,0x0f,0x0d,0x09,0x08,0x0a,
  0x0e,0x11,0x16,0x19,0x17,0x13,0x10,0x0e,
  0x0d,0x0f,0x13,0x17,0x16,0x15,0x16,0x15,
  0x13,0x13,0x14,0x14,0x13,0x12,0x11,0x0f,
  0x0d,0x0e,0x11,0x13,0x15,0x17,0x18,0x15,
  0x12,0x11,0x0f,0x0e,0x10,0x13,0x13,0x13,
  0x12,0x10,0x0f,0x0d,0x0c,0x0c,0x0c,0x0b,
  0x0b,0x0a,0x08,0x08,0x07,0x05,0x05,0x06,
  0x07,0x09,0x0b,0x09,0x07,0x02,0x00,0xfe,
  0xfd,0xfd,0xff,0xfe,0xfb,0xf9,0xf7,0xf5,
  0xf4,0xf6,0xf8,0xf7,0xf4,0xf1,0xed,0xea,
  0xeb,0xef,0xf2,0xf4,0xf5,0xf6,0xf2,0xef,
  0xef,0xef,0xf1,0xf3,0xf5,0xf5,0xf5,0xf4,
  0xf3,0xf3,0xf3,0xf7,0xfb,0xfc,0xfd,0xfc,
  0xf9,0xf6,0xf6,0xf6,0xf8,0xfa,0xfd,0xfd,
  0xfd,0xfc,0xfb,0xfa,0xfc,0xfc,0xfd,0xfe,
  0xfd,0xfb,0xfa,0xf9,0xfa,0xfb,0xfd,0xfd,
  0xfe,0xfe,0xfd,0xfd,0xfb,0xfa,0xf9,0xf9,
  0xf9,0xfa,0xfa,0xfa,0xfa,0xf9,0xf8,0xf7,
  0xf7,0xf7,0xf7,0xf7,0xf5,0xf3,0xf2,0xf1,
  0xf1,0xf1,0xf1,0xf2,0xf2,0xf1,0xef,0xed,
  0xed,0xed,0xed,0xee,0xef,0xef,0xef,0xef,
  0xef,0xef,0xf0,0xf1,0xf0,0xf0,0xef,0xef,
  0xef,0xef,0xf0,0xf1,0xf1,0xf3,0xf4,0xf4,
  0xf4,0xf5,0xf5,0xf4,0xf6,0xf6,0xf7,0xfa,
  0xfb,0xfd,0xff,0x00,0x00,0x00,0x02,0x02,
  0x03,0x04,0x04,0x05,0x03,0x04,0x05,0x08,
  0x0a,0x0b,0x0e,0x0f,0x0d,0x0b,0x0b,0x0b,
  0x09,0x09,0x0e,0x10,0x0f,0x11,0x13,0x11,
  0x0e,0x0f,0x11,0x11,0x12,0x14,0x15,0x13,
  0x11,0x12,0x15,0x16,0x19,0x1d,0x1d,0x1a,
  0x17,0x16,0x15,0x17,0x1a,0x1c,0x1d,0x1b,
  0x19,0x16,0x15,0x16,0x17,0x18,0x18,0x17,
  0x15,0x14,0x14,0x14,0x14,0x15,0x15,0x15,
  0x15,0x11,0x0e,0x0d,0x0c,0x0c,0x0f,0x10,
  0x10,0x0f,0x0c,0x08,0x04,0x03,0x04,0x09,
  0x0b,0x0b,0x0a,0x07,0x04,0x01,0x00,0x00,
  0x00,0x01,0x00,0xfc,0xf8,0xf5,0xf2,0xf2,
  0xf3,0xf4,0xf4,0xf5,0xf5,0xf2,0xef,0xec,
  0xed,0xed,0xf0,0xf1,0xf3,0xf4,0xf3,0xf2,
  0xf0,0xee,0xef,0xf3,0xf5,0xf4,0xf4,0xf2,
  0xf2,0xf2,0xf2,0xf4,0xf7,0xf9,0xf9,0xf8,
  0xf7,0xf6,0xf4,0xf5,0xf7,0xf6,0xf6,0xf8,
  0xf9,0xf9,0xf8,0xf8,0xf8,0xf8,0xf7,0xf8,
  0xf9,0xfa,0xfb,0xfb,0xfa,0xf9,0xf9,0xfb,
  0xfb,0xfb,0xfb,0xfb,0xf9,0xf7,0xf6,0xf6,
  0xf6,0xf7,0xf7,0xf6,0xf5,0xf4,0xf3,0xf3,
  0xf1,0xf1,0xf1,0xf1,0xf1,0xf0,0xef,0xed,
  0xed,0xec,0xec,0xeb,0xec,0xed,0xed,0xed,
  0xeb,0xeb,0xeb,0xeb,0xed,0xed,0xed,0xee,
  0xee,0xed,0xec,0xed,0xee,0xef,0xf1,0xf1,
  0xf1,0xf0,0xf0,0xf0,0xf1,0xf2,0xf4,0xf5,
  0xf6,0xf7,0xf8,0xf9,0xfa,0xfc,0xfd,0x00,
  0x00,0x02,0x02,0x02,0x04,0x04,0x05,0x08,
  0x0b,0x0d,0x0d,0x0e,0x0e,0x0e,0x0e,0x0e,
  0x0e,0x0f,0x0e,0x0f,0x10,0x12,0x14,0x16,
  0x17,0x16,0x14,0x14,0x16,0x15,0x15,0x16,
  0x14,0x13,0x15,0x19,0x1e,0x20,0x21,0x22,
  0x20,0x1c,0x1a,0x1c,0x1d,0x1d,0x1f,0x22,
  0x23,0x21,0x21,0x21,0x1e,0x1b,0x1b,0x1a,
  0x17,0x17,0x17,0x17,0x14,0x13,0x13,0x14,
  0x14,0x15,0x17,0x15,0x12,0x0e,0x0d,0x0c,
  0x0c,0x0e,0x11,0x12,0x10,0x0d,0x0a,0x08,
  0x07,0x09,0x0c,0x0d,0x0c,0x0b,0x09,0x05,
  0x02,0x00,0x00,0x03,0x03,0x03,0x04,0x02,
  0xff,0xfb,0xfa,0xf9,0xf9,0xfa,0xfa,0xf9,
  0xf7,0xf5,0xf5,0xf4,0xf3,0xf3,0xf3,0xf2,
  0xf0,0xee,0xec,0xea,0xe9,0xe9,0xe8,0xe8,
  0xe8,0xe8,0xe7,0xe5,0xe5,0xe3,0xe3,0xe5,
  0xe7,0xe7,0xe7,0xe6,0xe5,0xe4,0xe4,0xe6,
  0xe8,0xea,0xeb,0xec,0xea,0xe8,0xe8,0xe9,
  0xe8,0xeb,0xeb,0xee,0xf0,0xf1,0xf1,0xf1,
  0xf2,0xf4,0xf5,0xf7,0xf7,0xf9,0xf9,0xf8,
  0xf8,0xf8,0xf9,0xfb,0xfd,0xfe,0xff,0xff,
  0xfd,0xfd,0xfc,0xfd,0xfe,0xff,0x00,0x00,
  0x00,0x00,0xff,0x00,0x00,0xff,0xff,0xff,
  0xfe,0xfc,0xfb,0xfa,0xf9,0xfa,0xf9,0xf9,
  0xf9,0xf9,0xf9,0xf8,0xf7,0xf5,0xf4,0xf4,
  0xf4,0xf4,0xf3,0xf3,0xf3,0xf3,0xf3,0xf2,
  0xf3,0xf4,0xf3,0xf3,0xf3,0xf2,0xf1,0xf1,
  0xf2,0xf3,0xf4,0xf6,0xf6,0xf7,0xf7,0xf7,
  0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfd,
  0xff,0x00,0x01,0x03,0x04,0x05,0x07,0x09,
  0x0b,0x0c,0x0c,0x0b,0x0e,0x11,0x13,0x16,
  0x18,0x17,0x13,0x14,0x16,0x16,0x18,0x1e,
  0x1f,0x1b,0x1a,0x19,0x15,0x13,0x18,0x1e,
  0x1e,0x1e,0x1f,0x1c,0x18,0x16,0x18,0x1b,
  0x1e,0x1f,0x20,0x20,0x1d,0x1b,0x1a,0x19,
  0x1a,0x1d,0x1f,0x22,0x22,0x1e,0x1a,0x18,
  0x14,0x11,0x12,0x15,0x15,0x13,0x11,0x0e,
  0x0c,0x0d,0x10,0x12,0x10,0x0f,0x0d,0x0a,
  0x06,0x06,0x07,0x09,0x0b,0x0c,0x0b,0x08,
  0x06,0x06,0x05,0x00,0xff,0x00,0xfe,0xfd,
  0xfe,0xff,0xfd,0xfc,0xfc,0xfb,0xf9,0xf9,
  0xfb,0xfb,0xf9,0xf6,0xf4,0xf2,0xf1,0xf0,
  0xf1,0xf3,0xf3,0xf1,0xef,0xed,0xed,0xee,
  0xee,0xee,0xed,0xec,0xeb,0xeb,0xeb,0xec,
  0xed,0xed,0xed,0xed,0xeb,0xea,0xea,0xea,
  0xe6,0xe3,0xe4,0xe5,0xe5,0xe5,0xe7,0xe7,
  0xe6,0xe5,0xe5,0xe4,0xe6,0xe9,0xeb,0xea,
  0xea,0xea,0xea,0xeb,0xee,0xef,0xf0,0xf2,
  0xf2,0xf2,0xf1,0xf2,0xf5,0xf7,0xf7,0xf7,
  0xf9,0xfb,0xfc,0xfe,0xff,0xff,0xff,0x00,
  0x00,0x00,0x00,0x02,0x02,0x01,0x01,0x00,
  0x01,0x02,0x02,0x02,0x01,0x01,0x01,0x01,
  0x01,0x01,0x02,0x01,0x00,0xff,0xfe,0xfe,
  0xff,0xff,0xff,0xfe,0xfe,0xfc,0xfa,0xfa,
  0xf9,0xfa,0xf9,0xf8,0xf7,0xf6,0xf8,0xf8,
  0xf6,0xf5,0xf6,0xf5,0xf5,0xf5,0xf5,0xf7,
  0xf7,0xf7,0xf7,0xf7,0xf7,0xfa,0xfa,0xfa,
  0xfa,0xfa,0xfa,0xfa,0xfa,0xfc,0xfe,0x00,
  0x01,0x03,0x03,0x03,0x04,0x05,0x06,0x06,
  0x08,0x0a,0x0c,0x0e,0x10,0x11,0x10,0x0f,
  0x0e,0x0e,0x0e,0x11,0x12,0x13,0x14,0x16,
  0x16,0x16,0x18,0x19,0x18,0x16,0x14,0x14,
  0x15,0x19,0x1d,0x20,0x20,0x1f,0x1f,0x1c,
  0x19,0x19,0x1a,0x1a,0x1a,0x1a,0x1b,0x1c,
  0x1e,0x1f,0x1d,0x1b,0x19,0x17,0x15,0x14,
  0x14,0x14,0x14,0x11,0x10,0x0f,0x11,0x13,
  0x14,0x11,0x0d,0x0a,0x07,0x05,0x04,0x04,
  0x05,0x05,0x04,0x03,0x04,0x04,0x03,0x01,
  0xff,0xfb,0xf9,0xf9,0xfb,0xfc,0xfb,0xfa,
  0xf8,0xf5,0xf4,0xf5,0xf7,0xf8,0xf6,0xf3,
  0xef,0xec,0xeb,0xeb,0xee,0xef,0xf0,0xf0,
  0xf0,0xef,0xee,0xee,0xee,0xef,0xef,0xf0,
  0xf1,0xf1,0xf2,0xf1,0xf1,0xf1,0xf2,0xf3,
  0xf4,0xf4,0xf2,0xf0,0xed,0xed,0xee,0xf0,
  0xf3,0xf5,0xf5,0xf5,0xf4,0xf3,0xf2,0xf1,
  0xf0,0xf0,0xf0,0xf0,0xf0,0xf2,0xf3,0xf2,
  0xf1,0xf1,0xf1,0xf0,0xef,0xf0,0xf0,0xf0,
  0xef,0xf0,0xf0,0xf1,0xf3,0xf4,0xf4,0xf3,
  0xf3,0xf3,0xf3,0xf3,0xf4,0xf5,0xf6,0xf6,
  0xf7,0xf7,0xf9,0xfa,0xfb,0xfb,0xfc,0xfd,
  0xfe,0xff,0x00,0x00,0x00,0x01,0x02,0x03,
  0x04,0x05,0x06,0x07,0x06,0x06,0x07,0x08,
  0x08,0x08,0x08,0x07,0x08,0x07,0x08,0x08,
  0x07,0x07,0x07,0x06,0x06,0x05,0x05,0x04,
  0x03,0x02,0x02,0x01,0x02,0x01,0x01,0x01,
  0x00,0x00,0xfe,0xfe,0xfe,0xff,0xff,0xff,
  0xfd,0xfc,0xfb,0xfb,0xfc,0xfb,0xfa,0xfa,
  0xfa,0xf8,0xf8,0xfa,0xfa,0xfa,0xfb,0xfb,
  0xfb,0xfa,0xfa,0xfb,0xfb,0xfb,0xfb,0xfc,
  0xfd,0xfd,0xfd,0xfe,0xff,0xfe,0xff,0x00,
  0x00,0x01,0x04,0x06,0x08,0x09,0x0a,0x09,
  0x08,0x08,0x0b,0x0e,0x10,0x14,0x15,0x13,
  0x14,0x15,0x13,0x13,0x16,0x19,0x19,0x1a,
  0x1a,0x1a,0x1b,0x1a,0x18,0x17,0x18,0x19,
  0x1b,0x1a,0x19,0x17,0x17,0x16,0x14,0x14,
  0x16,0x17,0x15,0x14,0x13,0x12,0x13,0x13,
  0x12,0x12,0x12,0x11,0x11,0x10,0x0e,0x0c,
  0x0b,0x0a,0x09,0x09,0x08,0x07,0x04,0x01,
  0x00,0x00,0x00,0x00,0x02,0x02,0xff,0xfc,
  0xfc,0xfc,0xfb,0xfb,0xfd,0xfe,0xfc,0xfb,
  0xfa,0xf7,0xf4,0xf4,0xf5,0xf5,0xf4,0xf5,
  0xf5,0xf3,0xf1,0xf1,0xf0,0xef,0xf0,0xf1,
  0xef,0xed,0xed,0xec,0xec,0xee,0xef,0xf0,
  0xf0,0xef,0xed,0xe9,0xe7,0xe8,0xe9,0xea,
  0xeb,0xec,0xed,0xee,0xef,0xf0,0xee,0xef,
  0xee,0xec,0xe9,0xe8,0xe9,0xeb,0xee,0xef,
  0xef,0xf0,0xef,0xed,0xec,0xea,0xe9,0xeb,
  0xec,0xed,0xec,0xee,0xf0,0xf2,0xf3,0xf4,
  0xf5,0xf5,0xf6,0xf5,0xf5,0xf6,0xf6,0xf8,
  0xf9,0xfb,0xfe,0x00,0x03,0x03,0x03,0x03,
  0x02,0x03,0x04,0x05,0x06,0x06,0x07,0x07,
  0x08,0x09,0x0a,0x0b,0x0a,0x0a,0x08,0x08,
  0x07,0x07,0x06,0x06,0x07,0x08,0x08,0x08,
  0x08,0x07,0x06,0x04,0x03,0x02,0x01,0x00,
  0x00,0x00,0x00,0x00,0xff,0xfe,0xfe,0xfe,
  0xfc,0xfb,0xfa,0xf8,0xf6,0xf6,0xf7,0xf7,
  0xf7,0xf8,0xf8,0xf7,0xf6,0xf6,0xf6,0xf6,
  0xf8,0xf8,0xf8,0xf8,0xf9,0xfa,0xfb,0xfb,
  0xfe,0xff,0xff,0xff,0xfe,0xff,0x00,0x01,
  0x03,0x05,0x05,0x04,0x04,0x04,0x05,0x06,
  0x08,0x0a,0x0b,0x0b,0x0c,0x0d,0x0e,0x0e,
  0x0d,0x0d,0x0e,0x10,0x12,0x15,0x17,0x17,
  0x17,0x16,0x15,0x16,0x19,0x1b,0x1e,0x1d,
  0x1c,0x19,0x19,0x19,0x1a,0x1c,0x1d,0x1d,
  0x1a,0x18,0x17,0x17,0x16,0x16,0x18,0x18,
  0x19,0x1a,0x19,0x16,0x14,0x12,0x0e,0x0c,
  0x0d,0x11,0x12,0x11,0x0f,0x0d,0x0c,0x0b,
  0x09,0x08,0x07,0x07,0x05,0x04,0x02,0x02,
  0x04,0x05,0x02,0x00,0xfd,0xfe,0xfe,0xfd,
  0xfa,0xf9,0xf7,0xf5,0xf3,0xf2,0xf3,0xf5,
  0xf8,0xf7,0xf5,0xf3,0xf1,0xf0,0xef,0xed,
  0xeb,0xed,0xf0,0xf0,0xef,0xef,0xf1,0xf1,
  0xed,0xea,0xe8,0xe7,0xe7,0xe9,0xeb,0xea,
  0xea,0xed,0xef,0xee,0xed,0xee,0xef,0xeb,
  0xe6,0xe4,0xe5,0xe8,0xeb,0xee,0xef,0xef,
  0xed,0xeb,0xea,0xe9,0xe8,0xea,0xeb,0xec,
  0xec,0xee,0xf1,0xf2,0xf3,0xf3,0xf3,0xf4,
  0xf5,0xf5,0xf7,0xf6,0xf5,0xf3,0xf1,0xf2,
  0xf4,0xf7,0xf8,0xf7,0xf4,0xf3,0xf1,0xf1,
  0xf4,0xf6,0xf6,0xf5,0xf4,0xf3,0xf4,0xf7,
  0xfa,0xfd,0xfc,0xfc,0xfb,0xfb,0xfb,0xfd,
  0xfe,0xff,0x00,0x00,0x01,0x03,0x06,0x07,
  0x06,0x05,0x05,0x06,0x07,0x09,0x0a,0x0b,
  0x0b,0x0a,0x0a,0x0c,0x0e,0x0f,0x10,0x0f,
  0x0e,0x0d,0x0e,0x0e,0x0f,0x0f,0x0f,0x0f,
  0x0e,0x0e,0x0e,0x0e,0x0e,0x0d,0x0c,0x0c,
  0x0c,0x0a,0x0b,0x0a,0x08,0x07,0x06,0x04,
  0x04,0x04,0x05,0x04,0x04,0x02,0x00,0x00,
  0xff,0xfe,0xfc,0xfd,0xfc,0xfb,0xfc,0xfd,
  0xfb,0xfb,0xfb,0xfb,0xfa,0xfa,0xfb,0xfc,
  0xfb,0xfa,0xf8,0xf4,0xfa,0xfe,0xff,0x00,
  0x00,0xff,0x00,0x00,0x00,0x01,0x02,0x02,
  0x03,0x04,0x04,0x05,0x06,0x07,0x08,0x07,
  0x06,0x08,0x0a,0x0b,0x0c,0x0e,0x0d,0x0d,
  0x0c,0x0c,0x0d,0x0e,0x0f,0x11,0x11,0x11,
  0x11,0x13,0x15,0x14,0x14,0x13,0x11,0x0f,
  0x0d,0x0d,0x0f,0x12,0x13,0x14,0x14,0x12,
  0x0f,0x0e,0x0d,0x0e,0x0e,0x0e,0x0e,0x0c,
  0x0b,0x0a,0x0b,0x0c,0x0c,0x0a,0x08,0x06,
  0x04,0x04,0x04,0x02,0x00,0x00,0x00,0x01,
  0x01,0x02,0x03,0x03,0x01,0xff,0xfc,0xfb,
  0xfb,0xfc,0xfb,0xfb,0xfb,0xfb,0xf9,0xf9,
  0xf9,0xf6,0xf4,0xf3,0xf2,0xf0,0xf2,0xf3,
  0xf2,0xf2,0xf3,0xf2,0xf1,0xf3,0xf4,0xf3,
  0xf1,0xf1,0xf1,0xf0,0xf0,0xf2,0xf3,0xf2,
  0xf2,0xf0,0xef,0xee,0xef,0xf1,0xf3,0xf4,
  0xf2,0xf0,0xef,0xee,0xed,0xee,0xf1,0xf2,
  0xf3,0xf5,0xf4,0xf3,0xf4,0xf2,0xf2,0xf2,
  0xf1,0xf1,0xf4,0xf6,0xf5,0xf6,0xf7,0xf6,
  0xf5,0xf6,0xf6,0xf6,0xf7,0xf7,0xf5,0xf4,
  0xf5,0xf6,0xf8,0xf9,0xfa,0xfa,0xf9,0xf9,
  0xf7,0xf7,0xf6,0xf8,0xf9,0xfb,0xfa,0xfb,
  0xfa,0xf9,0xf1,0xf2,0xf6,0xf8,0xfb,0xfd,
  0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x01,0x01,0x01,0x01,0x02,0x02,0x01,
  0x02,0x02,0x03,0x03,0x03,0x04,0x04,0x04,
  0x05,0x05,0x05,0x05,0x05,0x06,0x06,0x07,
  0x06,0x07,0x07,0x07,0x08,0x08,0x08,0x08,
  0x09,0x09,0x09,0x09,0x0a,0x0a,0x0a,0x0a,
  0x0a,0x0a,0x0a,0x0b,0x0a,0x0b,0x0b,0x0b,
  0x0b,0x0b,0x0b,0x0a,0x0b,0x0b,0x0a,0x0a,
  0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,
  0x0a,0x0a,0x0a,0x0a,0x0a,0x09,0x09,0x09,
  0x09,0x09,0x09,0x09,0x08,0x08,0x08,0x08,
  0x07,0x06,0x06,0x06,0x06,0x05,0x06,0x06,
  0x05,0x05,0x04,0x04,0x04,0x04,0x03,0x03,
  0x03,0x03,0x02,0x02,0x02,0x01,0x01,0x01,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,
  0xfe,0xfd,0xfd,0xfc,0xfd,0xfc,0xfc,0xfc,
  0xfc,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfa,
  0xfa,0xfa,0xfa,0xfa,0xf9,0xf9,0xfa,0xf9,
  0xf9,0xf9,0xf9,0xf9,0xf8,0xf8,0xf8,0xf8,
  0xf8,0xf8,0xf9,0xf8,0xf8,0xf8,0xf8,0xf8,
  0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,
  0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,
  0xf8,0xf8,0xf8,0xf8,0xf8,0xf9,0xf9,0xf9,
  0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xfa,
  0xfa,0xf9,0xfa,0xf9,0xfa,0xfa,0xfa,0xfa,
  0xfa,0xfb,0xfa,0xfa,0xfa,0xfb,0xfb,0xfb,
  0xfb,0xfb,0xfb,0xfb,0xfc,0xfc,0xfc,0xfc,
  0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfe,
  0xfd,0xfe,0xfe,0xfe,0xfe,0xff,0xfe,0xff,
  0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x01,0x00,0x01,0x01,0x01,0x01,
  0x01,0x01,0x01,0x00,0x01,0x01,0x02,0x02,
  0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  0x01,0x01,0x02,0x02,0x01,0x02,0x01,0x01,
  0x01,0x01,0x02,0x02,0x02,0x02,0x02,0x02,
  0x02,0x02,0x02,0x02,0x02,0x03,0x02,0x02,
  0x02,0x03,0x02,0x03,0x03,0x02,0x03,0x03,
  0x03,0x03,0x02,0x03,0x03,0x03,0x03,0x03,
  0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
  0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
  0x02,0x03,0x03,0x03,0x03,0x02,0x02,0x02,
  0x02,0x02,0x02,0x02,0x02,0x02,0x01,0x02,
  0x01,0x02,0x01,0x01,0x01,0x01,0x01,0x02,
  0x02,0x02,0x01,0x01,0x01,0x01,0x01,0x01,
  0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xff,
  0xff,0xff,0xff,0xff,0x00,0xff,0xff,0xfe,
  0xfe,0xff,0xff,0xfe,0xff,0xff,0xfe,0xfe,
  0xff,0xfe,0xff,0xfe,0xfe,0xff,0xfe,0xfe,
  0xff,0xff,0xfe,0xff,0xff,0xfe,0xfe,0xff,
  0xff,0xfe,0xff,0xfe,0xfe,0xff,0xfe,0xfe,
  0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
  0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
  0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
  0xfd,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
  0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
  0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
  0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
  0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,
  0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  0xff,0x00,0x00,0x00,0xff,0x00,0xff,0xff,
  0xff,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
  0xff,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
  0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00 };

#define ledPin 13    //a little blinking light to see the device is working
#define outputPin 5 //This is the pin where the audio will come from
#define knobPin A0
//PWM Capable Pins Teensy 3.0: [3, 4], 5, 6, 9, 10, 20, 21, 22, 23
//pins 3&4 are on Timer1, while all the other are Timer0
//see http://www.pjrc.com/teensy/td_pulse.html

IntervalTimer AudioTimer; //initializing a timer interrupt, this is needed 
//to be able to read the sample in a predictable
//rate, very important for clear audio
IntervalTimer KnobTimer; 

volatile unsigned int samplePlace=0; //a variable for storing our position in the sample
volatile unsigned int sampleLength = sizeof(sample_boing); //variable to store the length of the sample

elapsedMicros timerArray[3] = {
  0,0,0};
int ledTime = 500000;
int ledState = HIGH;
int audioTime = 62;
int knobTime = 200000;
volatile int knobValue[1] = {0};

void setup(){

  Serial.begin(9600);

  pinMode(ledPin,OUTPUT); //setting the ledPin


  //we set the the output pin to 187,5kHz PWM with 8bits, 
  // which will lead to a highest encodable frequency of
  //23kHz, which is just above human upper limit of 20kHz
  analogWriteFrequency(outputPin, 187500); //187,5KHz PWM output
  analogWriteResolution(8); //8bit audio, it will take values from 0-255
  //the sample we use in this example is encoded at 16kHz, so the
  //function which reads it (AudioFunction) has to be called at that
  //frequency
  //AudioTimer.begin(AudioFunction,63);// 1/16000Hz=62.6us
  analogReadAveraging(1);
  //KnobTimer.begin(KnobFunction,100);

}

void loop(){
  if (timerArray[1] > ledTime){
    timerArray[1]=0;
    digitalWrite(ledPin,ledState);
    ledState= !ledState;
    //delay(500); //just to show the audio works even though the main loop waits
  }
  if (timerArray[2] > audioTime){
    timerArray[2]=0;
    AudioFunction();
  }
  if (timerArray[3] > knobTime){
    timerArray[3]=0;
    knobValue[1] = analogRead(knobPin);
    audioTime = knobValue[1];//map(knobValue[1],0,1023,30,200);
    //Serial.print(analogRead(knobPin));
    Serial.print(" - - - ");
    Serial.print(knobValue[1]);
    Serial.print(" - - - ");
    Serial.println(audioTime);
  }  
}


//this function just reads an ever increasing value from the sample, and
//writes its value to the PWM of the output pin. The function is called
//every 63us as defined in the AudioTimer.begin in setup()
void AudioFunction(){
  analogWrite(outputPin,sample_boing[samplePlace]);
  samplePlace++;
  if(samplePlace>=sampleLength){
    samplePlace=0;
  }
}

void KnobFunction(){
  knobValue[1] = analogRead(knobPin);
}
 
You aren't addressing the timerArray properly. In C/C++ array elements are addressed starting from zero - not one.
The one which you use for knobTime, timerArray[3] is actually off the end of the array and it is hard to know what its value is going to be.
Change your code to address them as [0], [1] and [2].

Pete
 
Status
Not open for further replies.
Back
Top