sequence

package
v0.0.0-...-315edef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSequence

func CreateSequence(
	sequenceType string,
	sequenceLabel string,
	mySequenceNumber int,
	fixturesConfig *fixture.Fixtures,
	channels common.Channels) common.Sequence

Before a sequence can run it needs to be created. Assigns default values for all types of sequence.

func MakeACopy

func MakeACopy(src, dist interface{}) (err error)

func PlaySequence

func PlaySequence(sequence common.Sequence,
	mySequenceNumber int,
	availablePatterns map[int]common.Pattern,
	eventsForLauchpad chan common.ALight,
	guiButtons chan common.ALight,
	dmxController *ft232.DMXController,
	fixturesConfig *fixture.Fixtures,
	channels common.Channels,
	switchChannels []common.SwitchChannel,
	soundConfig *sound.SoundConfig,
	dmxInterfacePresent bool)

Now the sequence has been created, this functions starts the sequence.

Types

type SequenceConfig

type SequenceConfig struct {
	Name        string `yaml:"name"`
	Label       string `yaml:"label"`
	Description string `yaml:"description"`
	Type        string `yaml:"type"`
	Group       int    `yaml:"group"`
}

type SequencesConfig

type SequencesConfig struct {
	Sequences []SequenceConfig `yaml:"sequences"`
}

func LoadSequences

func LoadSequences() (sequences *SequencesConfig, err error)

LoadSequences loads sequence configuration information. Each sequence has a :-

name: sequence name,  a singe word.
description: free text describing the sequence.
group: assignes to one of the top 4 rows of the launchpad. 1-4
type:  rgb, scanner or switch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL