J'ai jeté un coup d'oeil et c'est pas simple de s'y retrouver lol ..
Code : Tout sélectionner
/* DATA SON par JyCet */
const int Notes_Mus[] = {
/* C C# D D# E F F# G G# A A# B */
0x0fe4,0x0f00,0x0e28,/*0*/
0x0d5d,0x0c9d,0x0be7,0x0b3d,0x0a9b,0x0a03,0x0973,0x08eb,0x086a,0x07f2,0x0780,0x0714,/*1*/
0x06af,0x064f,0x05f4,0x059e,0x054e,0x0502,0x04b9,0x0476,0x0435,0x03f9,0x03c0,0x038a,/*2*/
0x0357,0x0327,0x02fa,0x02cf,0x02a7,0x0281,0x025d,0x023b,0x021b,0x01fc,0x01e0,0x01c5,/*3*/
0x01ac,0x0193,0x017d,0x0168,0x0153,0x0140,0x012e,0x011d,0x010d,0x00fe,0x00f0,0x00e3,/*4*/
0x00d6,0x00ca,0x00be,0x00b4,0x00aa,0x00a0,0x0097,0x008f,0x0087,0x007f,0x0078,0x0071,/*5*/
0x006b,0x0065,0x005f,0x005a,0x0055,0x0050,0x004b,0x0046,0x0043,0x0040,0x003c,0x0039,/*6*/
0x0035,0x0032,0x0030,0x002d,0x002a,0x0028,0x0026,0x0024,0x0022,0x0020,0x001e,0x001c,/*7*/
0x001b
};
/*************************************/
/* Parametre son tir vaisseau joueur */
/*************************************/
int son_final[32];
const char sample[] =
{
/*sample # 28*/
0x0f,0x16,0x1b,0x1e,
0x1f,0x1e,0x1b,0x16,
0x0f,0x08,0x04,0x01,
0x00,0x01,0x04,0x08,
0x0f,0x00,0x00,0x00,
0x1f,0x1f,0x1f,0x1f,
0x1c,0x18,0x14,0x10,
0x0c,0x07,0x03,0x00
};
const char volume[] =
{
/*#03 fondu fermeture*/
0xff,0xff,0xee,0xee,0xdd,0xdd,0xcc,0xcc,
0xbb,0xbb,0xaa,0xaa,0x99,0x99,0x88,0x88,
0x77,0x77,0x66,0x66,0x55,0x55,0x44,0x44,
0x33,0x33,0x22,0x22,0x11,0x11,0x00,0x00
};
const char pitch[] =
{
/*#04 -/+ 1 octave */
127,127,127,126,
126,125,124,123,
122,121,120,119,
118,117,116,115,
115,116,117,118,
119,120,121,122,
123,124,125,126,
126,127,127,127
};
/***********************************************/
/* Parametre son explosion aliens */
/* générée avec la methode et le log de jycet */
/***********************************************/
int son_final_aliens[32];
const char expl_aliens_sample[] =
{
/*sample # 2E*/
0x0f,0x15,0x19,0x1b,
0x1d,0x1e,0x1f,0x1e,
0x1d,0x1b,0x19,0x15,
0x0f,0x07,0x17,0x0a,
0x14,0x0d,0x12,0x0f,
0x10,0x0a,0x06,0x04,
0x02,0x01,0x00,0x01,
0x02,0x04,0x06,0x0a
};
const char volume_expl_aliens[] =
{
/*#00 volume maxi constant*/
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
};
const char pitch_expl_aliens[] =
{
/*#07 modulation*/
127,127,127,129,
127,123,127,131,
127,124,127,130,
127,125,127,129,
129,127,125,127,
130,127,124,127,
131,127,123,127,
129,127,127,127
};