git://git.gir.st
/
Chiptunes-pms150c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3768c2
)
new version
author
Tobias Girstmair
<tobi@isticktoit.net>
Wed, 3 Mar 2021 23:42:02 +0000
(
00:42
+0100)
committer
Tobias Girstmair
<tobi@isticktoit.net>
Wed, 3 Mar 2021 23:42:02 +0000
(
00:42
+0100)
bsv.c
patch
|
blob
|
blame
|
history
diff --git
a/bsv.c
b/bsv.c
index 52140ec37111aee8ac11817752f4224a392b4e48..bf3e991a07b3182f2ac0fc916ee3852d7c45e917 100644
(file)
--- a/
bsv.c
+++ b/
bsv.c
@@
-2,11
+2,14
@@
typedef unsigned char u8;
int i;
-u8 notes[] = "Qj}6jQ6%BY}6YB6%";
+u8 notes[] = {
+ 0x84, 0x9d, 0xb0, 0x69, 0x9d, 0x84, 0x69, 0x58,
+ 0x75, 0x8c, 0xb0, 0x69, 0x8c, 0x75, 0x69, 0x58
+};
u8 g(u8 x, u8 t, u8 o){
u8 notes_ix = t%8 + 8*!!(3&i>>16);
- return((3&x&(i*(notes[notes_ix]
+51
)>>o))<<4);
+ return((3&x&(i*(notes[notes_ix])>>o))<<4);
}
void main(void){
i = 0;