Skip to content

Commit

Permalink
fix chord docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
meownoid committed Oct 11, 2020
1 parent 1af9a04 commit acf2f79
Show file tree
Hide file tree
Showing 2 changed files with 359 additions and 206 deletions.
13 changes: 8 additions & 5 deletions scripts/generate_chords.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ def {name}(
velocity: Optional[float] = None
) -> {return_type}:
\"\"\"
This function generates {full_name} chord.
:param base: base tone (can be integer, string, :class:`~melodia.core.tone.Tone` or :class:`~melodia.core.note.Note`)
:param duration: duration of the chord
:param velocity: velocity of the chord
Generates {full_name} chord. If note is provided as the first argument, duration and
velocity of this note will be used as default values for chord duration and velocity.
Otherwise :class:`~melodia.core.note.Note` defaults will be used.
:param base: base tone
(can be integer, string, :class:`~melodia.core.tone.Tone` or :class:`~melodia.core.note.Note`)
:param duration: duration of the chord (default: None)
:param velocity: velocity of the chord (default: None)
:return: tuple of {number} notes
\"\"\"
base_tone, base_duration, base_velocity = _get_parameters(base, duration, velocity)
Expand Down
Loading

0 comments on commit acf2f79

Please sign in to comment.