]>
git.gir.st - Chiptunes-pms150c.git/blob - bsv.c
1 typedef unsigned char u8
;
7 0x84, 0x9d, 0xb0, 0x69, 0x9d, 0x84, 0x69, 0x58,
8 0x75, 0x8c, 0xb0, 0x69, 0x8c, 0x75, 0x69, 0x58
11 u8
g(u8 x
, u8 t
, u8 o
){
12 u8 notes_ix
= t
& 0x7;
15 u8 result
= (i
*notes
[notes_ix
])>>o
;
33 sample
+= g(s
,tmp
,10);
38 tmp2
= (i2
<<5|i1
>>3)%3;
40 sample
+= g(tmp1
,tmp2
,10);
45 { u8 tmp3
= (i2
<<6|i1
>>2)%3;
49 sample
+= g(tmp1
,tmp2
,9);