demucs

package
v0.0.0-...-167a1d9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Models = map[string]struct {
		Fono    []string
		NonFono []string
		jobs    int
	}{
		"mdx_extra":   {Fono: []string{"bass", "drums", "other"}, NonFono: []string{"vocals"}, /* contains filtered or unexported fields */},
		"htdemucs":    {Fono: []string{"bass", "drums", "other"}, NonFono: []string{"vocals"}, /* contains filtered or unexported fields */},
		"htdemucs_ft": {Fono: []string{"bass", "drums", "other"}, NonFono: []string{"vocals"}, /* contains filtered or unexported fields */},
		"htdemucs_6s": {Fono: []string{"bass", "drums", "guitar", "piano", "other"}, NonFono: []string{"vocals"}, /* contains filtered or unexported fields */},
		"hdemucs_mmi": {Fono: []string{"bass", "drums", "other"}, NonFono: []string{"vocals"}, /* contains filtered or unexported fields */},
	}

	ModelNames []string = func() (names []string) {
		for model := range Models {
			names = append(names, model)
		}

		return
	}()

	// for UI
	SampleOrder = func() map[string]int {
		ordered := make(map[string]int)

		for i, key := range []string{"original", "fono", "vocals", "drums", "bass", "guitar", "piano", "other"} {
			ordered[key] = i
		}

		return ordered
	}()
)

Functions

func Split

func Split(ctx context.Context, model string, overrideJobs int, name, tempDir, targetDir string) (stems map[string]string, err error)

stems: map[stem]path

Types

This section is empty.

Jump to

Keyboard shortcuts

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