]>
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
;
22 i0
= i1
= i2
= i3
= 0;
33 sample
+= g(s
,tmp
,10);
40 sample
+= g(tmp1
,tmp2
,10);
45 { u8 tmp3
= (i
>>10)%3;
49 sample
+= g(tmp1
,tmp2
,9);
58 i3
+= !i2
&& !i1
&& !i0
;