Skip to content

Commit

Permalink
fix typos in python function helper texts (Natooz#94)
Browse files Browse the repository at this point in the history
(tests fail due to miditoolkit update, temp fix in Natooz#92)

* fix typos in miditok/midi_tokenizer.py

* fix typos in miditok/tokenizations/midi_like.py

* fix typos in miditok/tokenizations/structured.py

* fix typos in miditok/utils/utils.py
  • Loading branch information
shresthasurav authored Oct 31, 2023
1 parent 7bd0d3a commit 1714d86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion miditok/midi_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def _midi_to_tokens(
gathered into a list, then the time events are added. If `one_token_stream` is true, all events of all tracks
are treated all at once, otherwise the events of each track are treated independently.
:param midi: the MIDI objet to convert.
:param midi: the MIDI object to convert.
:return: a :class:`miditok.TokSequence` if `tokenizer.one_token_stream` is true, else a list of
:class:`miditok.TokSequence` objects.
"""
Expand Down
2 changes: 1 addition & 1 deletion miditok/tokenizations/midi_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _midi_to_tokens(
r"""Converts a preprocessed MIDI object to a sequence of tokens.
Overridden to call fix_offsets_overlapping_notes before.
:param midi: the MIDI objet to convert.
:param midi: the MIDI object to convert.
:return: a :class:`miditok.TokSequence` if `tokenizer.one_token_stream` is true, else a list of
:class:`miditok.TokSequence` objects.
"""
Expand Down
2 changes: 1 addition & 1 deletion miditok/tokenizations/structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _midi_to_tokens(
We override the parent method to handle the "non-program" case where `TimeShift` events have already been
added by `_notes_to_events`.
:param midi: the MIDI objet to convert.
:param midi: the MIDI object to convert.
:return: a :class:`miditok.TokSequence` if `tokenizer.one_token_stream` is true, else a list of
:class:`miditok.TokSequence` objects.
"""
Expand Down
2 changes: 1 addition & 1 deletion miditok/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def remove_duplicated_notes(notes: List[Note], filter_by_starting_tick: bool = T
`notes.sort(key=lambda x: (x.start, x.pitch, x.end))`
:param notes: notes to analyse
:param filter_by_starting_tick: will remove identical notes being played at the same onset time regarless of their
:param filter_by_starting_tick: will remove identical notes being played at the same onset time regardless of their
duration / offset time. If this argument is disabled, only 100% identical notes will be deduplicated,
i.e. with the same duration too. (default: True)
"""
Expand Down

0 comments on commit 1714d86

Please sign in to comment.