shithub: mkey

Download patch

ref: 93ed7d4f5fa51187fa76cf258a9efe5c039d94e0
parent: 35c587c39e8b863e0112234ebea1a1dc1ae98202
author: qwx <qwx@sciops.net>
date: Sat Dec 5 09:44:24 EST 2020

fix note labels, midi range is c-1 to g9, not c0 to g10

--- a/mkey.c
+++ b/mkey.c
@@ -10,6 +10,7 @@
 	Ndelay = Nrate / 50,
 };
 char *notetab[] = {
+	"c-1","c♯-1","d-1","d♯-1","e-1","f-1","f♯-1","g-1","g♯-1","a-1","a♯-1","b-1",
 	"c0","c♯0","d0","d♯0","e0","f0","f♯0","g0","g♯0","a0","a♯0","b0",
 	"c1","c♯1","d1","d♯1","e1","f1","f♯1","g1","g♯1","a1","a♯1","b1",
 	"c2","c♯2","d2","d♯2","e2","f2","f♯2","g2","g♯2","a2","a♯2","b2",
@@ -19,8 +20,7 @@
 	"c6","c♯6","d6","d♯6","e6","f6","f♯6","g6","g♯6","a6","a♯6","b6",
 	"c7","c♯7","d7","d♯7","e7","f7","f♯7","g7","g♯7","a7","a♯7","b7",
 	"c8","c♯8","d8","d♯8","e8","f8","f♯8","g8","g♯8","a8","a♯8","b8",
-	"c9","c♯9","d9","d♯9","e9","f9","f♯9","g9","g♯9","a9","a♯9","b9",
-	"c10","c♯10","d10","d♯10","e10","f10","f♯10","g10"
+	"c9","c♯9","d9","d♯9","e9","f9","f♯9","g9"
 };
 int oct0 = 3*12, vol = 63, freq[nelem(notetab)], fon[nelem(notetab)];
 int soft;