Segment#

class iqm.models.playlist.segment.Segment(instructions=<factory>)#

Bases: object

Contains the instructions to be executed in one segment for each channel.

Parameters:
  • instructions (dict[str, list[int]]) – dict containing controller name as the key and the list of Instruction indices to be executed

  • value. (as the)

Module: iqm.models.playlist.segment

Attributes

instructions

Methods

add_to_segment

Adds an instruction to the segment for a specific channel.

add_to_segment(channel_description, instruction)#

Adds an instruction to the segment for a specific channel. Also calls the add_instruction of the channel for adding the instruction to the channels waveform map.

Parameters:
Return type:

None