Skip to content

Commit 96feef8

Browse files
author
FMS-Cat
committed
add README, LICENSE
1 parent 83f6590 commit 96feef8

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2016 FMS_Cat
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# midiParser for Lua
2+
3+
**It is not perfect!!** Use it for just experiment.
4+
5+
Works with Lua 5.0, also 5.3 (because it must be running on Stepmania...)
6+
7+
## Usage
8+
9+
```
10+
midi = midiParser( "path/to/midi.mid" )
11+
```
12+
13+
## Return sample
14+
15+
```Lua
16+
{
17+
format = 1,
18+
timebase = 96,
19+
tracks = {
20+
{
21+
messages = {
22+
{
23+
time = 0,
24+
type = "meta",
25+
meta = "Time Signature",
26+
signature = { 4, 2, 24, 8 }
27+
},
28+
{
29+
time = 0,
30+
type = "meta",
31+
meta = "End of Track"
32+
}
33+
}
34+
},
35+
{
36+
messages = {
37+
{
38+
time = 0,
39+
type = "meta",
40+
meta = "Set Tempo",
41+
tempo = 468375
42+
},
43+
{
44+
time = 0,
45+
type = "meta",
46+
meta = "End of Track"
47+
}
48+
}
49+
},
50+
{
51+
name = "TrackName",
52+
messages = {
53+
{
54+
time = 0,
55+
type = "meta",
56+
meta = "Track Name",
57+
text = "TrackName"
58+
},
59+
{
60+
time = 0,
61+
type = "on",
62+
channel = 0,
63+
number = 48,
64+
velocity = 100
65+
},
66+
{
67+
time = 96,
68+
type = "off",
69+
channel = 0,
70+
number = 48,
71+
velocity = 64
72+
},
73+
{
74+
time = 0,
75+
type = "meta",
76+
meta = "End of Track"
77+
}
78+
}
79+
}
80+
}
81+
}
82+
```
83+
84+
## License
85+
86+
MIT

0 commit comments

Comments
 (0)