Skip to content

Commit eb2b3b4

Browse files
committed
Parse notes from MIDI
1 parent 16c3001 commit eb2b3b4

File tree

12 files changed

+436
-109
lines changed

12 files changed

+436
-109
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ vendor.zip
2222

2323
/Assets/Plugins/FMOD/*
2424
/Assets/Plugins/FMOD.meta
25-
/Assets/StreamingAssets*
25+
/Assets/StreamingAssets/master*
2626
/FMOD/.*
2727
fmod_editor.log

Assets/StreamingAssets.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/StreamingAssets/Rhythm Game Data.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.02 KB
Binary file not shown.

Assets/StreamingAssets/Rhythm Game Data/Demo.mid.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Unity/Scenes/Test Rhythm Game.unity

Lines changed: 1 addition & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,105 +1429,6 @@ MonoBehaviour:
14291429
NotesView: {fileID: 1489695914}
14301430
ScoreText: {fileID: 816043964}
14311431
NoteGradeText: {fileID: 544028418}
1432-
Song:
1433-
BeatsPerMinute: 120
1434-
Notes:
1435-
- Type: 2
1436-
Time: 2
1437-
Duration: 0
1438-
- Type: 2
1439-
Time: 2.5
1440-
Duration: 0
1441-
- Type: 1
1442-
Time: 3
1443-
Duration: 0
1444-
- Type: 1
1445-
Time: 3.5
1446-
Duration: 0
1447-
- Type: 0
1448-
Time: 4
1449-
Duration: 0.25
1450-
- Type: 3
1451-
Time: 4.5
1452-
Duration: 0.25
1453-
- Type: 0
1454-
Time: 5
1455-
Duration: 0.25
1456-
- Type: 3
1457-
Time: 5.5
1458-
Duration: 0.25
1459-
- Type: 2
1460-
Time: 6
1461-
Duration: 0
1462-
- Type: 2
1463-
Time: 6.5
1464-
Duration: 0
1465-
- Type: 1
1466-
Time: 7
1467-
Duration: 0
1468-
- Type: 1
1469-
Time: 7.5
1470-
Duration: 0
1471-
- Type: 0
1472-
Time: 8
1473-
Duration: 0.25
1474-
- Type: 3
1475-
Time: 8.5
1476-
Duration: 0.25
1477-
- Type: 0
1478-
Time: 9
1479-
Duration: 0.25
1480-
- Type: 3
1481-
Time: 9.5
1482-
Duration: 0.25
1483-
- Type: 2
1484-
Time: 10
1485-
Duration: 0
1486-
- Type: 2
1487-
Time: 10.5
1488-
Duration: 0
1489-
- Type: 1
1490-
Time: 11
1491-
Duration: 0
1492-
- Type: 1
1493-
Time: 11.5
1494-
Duration: 0
1495-
- Type: 0
1496-
Time: 12
1497-
Duration: 0.25
1498-
- Type: 3
1499-
Time: 12.5
1500-
Duration: 0.25
1501-
- Type: 0
1502-
Time: 13
1503-
Duration: 0.25
1504-
- Type: 3
1505-
Time: 13.5
1506-
Duration: 0.25
1507-
- Type: 2
1508-
Time: 14
1509-
Duration: 0
1510-
- Type: 2
1511-
Time: 14.5
1512-
Duration: 0
1513-
- Type: 1
1514-
Time: 15
1515-
Duration: 0
1516-
- Type: 1
1517-
Time: 15.5
1518-
Duration: 0
1519-
- Type: 0
1520-
Time: 16
1521-
Duration: 0.25
1522-
- Type: 3
1523-
Time: 16.5
1524-
Duration: 0.25
1525-
- Type: 0
1526-
Time: 17
1527-
Duration: 0.25
1528-
- Type: 3
1529-
Time: 17.5
1530-
Duration: 0.25
15311432
--- !u!4 &1090514947
15321433
Transform:
15331434
m_ObjectHideFlags: 0
@@ -1597,7 +1498,7 @@ MonoBehaviour:
15971498
m_Script: {fileID: 11500000, guid: 8112514d52eaa43adb5d0c47e84a79ed, type: 3}
15981499
m_Name:
15991500
m_EditorClassIdentifier:
1600-
PixelsBetweenEachBeat: 270
1501+
PixelsBetweenEachBeat: 405
16011502
LeftTarget: {fileID: 787737352}
16021503
DownTarget: {fileID: 250930357}
16031504
UpTarget: {fileID: 2014153219}

Assets/src/GraphicsSettingsMenuEvents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected override void LocalStart() {
2424
);
2525

2626
if (ResolutionStepper.Value == -1)
27-
ResolutionStepper.Value = Screen.resolutions.Count() - 1;
27+
ResolutionStepper.Value = Screen.resolutions.Length - 1;
2828

2929
Resolution = Screen.resolutions[ResolutionStepper.Value];
3030

Assets/src/LinearWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void Update(Func<T, bool> predicate) {
3636
OnExitWindow?.Invoke(item);
3737
});
3838

39-
while (LastEnteredWindow < AllItems.Count() - 1) {
39+
while (LastEnteredWindow < AllItems.Length - 1) {
4040
T item = AllItems[LastEnteredWindow + 1];
4141

4242
if (predicate(item)) {

0 commit comments

Comments
 (0)