]>
git.gir.st - Chiptunes-pms150c.git/blob - bsv.c
1 typedef unsigned char u8
;
5 u8 notes
[] = "Qj}6jQ6%BY}6YB6%";
7 u8
g(u8 x
, u8 t
, u8 o
){
8 u8 notes_ix
= t
%8 + 8*!!(3&i
>>16);
9 return((3&x
&(i
*(notes
[notes_ix
]+51)>>o
))<<4);
19 sample
+= g(s
,tmp
,10);
22 u8 tmp2
= n
+((i
>>11)%3);
23 sample
+= g(tmp1
,tmp2
,10);
26 u8 tmp2
= 8+n
-((i
>>10)%3);
27 sample
+= g(tmp1
,tmp2
,9);