Commit 817ee6d
committed
fix: fix
The `get_note_end_time` function would try to get the note's sound data to estimate its length, but it would fail in case the sound file was missing, since it doesn't get added to the sounds dict returned by `load_instruments` at all (unlike when it's not assigned, when it's just set to `None`).
Fixes #3ignore_missing_instruments option not working properly1 parent 45d4caa commit 817ee6d
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | 118 | | |
121 | 119 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
0 commit comments