core¶
- class BaseClock¶
Bases:
Generic
[C
]-
change(beats_per_minute: float | None =
None
, time_signature: tuple[int, int] | None =None
) int | None ¶
-
cue(procedure: C, *, args: Sequence[Any] | None =
None
, event_type: int =EventType.SCHEDULE
, kwargs: dict[str, Any] | None =None
, quantization: '8M' | '4M' | '2M' | '1M' | '1/2' | '1/2T' | '1/4' | '1/4T' | '1/8' | '1/8T' | '1/16' | '1/16T' | '1/32' | '1/32T' | '1/64' | '1/64T' | '1/128' | None =None
) int ¶
-
cue_change(*, beats_per_minute: float | None =
None
, quantization: '8M' | '4M' | '2M' | '1M' | '1/2' | '1/2T' | '1/4' | '1/4T' | '1/8' | '1/8T' | '1/16' | '1/16T' | '1/32' | '1/32T' | '1/64' | '1/64T' | '1/128' | None =None
, time_signature: tuple[int, int] | None =None
) int ¶
-
reschedule(event_id: int, *, schedule_at: float =
0.0
, time_unit: TimeUnit =TimeUnit.BEATS
) int | None ¶
-
schedule(procedure: C, *, args: Sequence[Any] | None =
None
, event_type: int =EventType.SCHEDULE
, kwargs: dict[str, Any] | None =None
, schedule_at: float =0.0
, time_unit: TimeUnit =TimeUnit.BEATS
) int ¶
-
schedule_change(*, beats_per_minute: float | None =
None
, schedule_at: float =0.0
, time_signature: tuple[int, int] | None =None
, time_unit: TimeUnit =TimeUnit.BEATS
) int ¶
-
change(beats_per_minute: float | None =
- class CallbackCommand(event_id: int, event_type: int, quantization: '8M' | '4M' | '2M' | '1M' | '1/2' | '1/2T' | '1/4' | '1/4T' | '1/8' | '1/8T' | '1/16' | '1/16T' | '1/32' | '1/32T' | '1/64' | '1/64T' | '1/128' | None, schedule_at: float, time_unit: supriya.clocks.core.TimeUnit | None, args: tuple | None, kwargs: dict | None, procedure: supriya.clocks.core.AsyncClockCallback | supriya.clocks.core.ClockCallback)¶
Bases:
Command
- class CallbackEvent(event_id: int, event_type: int, seconds: float, measure: int | None, offset: float | None, procedure: supriya.clocks.core.AsyncClockCallback | supriya.clocks.core.ClockCallback, args: tuple | None, kwargs: dict | None, invocations: int)¶
Bases:
Event
- class ChangeCommand(event_id: int, event_type: int, quantization: '8M' | '4M' | '2M' | '1M' | '1/2' | '1/2T' | '1/4' | '1/4T' | '1/8' | '1/8T' | '1/16' | '1/16T' | '1/32' | '1/32T' | '1/64' | '1/64T' | '1/128' | None, schedule_at: float, time_unit: supriya.clocks.core.TimeUnit | None, beats_per_minute: float | None, time_signature: tuple[int, int] | None)¶
Bases:
Command
- class ChangeEvent(event_id: int, event_type: int, seconds: float, measure: int | None, offset: float | None, beats_per_minute: float | None, time_signature: tuple[int, int] | None)¶
Bases:
Event
- class ClockContext(current_moment, desired_moment, event)¶
Bases:
NamedTuple
- class ClockState(beats_per_minute, initial_seconds, previous_measure, previous_offset, previous_seconds, previous_time_signature_change_offset, time_signature)¶
Bases:
NamedTuple
- class Command(event_id: int, event_type: int, quantization: '8M' | '4M' | '2M' | '1M' | '1/2' | '1/2T' | '1/4' | '1/4T' | '1/8' | '1/8T' | '1/16' | '1/16T' | '1/32' | '1/32T' | '1/64' | '1/64T' | '1/128' | None, schedule_at: float, time_unit: supriya.clocks.core.TimeUnit | None)¶
Bases:
Action
- class Event(event_id: int, event_type: int, seconds: float, measure: int | None, offset: float | None)¶
Bases:
Action
- class EventType(*values)¶
Bases:
IntEnum
- __format__(format_spec, /)¶
Convert to a string according to format_spec.
-
CHANGE =
0
¶
-
SCHEDULE =
1
¶