Skip to content

A lightweight yet powerful audio-to-MIDI converter with pitch bend detection

update a type

Jan Van Balen3f504cf7b3e7
diff --git a/basic_pitch/inference.py b/basic_pitch/inference.py
index ef3df49..2976f3e 100644
--- a/basic_pitch/inference.py
+++ b/basic_pitch/inference.py
@@ -20,7 +20,7 @@ import enum
import json
import os
import pathlib
-from typing import Dict, List, Optional, Tuple, Union
+from typing import Dict, List, Optional, Sequence, Tuple, Union
from tensorflow import Tensor, signal, keras, saved_model
import numpy as np
@@ -330,7 +330,7 @@ def predict(
def predict_and_save(
- audio_path_list: List[Union[pathlib.Path, str]],
+ audio_path_list: Sequence[Union[pathlib.Path, str]],
output_directory: Union[pathlib.Path, str],
save_midi: bool,
sonify_midi: bool,