sc3.seq.eventstream module¶
Stream.sc part 2
-
class
CleanupEntry
¶ Bases:
object
-
add_event
(event)¶
-
remove_event
(event)¶
-
add_function
(fn, *args)¶
-
remove_function
(fn)¶
-
run
()¶
-
clear
()¶
-
-
class
EventStreamPlayer
(stream, event=None)¶ Bases:
sc3.base.stream.Routine
-
property
cleanup
¶
-
mute
()¶
-
unmute
()¶
-
reset
()¶ Reset the routine to its initial state.
-
resume
(clock=None, quant=None)¶ Resume the routine, this method does nothing if wasn’t paused before.
- Parameters
clock (
Clock
) – An optionally different clock to re-schedule the routine. By default, the clock previously passed to the play function will be used.quant (
Quant
) – A Quant object or a any value that can be cast into one with Quant.as_quant constructor. This parameter only works for TempoClock and is ignored by other clocks.
-
stop
()¶ Stop the routine and remove it from the clock if it is playing.
- Raises
RoutineException – If this method is called from within the routine’s function itself.
-
play
(clock=None, quant=None, reset=False)¶ Schedule the Routine in a clock to play it.
- Parameters
clock (
Clock
) – An optional clock to schedule the routine. By default, routines inherit the clock from the current time thread when played. The default clock of the main time thread is SystemClock.quant (
Quant
) – A Quant object or a any value that can be cast into one with Quant.as_quant constructor. This parameter only works for TempoClock and is ignored by other clocks.
-
property
-
class
PatternValueStream
(pattern)¶ Bases:
sc3.base.stream.Stream
Create a stream from value patterns.
-
next
(inval=None)¶
-
reset
()¶
-
-
class
PatternEventStream
(pattern)¶ Bases:
sc3.seq.eventstream.PatternValueStream
Create a stream from event patterns.
-
next
(inevent=None)¶
-
reset
()¶
-
clear
()¶
-