Skip to content

Commit

Permalink
Update circleOfFifths.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wiwikuan authored Apr 13, 2019
1 parent 48a0ff1 commit b31aa40
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions circleOfFifths.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ let outC1;
let outC2;
let outCH;
let outCT;
let outCSP; // 分隔
let outText = ["沒有升降", "1 個 #", "2 個 #", "3 個 #", "4 個 #", "7 個 b / 5 個 #", "6 個 b / 6 個 #", "5 個 b / 7 個 #", "4 個 b", "3 個 b", "2 個 b", "1 個 b"]
let outCSP; // 分隔
let outText = ["沒有升降", "1 #", "2 #", "3 #", "4 #", "7 b / 5 #", "6 b / 6 #", "5 b / 7 #", "4 b", "3 b", "2 b", "1 b"]
let outTextSize = 15;

let majorRatio = 0.74;
Expand All @@ -22,18 +22,18 @@ let minorText = ["Am", "Em", "Bm", "F#m", "C#m", "Abm/G#m", "Ebm/D#m", "Bbm/A#m"
let minorTextSize = 17;

let detailText1 = [
"C 大調 ─ A 小調",
"G 大調 ─ E 小調",
"D 大調 ─ B 小調",
"A 大調 ─ F# 小調",
"E 大調 ─ C# 小調",
"Cb 大調 ─ Ab 小調 / B 大調 ─ G# 小調",
"Gb 大調 ─ Eb 小調 / F# 大調 ─ D# 小調",
"Db 大調 ─ Bb 小調 / C# 大調 ─ A# 小調",
"Ab 大調 ─ F 小調",
"Eb 大調 ─ C 小調",
"Bb 大調 ─ G 小調",
"F 大調 ─ D 小調"
"C 大調 ─ A 小調",
"G 大調 ─ E 小調",
"D 大調 ─ B 小調",
"A 大調 ─ F# 小調",
"E 大調 ─ C# 小調",
"Cb 大調 ─ Ab 小調 / B 大調 ─ G# 小調",
"Gb 大調 ─ Eb 小調 / F# 大調 ─ D# 小調",
"Db 大調 ─ Bb 小調 / C# 大調 ─ A# 小調",
"Ab 大調 ─ F 小調",
"Eb 大調 ─ C 小調",
"Bb 大調 ─ G 小調",
"F 大調 ─ D 小調"
]
let detailTextSize = 22;

Expand Down Expand Up @@ -86,7 +86,7 @@ function setup() {
minorTextSize = width * 0.02125;
detailTextSize = width * 0.0275;

lockButton = createButton('[已鎖定]');
lockButton = createButton('[已鎖定]');
lockButton.position(19, 19);
lockButton.mousePressed(toggleLocked);

Expand All @@ -95,10 +95,10 @@ function setup() {

function toggleLocked() {
if (locked) {
lockButton.html("鎖定");
lockButton.html("鎖定");
locked = false;
} else {
lockButton.html("[已鎖定]");
lockButton.html("[已鎖定]");
locked = true;
}
}
Expand Down Expand Up @@ -131,7 +131,7 @@ function drawOuter(ang) {

function drawOuterText(ang) {
for (i = 0; i < 12; i++) {
let j = i + ang + 3.5; // 把第一個字畫到右方
let j = i + ang + 3.5; // 把第一個字畫到右方
push();
rotate(TAU * (j / 12));
textAlign(CENTER);
Expand Down Expand Up @@ -286,7 +286,7 @@ function drawSigNumber(s, f) {
default:
fill(80);
textSize(width / 60);
text("â™®", 0, height * 0.14);
text("", 0, height * 0.14);
fill(60);
}
rect((0 + sp * i) * width, height * 0.12, height * w, height * h);
Expand All @@ -295,7 +295,7 @@ function drawSigNumber(s, f) {
}
textSize(width / 60);
fill(90);
text(`(${-f} 個降記號 / ${s} 個升記號)`, 0, height * 0.16);
text(`${-f} 個降記號 / ${s} 個升記號)`, 0, height * 0.16);
}

function drawKeySig(sig, x, y) {
Expand Down

0 comments on commit b31aa40

Please sign in to comment.