session

package
v0.0.0-...-45548fe Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	InputCtrlChannel chan signals.Signal
	OutputChannels   []chan signals.Signal
	SessionData      SessionData
}

func NewSession

func NewSession() *Session

func (*Session) AddOutputChannel

func (s *Session) AddOutputChannel(outputChannel chan signals.Signal)

func (*Session) InitializeSessionData

func (s *Session) InitializeSessionData()

func (*Session) ListenToInputCtrlChannel

func (s *Session) ListenToInputCtrlChannel()

func (*Session) Load

func (s *Session) Load(path string) error

func (*Session) Save

func (s *Session) Save(path string) error

func (*Session) SendToOutputChannels

func (s *Session) SendToOutputChannels(signal signals.Signal)

type SessionData

type SessionData struct {
	UserMatrix       [][]uint32
	UserPattern      *generators.Pattern
	KeyboardNumInput string
	Frequency        float64
	Lacunarity       float64
	Gain             float64
	Octaves          uint8
	XSteps           uint32
	YSteps           uint32
	Offset           uint32
	Bpm              uint32
	Low              uint8
	Release          uint8
	N, K, R          uint8 // Pattern Variables
	G                float64
}

Jump to

Keyboard shortcuts

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