Documentation ¶
Index ¶
- Variables
- func Clean() (err error)
- func CopyPaste(fname string, startPos float64, endPos float64, pastePos float64, ...) (fname2 string, err error)
- func Depop(fname string) (fname2 string, err error)
- func FFT(fname string) (data string, err error)
- func Gain(fname string, gain float64) (fname2 string, err error)
- func Info(fname string) (samplerate int, channels int, err error)
- func Join(fnames ...string) (fname2 string, err error)
- func Length(fname string) (length float64, err error)
- func Mix(fnames ...string) (fname2 string, err error)
- func MustFloat(t ...interface{}) float64
- func MustString(t ...interface{}) string
- func Norm(fname string) (fname2 string, err error)
- func Paste(fname string, piece string, pasteStart float64, crossfade float64) (fname2 string, err error)
- func Pitch(fname string, notes int) (fname2 string, err error)
- func PostProcess(fname string, gain float64) (fname2 string, err error)
- func Repeat(fname string, n int) (fname2 string, err error)
- func RetempoSpeed(fname string, old_tempo float64, new_tempo float64) (fname2 string, err error)
- func RetempoStretch(fname string, old_tempo float64, new_tempo float64) (fname2 string, err error)
- func Reverse(fname string) (fname2 string, err error)
- func SampleRate(fname string, srCh ...int) (fname2 string, err error)
- func SilenceAppend(fname string, length float64) (fname2 string, err error)
- func SilencePrepend(fname string, length float64) (fname2 string, err error)
- func SilenceTrim(fname string) (fname2 string, err error)
- func SilenceTrimEnd(fname string) (fname2 string, err error)
- func Slowdown(fname string, slowdown float64) (fname2 string, err error)
- func Stretch(fname string, stretch float64) (fname2 string, err error)
- func Stutter(fname string, stutter_length float64, pos_start float64, count float64, ...) (fname2 string, err error)
- func Tmpfile() string
- func Trim(fname string, start float64, length ...float64) (fname2 string, err error)
Constants ¶
This section is empty.
Variables ¶
var GarbageCollection = false
var TempDir = os.TempDir()
TempDir is where the temporary intermediate files are held
var TempPrefix = "sox"
TempPrefix is a unique indicator of the temporary files
var TempType = "wav"
TempType is the type of file to be generated (should be "wav")
Functions ¶
func MustFloat ¶
func MustFloat(t ...interface{}) float64
MustFloat returns only the first argument of any function, as a float
func MustString ¶
func MustString(t ...interface{}) string
MustString returns only the first argument of any function, as a string
func Paste ¶
func Paste(fname string, piece string, pasteStart float64, crossfade float64) (fname2 string, err error)
Paste pastes any piece into a place in the audio, assumes that the piece has "crossfade" length on both sides in addition to its current length.
func PostProcess ¶
PostProcess
func RetempoSpeed ¶
RetempoSpeed will change the tempo of the audio and pitch
func RetempoStretch ¶
RetempoStretch will change the tempo of the audio trying to keep pitch similar
func SampleRate ¶
SampleRate changes the sample rate
func SilenceAppend ¶
SilenceAppend appends silence to a file
func SilencePrepend ¶
SilencePrepend prepends silence to a file
func SilenceTrim ¶
SilenceTrim trims silence around a file
func SilenceTrimEnd ¶
SilenceTrimEnd trims silence from end of file
Types ¶
This section is empty.