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

Add an instruction to the segment on a specific channel.

add_to_segment(channel_description, instruction)#

Add an instruction to the segment on a specific channel.

Also adds the instruction to the channel’s instruction and waveform tables.

Parameters:
  • channel_description (ChannelDescription) – Channel on which to add the instruction.

  • instruction (Instruction) – The instruction to be added

Return type:

None