Previous topic

music21.stream.makeNotation

Next topic

music21.stream.timespanAnalysis

Table Of Contents

Table Of Contents

This Page

music21.stream.streamStatus

StreamStatus

class music21.stream.streamStatus.StreamStatus(client=None)

An object that stores the current notation state for the client stream.

Separates out tasks such as whether notation has been made, etc.

>>> s = stream.Stream()
>>> ss = s.streamStatus
>>> ss
<music21.stream.streamStatus.StreamStatus object at 0x...>
>>> s.streamStatus.client is s
True

Copying of StreamStatus and surrounding Streams

>>> import copy
>>> ss2 = copy.deepcopy(ss)
>>> ss2.client is None
True
>>> s2 = copy.deepcopy(s)
>>> s2.streamStatus
<music21.stream.streamStatus.StreamStatus object at 0x...>
>>> s2.streamStatus is ss
False
>>> s2.streamStatus.client is s2
True

StreamStatus bases

StreamStatus read/write properties

StreamStatus.beams
StreamStatus.client

StreamStatus methods

StreamStatus.haveAccidentalsBeenMade()

If Accidentals.displayStatus is None for all contained pitches, it as assumed that accidentals have not been set for display and/or makeAccidentals has not been run. If any Accidental has displayStatus other than None, this method returns True, regardless of if makeAccidentals has actually been run.

StreamStatus.haveBeamsBeenMade()

If any Note in this Stream has .beams defined, it as assumed that Beams have not been set and/or makeBeams has not been run. If any Beams exist, this method returns True, regardless of if makeBeams has actually been run.