]>
git.gir.st - Chiptunes-pms150c.git/blob - bsv.c
1 typedef unsigned char u8
;
6 0x84, 0x9d, 0xb0, 0x69, 0x9d, 0x84, 0x69, 0x58,
7 0x75, 0x8c, 0xb0, 0x69, 0x8c, 0x75, 0x69, 0x58
10 u8
g(u8 x
, u8 t
, u8 o
){
11 u8 notes_ix
= t
%8 + 8*!!(3&i
>>16);
12 return((3&x
&(i
*(notes
[notes_ix
])>>o
))<<4);
22 sample
+= g(s
,tmp
,10);
25 u8 tmp2
= n
+((i
>>11)%3);
26 sample
+= g(tmp1
,tmp2
,10);
29 u8 tmp2
= 8+n
-((i
>>10)%3);
30 sample
+= g(tmp1
,tmp2
,9);