Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shiftElements docs #1326

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions music21/stream/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5512,10 +5512,9 @@ def shiftElements(self, offset, startOffset=None, endOffset=None, classFilterLis
.storeAtEnd() (such as right barlines) are
not affected.

If startOffset is given then all elements before
that offset will be shifted. If endOffset is given
then all elements at or after this offset will be
shifted
If startOffset is given then elements before
that offset will not be shifted. If endOffset is given
then all elements at or after this offset will be not be shifted.

>>> a = stream.Stream()
>>> a.repeatInsert(note.Note('C'), list(range(10)))
Expand Down