Skip to content

Commit 69fe9a1

Browse files
Format code with black (bot)
1 parent 3972556 commit 69fe9a1

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

partitura/musicanalysis/performance_codec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def to_matched_score(
703703
("voice", "i4"),
704704
]
705705
if include_midi_idx:
706-
fields += [("midi_id","U256")]
706+
fields += [("midi_id", "U256")]
707707

708708
if include_score_markings and not isinstance(score, np.ndarray):
709709
fields += [

partitura/musicanalysis/performance_features.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def make_performance_features(
4141
feature_functions: Union[List, str],
4242
add_idx: bool = True,
4343
add_midi_idx: bool = False,
44-
include_score_markings: bool = True
44+
include_score_markings: bool = True,
4545
):
4646
"""
4747
Compute the performance features. This function is defined in the same
@@ -73,9 +73,11 @@ def make_performance_features(
7373
performance_features : structured array
7474
"""
7575
m_score, unique_onset_idxs, snote_ids = compute_matched_score(
76-
score, performance, alignment,
77-
include_score_markings = include_score_markings,
78-
include_midi_idx=add_midi_idx
76+
score,
77+
performance,
78+
alignment,
79+
include_score_markings=include_score_markings,
80+
include_midi_idx=add_midi_idx,
7981
)
8082

8183
acc = []
@@ -149,7 +151,7 @@ def compute_matched_score(
149151
score: ScoreLike,
150152
performance: PerformanceLike,
151153
alignment: list,
152-
include_score_markings = True,
154+
include_score_markings=True,
153155
include_midi_idx: bool = False,
154156
):
155157
"""
@@ -165,7 +167,7 @@ def compute_matched_score(
165167
The score--performance alignment, a list of dictionaries
166168
include_score_markings (bool): include dynamcis and articulation
167169
markings (Optional)
168-
include_midi_idx (bool): include MIDI note idx in the matched
170+
include_midi_idx (bool): include MIDI note idx in the matched
169171
array (Optional)
170172
171173
Returns
@@ -175,9 +177,11 @@ def compute_matched_score(
175177
"""
176178

177179
m_score, snote_ids = to_matched_score(
178-
score, performance, alignment,
179-
include_score_markings = include_score_markings,
180-
include_midi_idx = include_midi_idx
180+
score,
181+
performance,
182+
alignment,
183+
include_score_markings=include_score_markings,
184+
include_midi_idx=include_midi_idx,
181185
)
182186

183187
(time_params, unique_onset_idxs) = encode_tempo(

0 commit comments

Comments
 (0)