Event Lists

Event lists are container types that hold multiple event objects of the same type. These are vector-like containers with list semantics.

Note Lists

class NoteTickList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], arg3: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], /) symusic.core.NoteTickList

Build a note vector from NumPy arrays describing time/duration/pitch/velocity.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) NoteTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.NoteTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.NoteTickList
count(self, arg: symusic.core.NoteTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.NoteTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) NoteTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.NoteTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose the underlying SOA arrays as NumPy buffers for zero-copy inspection.

pop(self, index: int = -1) symusic.core.NoteTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.NoteTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) NoteTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.NoteTick objects.

class NoteQuarterList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], arg3: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], /) symusic.core.NoteQuarterList

Build a note vector from NumPy arrays describing time/duration/pitch/velocity.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) NoteQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.NoteQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.NoteQuarterList
count(self, arg: symusic.core.NoteQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.NoteQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) NoteQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.NoteQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose the underlying SOA arrays as NumPy buffers for zero-copy inspection.

pop(self, index: int = -1) symusic.core.NoteQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.NoteQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) NoteQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.NoteQuarter objects.

class NoteSecondList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], arg3: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], /) symusic.core.NoteSecondList

Build a note vector from NumPy arrays describing time/duration/pitch/velocity.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) NoteSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.NoteSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.NoteSecondList
count(self, arg: symusic.core.NoteSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.NoteSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) NoteSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.NoteSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose the underlying SOA arrays as NumPy buffers for zero-copy inspection.

pop(self, index: int = -1) symusic.core.NoteSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.NoteSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) NoteSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.NoteSecond objects.

Control Change Lists

class ControlChangeTickList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.ControlChangeTickList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) ControlChangeTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.ControlChangeTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.ControlChangeTickList
count(self, arg: symusic.core.ControlChangeTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.ControlChangeTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) ControlChangeTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.ControlChangeTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose control-change time/number/value arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.ControlChangeTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.ControlChangeTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) ControlChangeTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.ControlChangeTick objects.

class ControlChangeQuarterList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.ControlChangeQuarterList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) ControlChangeQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.ControlChangeQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.ControlChangeQuarterList
count(self, arg: symusic.core.ControlChangeQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.ControlChangeQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) ControlChangeQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.ControlChangeQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose control-change time/number/value arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.ControlChangeQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.ControlChangeQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) ControlChangeQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.ControlChangeQuarter objects.

class ControlChangeSecondList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.ControlChangeSecondList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) ControlChangeSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.ControlChangeSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.ControlChangeSecondList
count(self, arg: symusic.core.ControlChangeSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.ControlChangeSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) ControlChangeSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.ControlChangeSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose control-change time/number/value arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.ControlChangeSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.ControlChangeSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) ControlChangeSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.ControlChangeSecond objects.

Tempo Lists

class TempoTickList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], /) symusic.core.TempoTickList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) TempoTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TempoTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TempoTickList
count(self, arg: symusic.core.TempoTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TempoTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TempoTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TempoTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose tempo MSPQ/time arrays as NumPy buffers for efficient analysis.

pop(self, index: int = -1) symusic.core.TempoTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.TempoTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TempoTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.TempoTick objects.

class TempoQuarterList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], /) symusic.core.TempoQuarterList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TempoQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TempoQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TempoQuarterList
count(self, arg: symusic.core.TempoQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TempoQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TempoQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TempoQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose tempo MSPQ/time arrays as NumPy buffers for efficient analysis.

pop(self, index: int = -1) symusic.core.TempoQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.TempoQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TempoQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.TempoQuarter objects.

class TempoSecondList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], /) symusic.core.TempoSecondList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TempoSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TempoSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TempoSecondList
count(self, arg: symusic.core.TempoSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TempoSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TempoSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TempoSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose tempo MSPQ/time arrays as NumPy buffers for efficient analysis.

pop(self, index: int = -1) symusic.core.TempoSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.TempoSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TempoSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.TempoSecond objects.

Pedal Lists

class PedalTickList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], /) symusic.core.PedalTickList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) PedalTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.PedalTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.PedalTickList
count(self, arg: symusic.core.PedalTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.PedalTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) PedalTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.PedalTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose pedal time/duration arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.PedalTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.PedalTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) PedalTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.PedalTick objects.

class PedalQuarterList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], /) symusic.core.PedalQuarterList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) PedalQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.PedalQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.PedalQuarterList
count(self, arg: symusic.core.PedalQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.PedalQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) PedalQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.PedalQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose pedal time/duration arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.PedalQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.PedalQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) PedalQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.PedalQuarter objects.

class PedalSecondList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], /) symusic.core.PedalSecondList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) PedalSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.PedalSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.PedalSecondList
count(self, arg: symusic.core.PedalSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.PedalSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) PedalSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.PedalSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose pedal time/duration arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.PedalSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.PedalSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) PedalSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.PedalSecond objects.

Pitch Bend Lists

class PitchBendTickList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], /) symusic.core.PitchBendTickList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) PitchBendTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.PitchBendTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.PitchBendTickList
count(self, arg: symusic.core.PitchBendTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.PitchBendTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) PitchBendTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.PitchBendTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose pitch bend time/value arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.PitchBendTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.PitchBendTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) PitchBendTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.PitchBendTick objects.

class PitchBendQuarterList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], /) symusic.core.PitchBendQuarterList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) PitchBendQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.PitchBendQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.PitchBendQuarterList
count(self, arg: symusic.core.PitchBendQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.PitchBendQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) PitchBendQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.PitchBendQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose pitch bend time/value arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.PitchBendQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.PitchBendQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) PitchBendQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.PitchBendQuarter objects.

class PitchBendSecondList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], /) symusic.core.PitchBendSecondList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) PitchBendSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.PitchBendSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.PitchBendSecondList
count(self, arg: symusic.core.PitchBendSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.PitchBendSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) PitchBendSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.PitchBendSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose pitch bend time/value arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.PitchBendSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.PitchBendSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) PitchBendSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.PitchBendSecond objects.

Key Signature Lists

class KeySignatureTickList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.KeySignatureTickList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) KeySignatureTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.KeySignatureTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.KeySignatureTickList
count(self, arg: symusic.core.KeySignatureTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.KeySignatureTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) KeySignatureTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.KeySignatureTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose key signature time/key/tonality arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.KeySignatureTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.KeySignatureTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) KeySignatureTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.KeySignatureTick objects.

class KeySignatureQuarterList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.KeySignatureQuarterList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) KeySignatureQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.KeySignatureQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.KeySignatureQuarterList
count(self, arg: symusic.core.KeySignatureQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.KeySignatureQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) KeySignatureQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.KeySignatureQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose key signature time/key/tonality arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.KeySignatureQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.KeySignatureQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) KeySignatureQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.KeySignatureQuarter objects.

class KeySignatureSecondList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=int8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.KeySignatureSecondList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) KeySignatureSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.KeySignatureSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.KeySignatureSecondList
count(self, arg: symusic.core.KeySignatureSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.KeySignatureSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) KeySignatureSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.KeySignatureSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose key signature time/key/tonality arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.KeySignatureSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.KeySignatureSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) KeySignatureSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.KeySignatureSecond objects.

Time Signature Lists

class TimeSignatureTickList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=int32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.TimeSignatureTickList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) TimeSignatureTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TimeSignatureTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TimeSignatureTickList
count(self, arg: symusic.core.TimeSignatureTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TimeSignatureTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TimeSignatureTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TimeSignatureTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose time signature time/numerator/denominator arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.TimeSignatureTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.TimeSignatureTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TimeSignatureTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.TimeSignatureTick objects.

class TimeSignatureQuarterList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.TimeSignatureQuarterList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TimeSignatureQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TimeSignatureQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TimeSignatureQuarterList
count(self, arg: symusic.core.TimeSignatureQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TimeSignatureQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TimeSignatureQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TimeSignatureQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose time signature time/numerator/denominator arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.TimeSignatureQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.TimeSignatureQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TimeSignatureQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.TimeSignatureQuarter objects.

class TimeSignatureSecondList(*args, **kwargs)

Bases: object

static from_numpy(arg0: ndarray[dtype=float32, shape=(*), order='C', device='cpu'], arg1: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], arg2: ndarray[dtype=uint8, shape=(*), order='C', device='cpu'], /) symusic.core.TimeSignatureSecondList

Build an event vector from NumPy buffers.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TimeSignatureSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TimeSignatureSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TimeSignatureSecondList
count(self, arg: symusic.core.TimeSignatureSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TimeSignatureSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TimeSignatureSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TimeSignatureSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) dict

Expose time signature time/numerator/denominator arrays as NumPy buffers.

pop(self, index: int = -1) symusic.core.TimeSignatureSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.TimeSignatureSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TimeSignatureSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.TimeSignatureSecond objects.

Text Meta Lists

class TextMetaTickList(*args, **kwargs)

Bases: object

static from_numpy() None

Text metadata cannot be constructed from NumPy arrays; use regular constructors instead.

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) TextMetaTickList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TextMetaTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TextMetaTickList
count(self, arg: symusic.core.TextMetaTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TextMetaTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TextMetaTickList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TextMetaTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) None

Text metadata cannot be exported to NumPy because of variable-length strings.

pop(self, index: int = -1) symusic.core.TextMetaTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.TextMetaTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TextMetaTickList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Tick

(self) -> symusic.core.Tick

List container for symusic.core.TextMetaTick objects.

class TextMetaQuarterList(*args, **kwargs)

Bases: object

static from_numpy() None

Text metadata cannot be constructed from NumPy arrays; use regular constructors instead.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TextMetaQuarterList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TextMetaQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TextMetaQuarterList
count(self, arg: symusic.core.TextMetaQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TextMetaQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TextMetaQuarterList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TextMetaQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) None

Text metadata cannot be exported to NumPy because of variable-length strings.

pop(self, index: int = -1) symusic.core.TextMetaQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.TextMetaQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TextMetaQuarterList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Quarter

(self) -> symusic.core.Quarter

List container for symusic.core.TextMetaQuarter objects.

class TextMetaSecondList(*args, **kwargs)

Bases: object

static from_numpy() None

Text metadata cannot be constructed from NumPy arrays; use regular constructors instead.

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TextMetaSecondList

Remap timestamps using two aligned lists of original/new time values. Returns copy unless inplace.

append(self, arg: symusic.core.TextMetaSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self) symusic.core.TextMetaSecondList
count(self, arg: symusic.core.TextMetaSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TextMetaSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TextMetaSecondList

Keep only events for which the supplied Python callable returns True. Optionally operate on a copy.

insert(self, arg0: int, arg1: symusic.core.TextMetaSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False) bool

Return True when the vector is already sorted by the default key or supplied callable.

numpy(self) None

Text metadata cannot be exported to NumPy because of variable-length strings.

pop(self, index: int = -1) symusic.core.TextMetaSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.TextMetaSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TextMetaSecondList

Sort events in-place (unless inplace is False) by default key or a user supplied callable.

property ttype: symusic.core.Second

(self) -> symusic.core.Second

List container for symusic.core.TextMetaSecond objects.

Track Lists

class TrackTickList(*args, **kwargs)

Bases: object

adjust_time(self, original_times: Iterable[int], new_times: Iterable[int], inplace: bool = False) TrackTickList

Adjust the timeline of every track in the list using aligned original/new timestamps.

append(self, arg: symusic.core.TrackTick, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self, deep: bool = True, /) TrackTickList

Return a shallow copy or deep clone depending on deep.

count(self, arg: symusic.core.TrackTick, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TrackTickList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TrackTickList

Filter tracks with a Python callable. When inplace is False operate on a cloned list.

insert(self, arg0: int, arg1: symusic.core.TrackTick, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False, /) bool

Check whether the track list is already sorted by the default key or supplied callable.

pop(self, index: int = -1) symusic.core.TrackTick

Remove and return item at index (default last).

remove(self, arg: symusic.core.TrackTick, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TrackTickList
property ttype: symusic.core.Tick

List container for symusic.core.TrackTick objects.

class TrackQuarterList(*args, **kwargs)

Bases: object

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TrackQuarterList

Adjust the timeline of every track in the list using aligned original/new timestamps.

append(self, arg: symusic.core.TrackQuarter, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self, deep: bool = True, /) TrackQuarterList

Return a shallow copy or deep clone depending on deep.

count(self, arg: symusic.core.TrackQuarter, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TrackQuarterList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TrackQuarterList

Filter tracks with a Python callable. When inplace is False operate on a cloned list.

insert(self, arg0: int, arg1: symusic.core.TrackQuarter, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False, /) bool

Check whether the track list is already sorted by the default key or supplied callable.

pop(self, index: int = -1) symusic.core.TrackQuarter

Remove and return item at index (default last).

remove(self, arg: symusic.core.TrackQuarter, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TrackQuarterList
property ttype: symusic.core.Quarter

List container for symusic.core.TrackQuarter objects.

class TrackSecondList(*args, **kwargs)

Bases: object

adjust_time(self, original_times: Iterable[float], new_times: Iterable[float], inplace: bool = False) TrackSecondList

Adjust the timeline of every track in the list using aligned original/new timestamps.

append(self, arg: symusic.core.TrackSecond, /) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

copy(self, deep: bool = True, /) TrackSecondList

Return a shallow copy or deep clone depending on deep.

count(self, arg: symusic.core.TrackSecond, /) int

Return number of occurrences of arg.

extend(self, arg: symusic.core.TrackSecondList, /) None

Extend self by appending elements from arg.

filter(self, function: Callable, inplace: bool = True) TrackSecondList

Filter tracks with a Python callable. When inplace is False operate on a cloned list.

insert(self, arg0: int, arg1: symusic.core.TrackSecond, /) None

Insert object arg1 before index arg0.

is_sorted(self, key: Optional[Callable] = None, reverse: bool = False, /) bool

Check whether the track list is already sorted by the default key or supplied callable.

pop(self, index: int = -1) symusic.core.TrackSecond

Remove and return item at index (default last).

remove(self, arg: symusic.core.TrackSecond, /) None

Remove first occurrence of arg.

sort(self, key: Optional[Callable] = None, reverse: bool = False, inplace: bool = True) TrackSecondList
property ttype: symusic.core.Second

List container for symusic.core.TrackSecond objects.