op1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrumPatch

func DrumPatch(fnameIn string, fnameOut string, op1data OP1MetaData) (err error)

DrumPatch creates a drum patch from op1 meta data and a song clip

Types

type OP1MetaData

type OP1MetaData struct {
	DrumVersion int     `json:"drum_version"`
	DynaEnv     []int64 `json:"dyna_env"`
	End         []int64 `json:"end"`
	FxActive    bool    `json:"fx_active"`
	FxParams    []int64 `json:"fx_params"`
	FxType      string  `json:"fx_type"`
	LfoActive   bool    `json:"lfo_active"`
	LfoParams   []int64 `json:"lfo_params"`
	LfoType     string  `json:"lfo_type"`
	Name        string  `json:"name"`
	Octave      int64   `json:"octave"`
	Pitch       []int64 `json:"pitch"`
	Playmode    []int64 `json:"playmode"`
	Reverse     []int64 `json:"reverse"`
	Start       []int64 `json:"start"`
	Type        string  `json:"type"`
	Volume      []int64 `json:"volume"`
}

OP1MetaData is a list of custom fields sometimes set by OP-1

func Default

func Default() OP1MetaData

Default returns the default OP1 struct

Jump to

Keyboard shortcuts

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