1
1
mirror of https://github.com/wader/fq.git synced 2024-11-22 07:16:49 +03:00
This commit is contained in:
twystd 2024-09-03 11:19:34 -07:00
parent a3a0a06932
commit 17bac771df
3 changed files with 111 additions and 109 deletions

View File

@ -5,113 +5,113 @@ import (
)
var notes = scalar.UintMapSymStr{
uint64(127): "G9",
uint64(126): "F♯9/G♭9",
uint64(125): "F9",
uint64(124): "E9",
uint64(123): "D♯9/E♭9",
uint64(122): "D9",
uint64(121): "C♯9/D♭9",
uint64(120): "C9",
uint64(119): "B8",
uint64(118): "A♯8/B♭8",
uint64(117): "A8",
uint64(116): "G♯8/A♭8",
uint64(115): "G8",
uint64(114): "F♯8/G♭8",
uint64(113): "F8",
uint64(112): "E8",
uint64(111): "D♯8/E♭8",
uint64(110): "D8",
uint64(109): "C♯8/D♭8",
uint64(108): "C8",
uint64(107): "B7",
uint64(106): "A♯7/B♭7",
uint64(105): "A7",
uint64(104): "G♯7/A♭7",
uint64(103): "G7",
uint64(102): "F♯7/G♭7",
uint64(101): "F7",
uint64(100): "E7",
uint64(99): "D♯7/E♭7",
uint64(98): "D7",
uint64(97): "C♯7/D♭7",
uint64(96): "C7",
uint64(95): "B6",
uint64(94): "A♯6/B♭6",
uint64(93): "A6",
uint64(92): "G♯6/A♭6",
uint64(91): "G6",
uint64(90): "F♯6/G♭6",
uint64(89): "F6",
uint64(88): "E6",
uint64(87): "D♯6/E♭6",
uint64(86): "D6",
uint64(85): "C♯6/D♭6",
uint64(84): "C6",
uint64(83): "B5",
uint64(82): "A♯5/B♭5",
uint64(81): "A5",
uint64(80): "G♯5/A♭5",
uint64(79): "G5",
uint64(78): "F♯5/G♭5",
uint64(77): "F5",
uint64(76): "E5",
uint64(75): "D♯5/E♭5",
uint64(74): "D5",
uint64(73): "C♯5/D♭5",
uint64(72): "C5",
uint64(71): "B4",
uint64(70): "A♯4/B♭4",
uint64(69): "A4",
uint64(68): "G♯4/A♭4",
uint64(67): "G4",
uint64(66): "F♯4/G♭4",
uint64(65): "F4",
uint64(64): "E4",
uint64(63): "D♯4/E♭4",
uint64(62): "D4",
uint64(61): "C♯4/D♭4",
uint64(60): "C4",
uint64(59): "B3",
uint64(58): "A♯3/B♭3",
uint64(57): "A3",
uint64(56): "G♯3/A♭3",
uint64(55): "G3",
uint64(54): "F♯3/G♭3",
uint64(53): "F3",
uint64(52): "E3",
uint64(51): "D♯3/E♭3",
uint64(50): "D3",
uint64(49): "C♯3/D♭3",
uint64(48): "C3",
uint64(47): "B2",
uint64(46): "A♯2/B♭2",
uint64(45): "A2",
uint64(44): "G♯2/A♭2",
uint64(43): "G2",
uint64(42): "F♯2/G♭2",
uint64(41): "F2",
uint64(40): "E2",
uint64(39): "D♯2/E♭2",
uint64(38): "D2",
uint64(37): "C♯2/D♭2",
uint64(36): "C2",
uint64(35): "B1",
uint64(34): "A♯1/B♭1",
uint64(33): "A1 A1",
uint64(32): "G♯1/A♭1",
uint64(31): "G1 G1",
uint64(30): "F♯1/G♭1",
uint64(29): "F1",
uint64(28): "E1",
uint64(27): "D♯1/E♭1",
uint64(26): "D1",
uint64(25): "C♯1/D♭1",
uint64(24): "C1",
uint64(23): "B0",
uint64(22): "A♯0/B♭0",
uint64(21): "A0",
127: "G9",
126: "F♯9/G♭9",
125: "F9",
124: "E9",
123: "D♯9/E♭9",
122: "D9",
121: "C♯9/D♭9",
120: "C9",
119: "B8",
118: "A♯8/B♭8",
117: "A8",
116: "G♯8/A♭8",
115: "G8",
114: "F♯8/G♭8",
113: "F8",
112: "E8",
111: "D♯8/E♭8",
110: "D8",
109: "C♯8/D♭8",
108: "C8",
107: "B7",
106: "A♯7/B♭7",
105: "A7",
104: "G♯7/A♭7",
103: "G7",
102: "F♯7/G♭7",
101: "F7",
100: "E7",
99: "D♯7/E♭7",
98: "D7",
97: "C♯7/D♭7",
96: "C7",
95: "B6",
94: "A♯6/B♭6",
93: "A6",
92: "G♯6/A♭6",
91: "G6",
90: "F♯6/G♭6",
89: "F6",
88: "E6",
87: "D♯6/E♭6",
86: "D6",
85: "C♯6/D♭6",
84: "C6",
83: "B5",
82: "A♯5/B♭5",
81: "A5",
80: "G♯5/A♭5",
79: "G5",
78: "F♯5/G♭5",
77: "F5",
76: "E5",
75: "D♯5/E♭5",
74: "D5",
73: "C♯5/D♭5",
72: "C5",
71: "B4",
70: "A♯4/B♭4",
69: "A4",
68: "G♯4/A♭4",
67: "G4",
66: "F♯4/G♭4",
65: "F4",
64: "E4",
63: "D♯4/E♭4",
62: "D4",
61: "C♯4/D♭4",
60: "C4",
59: "B3",
58: "A♯3/B♭3",
57: "A3",
56: "G♯3/A♭3",
55: "G3",
54: "F♯3/G♭3",
53: "F3",
52: "E3",
51: "D♯3/E♭3",
50: "D3",
49: "C♯3/D♭3",
48: "C3",
47: "B2",
46: "A♯2/B♭2",
45: "A2",
44: "G♯2/A♭2",
43: "G2",
42: "F♯2/G♭2",
41: "F2",
40: "E2",
39: "D♯2/E♭2",
38: "D2",
37: "C♯2/D♭2",
36: "C2",
35: "B1",
34: "A♯1/B♭1",
33: "A1 A1",
32: "G♯1/A♭1",
31: "G1 G1",
30: "F♯1/G♭1",
29: "F1",
28: "E1",
27: "D♯1/E♭1",
26: "D1",
25: "C♯1/D♭1",
24: "C1",
23: "B0",
22: "A♯0/B♭0",
21: "A0",
}
const (

View File

@ -31,4 +31,5 @@ fq -d midi 'grep_by(.event=="note_on") | [.time.tick, .note_on.note] | join(" ")
### References
1. [The Complete MIDI 1.0 Detailed Specification](https://www.midi.org/specifications/item/the-midi-1-0-specification)
2. [The MIDI Specification](http://midi.teragonaudio.com/tech/midispec.htm)
2. [Standard MIDI File (SMF) Format](http://midi.teragonaudio.com/tech/midifile.htm)
3. [MIDI Files Specification](http://www.somascape.org/midi/tech/mfile.html)

View File

@ -39,4 +39,5 @@ Authors
References
==========
* The Complete MIDI 1.0 Detailed Specification (https://www.midi.org/specifications/item/the-midi-1-0-specification)
* The MIDI Specification (http://midi.teragonaudio.com/tech/midispec.htm)
* Standard MIDI File (SMF) Format (http://midi.teragonaudio.com/tech/midifile.htm)
* MIDI Files Specification (http://www.somascape.org/midi/tech/mfile.html)