symusic.factory.CoreClasses¶
- class CoreClasses(tick: T, quarter: Q, second: S)[source]¶
Bases:
Generic[T,Q,S]Holds the Tick/Quarter/Second variants for a given low-level type.
Each factory keeps one of these lightweight records around so it can branch on the requested time unit exactly once and reuse the same logic for constructors, numpy helpers, and isinstance checks.
Methods
__init__(tick, quarter, second)dispatch(ttype)Dispatch the correct Core class according to the ttype.
Attributes
- dispatch(ttype: TimeUnit | str) T | Q | S[source]¶
Dispatch the correct Core class according to the ttype.
- quarter: Q¶
- second: S¶
- tick: T¶