Skip to content

dengqinghua/scales_practice

Repository files navigation

ScalesPractice

Usage

测试音符

ruby guitar/practice.rb t  # 测试吉他
ruby ukulele/practice.rb t # 测试尤克里里

5 弦 第 8 品 是 什么音?

# 需要输入正确答案, 以吉他为例
4

测试品位位置

ruby guitar/practice.rb p  # 测试吉他
ruby ukulele/practice.rb p # 测试尤克里里

音 2 在 第 3 弦 是 第几品?

# 需要输入正确答案, 以吉他为例
7

音阶排列

Guitar

SCALES = {
  1 => {
    0  => %w(Mi 3),  # 0   - 3
    1  => %w(Fa 4),  # 1   | 4
    2  => %w(b5 #4), # 2   | b5
    3  => %w(Suo 5), # 3  o| 5
    4  => %w(b6 #5), # 4   | b6
    5  => %w(La 6),  # 5  o| 6
    6  => %w(b7 #6), # 6   | b7
    7  => %w(Xi 7),  # 7  o| 7
    8  => %w(Duo 1), # 8   | 1
    9  => %w(b2 #1), # 9  o| b2
    10 => %w(Rui 2), # 10  | 2
    11 => %w(b3 #2), # 11  | b3
    12 => %w(Mi 3),  # 12 o| 3
  },
  2 => {
    0  => %w(Xi 7),  # 0   - 7
    1  => %w(Duo 1), # 1   | 1
    2  => %w(b2 #1), # 2   | b2
    3  => %w(Rui 2), # 3  o| 2
    4  => %w(b3 #2), # 4   | b3
    5  => %w(Mi 3),  # 5  o| 3
    6  => %w(Fa 4),  # 6   | 4
    7  => %w(b5 #4), # 7  o| b5
    8  => %w(Suo 5), # 8   | 5
    9  => %w(b6 #5), # 9  o| b6
    10 => %w(La 6),  # 10  | 6
    11 => %w(b7 #6), # 11  | b7
    12 => %w(Xi 7),  # 12 o| 7
  },
  3 => {
    0  => %w(Suo 5), # 0   - 5
    1  => %w(b6 #5), # 1   | b6
    2  => %w(La 6),  # 2   | 6
    3  => %w(b7 #6), # 3  o| b7
    4  => %w(Xi 7),  # 4   | 7
    5  => %w(Duo 1), # 5  o| 1
    6  => %w(b2 #1), # 6   | b2
    7  => %w(Rui 2), # 7  o| 2
    8  => %w(b3 #2), # 8   | b3
    9  => %w(Mi 3),  # 9  o| 3
    10 => %w(Fa 4),  # 10  | 4
    11 => %w(b5 #4), # 11  | b5
    12 => %w(Suo 5), # 12 o| 5
  },
  4 => {
    0  => %w(Rui 2), # 0   - 2
    1  => %w(b3 #2), # 1   | b3
    2  => %w(Mi 3),  # 2   | 3
    3  => %w(Fa 4),  # 3  o| 4
    4  => %w(b5 #4), # 4   | b5
    5  => %w(Suo 5), # 5  o| 5
    6  => %w(b6 #5), # 6   | b6
    7  => %w(La 6),  # 7  o| 6
    8  => %w(b7 #6), # 8   | b7
    9  => %w(Xi 7),  # 9  o| 7
    10 => %w(Duo 1), # 10  | 1
    11 => %w(b2 #1), # 11  | b2
    12 => %w(Rui 2), # 12 o| 2
  },
  5 => {
    0  => %w(La 6),  # 0   - 6
    1  => %w(b7 #6), # 1   | b7
    2  => %w(Xi 7),  # 2   | 7
    3  => %w(Duo 1), # 3  o| 1
    4  => %w(b2 #1), # 4   | b2
    5  => %w(Rui 2), # 5  o| 2
    6  => %w(b3 #2), # 6   | b3
    7  => %w(Mi 3),  # 7  o| 3
    8  => %w(Fa 4),  # 8   | 4
    9  => %w(b5 #4), # 9  o| b5
    10 => %w(Suo 5), # 10  | 5
    11 => %w(b6 #5), # 11  | b6
    12 => %w(La 6),  # 12 o| 6
  },
  6 => {
    0  => %w(Mi 3),  # 0   - 3
    1  => %w(Fa 4),  # 1   | 4
    2  => %w(b5 #4), # 2   | b5
    3  => %w(Suo 5), # 3  o| 5
    4  => %w(b6 #5), # 4   | b6
    5  => %w(La 6),  # 5  o| 6
    6  => %w(b7 #6), # 6   | b7
    7  => %w(Xi 7),  # 7  o| 7
    8  => %w(Duo 1), # 8   | 1
    9  => %w(b2 #1), # 9  o| b2
    10 => %w(Rui 2), # 10  | 2
    11 => %w(b3 #2), # 11  | b3
    12 => %w(Mi 3),  # 12 o| 3
  },
}
0   - 3  6  2  5  7  3
1   | 4  b7 b3 b6 1  4
2   | b5 7  3  6  b2 b5
3  o| 5  1  4  b7 2  5
4   | b6 b2 b5 7  b3 b6
5  o| 6  2  5  1  3  6
6   | b7 b3 b6 b2 4  b7
7  o| 7  3  6  2  b5 7
8   | 1  4  b7 b3 5  1
9  o| b2 b5 7  3  b6 b2
10  | 2  5  1  4  6  2
11  | b3 b6 b2 b5 b7 b3
12 o| 3  6  2  5  7  3

Ukulele

SCALES = {
  1 => {
    0  => %w(La 6),  # 0  o- 6
    1  => %w(b7 #6), # 1   | b7
    2  => %w(Xi 7),  # 2  o| 7
    3  => %w(Duo 1), # 3   | 1
    4  => %w(b2 #1), # 4  o| b2
    5  => %w(Rui 2), # 5   | 2
    6  => %w(b3 #2), # 6   | b3
    7  => %w(Mi 3),  # 7   | 3
    8  => %w(Fa 4),  # 8   | 4
    9  => %w(b5 #4), # 9   | b5
    10 => %w(Suo 5), # 10 o| 5
    11 => %w(b6 #5), # 11  | b6
    12 => %w(La 6),  # 12 o| 6
  },
  2 => {
    0  => %w(Mi 3),  # 0  o- 3
    1  => %w(Fa 4),  # 1   | 4
    2  => %w(b5 #4), # 2  o| b5
    3  => %w(Suo 5), # 3   | 5
    4  => %w(b6 #5), # 4  o| b6
    5  => %w(La 6),  # 5   | 6
    6  => %w(b7 #6), # 6   | b7
    7  => %w(Xi 7),  # 7   | 7
    8  => %w(Duo 1), # 8   | 1
    9  => %w(b2 #1), # 9   | b2
    10 => %w(Rui 2), # 10 o| 2
    11 => %w(b3 #2), # 11  | b3
    12 => %w(Mi 3),  # 12 o| 3
  },
  3 => {
    0  => %w(Duo 1), # 0  o- 1
    1  => %w(b2 #1), # 1   | b2
    2  => %w(Rui 2), # 2  o| 2
    3  => %w(b3 #2), # 3   | b3
    4  => %w(Mi 3),  # 4  o| 3
    5  => %w(Fa 4),  # 5   | 4
    6  => %w(b5 #4), # 6   | b5
    7  => %w(Suo 5), # 7   | 5
    8  => %w(b6 #5), # 8   | b6
    9  => %w(La 6),  # 9   | 6
    10 => %w(b7 #6), # 10 o| b7
    11 => %w(Xi 7),  # 11  | 7
    12 => %w(Duo 1), # 12 o| 1
  },
  4 => {
    0  => %w(Suo 5), # 0  o- 5
    1  => %w(b6 #5), # 1   | b6
    2  => %w(La 6),  # 2  o| 6
    3  => %w(b7 #6), # 3   | b7
    4  => %w(Xi 7),  # 4  o| 7
    5  => %w(Duo 1), # 5   | 1
    6  => %w(b2 #1), # 6   | b2
    7  => %w(Rui 2), # 7   | 2
    8  => %w(b3 #2), # 8   | b3
    9  => %w(Mi 3),  # 9   | 3
    10 => %w(Fa 4),  # 10 o| 4
    11 => %w(b5 #4), # 11  | b5
    12 => %w(Suo 5), # 12 o| 5
  }
}
0  o- 5  1  3  6
1   | b6 b2 4  b7
2  o| 6  2  b5 7
3   | b7 b3 5  1
4  o| 7  3  b6 b2
5   | 1  4  6  2
6   | b2 b5 b7 b3
7   | 2  5  7  3
8   | b3 b6 1  4
9   | 3  6  b2 b5
10 o| 4  b7 2  5
11  | b5 7  b3 b6
12 o| 5  1  3  6

About

Guitar fretboard test

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages