song

package
v0.0.0-...-dc47d55 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Part

type Part struct {
	Name     string
	Start    float64
	Length   float64            `toml:"length"` // length in bars (each bar is 4 beats)
	SampSwap *sampswap.SampSwap `toml:"ss"`     // original sample for this part
}

type Song

type Song struct {
	Tempo          float64
	Bars           float64 // each bar is 4 beats
	Seed           int64
	Tracks         []Track `toml:"track"`
	EffectTapestop float64
	// contains filtered or unexported fields
}

func (*Song) CombineAll

func (s *Song) CombineAll() (err error)

func (*Song) DepopAll

func (s *Song) DepopAll() (err error)

func (*Song) Generate

func (s *Song) Generate(folder0 ...string) (err error)

func (*Song) RunAll

func (s *Song) RunAll() (err error)

type Track

type Track struct {
	Name               string
	Structure          string   // "ABABC"
	StructureArray     []string // []string{"A","B"}
	NameSync           string
	Parts              []Part `toml:"part"`
	FileOut            string
	EffectToggle       float64
	EffectToggleFilter float64
	EffectOneWordDelay bool
	Gain               float64
}

Jump to

Keyboard shortcuts

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