-
Notifications
You must be signed in to change notification settings - Fork 4
/
midi_values.go
56 lines (47 loc) · 961 Bytes
/
midi_values.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2012 Joe Wass. All rights reserved.
// Use of this source code is governed by the MIT license
// which can be found in the LICENSE file.
// MIDI package
// A package for reading Standard Midi Files, written in Go.
// Joe Wass 2012
// joe@afandian.com
// Constants and values.
package midi
// SMF format
const (
SingleMultiTrackChannel = 0
SimultaneousTracks = 1
SequentialTracks = 2
)
// Time code formats used in HeaderData.TimeFormat
const (
MetricalTimeFormat = iota
TimeCodeTimeFormat = iota
)
// Supplied to KeySignature
const (
MajorMode = 0
MinorMode = 1
)
type KeySignatureMode uint8
const (
DegreeC = 0
DegreeCs = 1
DegreeDf = DegreeCs
DegreeD = 2
DegreeDs = 3
DegreeEf = DegreeDs
DegreeE = 4
DegreeF = 5
DegreeFs = 6
DegreeGf = DegreeFs
DegreeG = 7
DegreeGs = 8
DegreeAf = DegreeGs
DegreeA = 9
DegreeAs = 10
DegreeBf = DegreeAs
DegreeB = 11
DegreeCf = DegreeB
)
type ScaleDegree uint8