Documentation ¶
Index ¶
- Variables
- func AddComment(fname string, comment string) (fname2 string, err error)
- func Clean() (err error)
- func Convert(fname string, fname2 string) (err error)
- func ConvertToMatch(fname string, fnameMatch string) (fname2 string, err error)
- func CopyPaste(fname string, startPos float64, endPos float64, pastePos float64, ...) (fname2 string, err error)
- func FFT(fname string) (data string, err error)
- func FadeIn(fname string, duration float64) (fname2 string, err error)
- func FadeOut(fname string, duration float64) (fname2 string, err error)
- func Gain(fname string, gain float64) (fname2 string, err error)
- func GetBPM(name string) (beats float64, bpm float64, err error)
- func GetBinary() string
- func GetComment(fname string) (comment string, err error)
- func Info(fname string) (samplerate int, channels int, precision int, err error)
- func Init() (err error)
- func Join(fnames ...string) (fname2 string, err error)
- func Left(fname 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 NumSamples(fname string) (numSamples int, err error)
- func Onsets(fname string) (onsets []float64, err error)
- func PCM16(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 ResampleRate(fname string, sampleRate int, precision 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 Reverb(fname string) (fname2 string, err error)
- func Reverse(fname string) (fname2 string, err error)
- func ReverseReverb(fname string, beat float64, beats float64) (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 SilenceTrimFront(fname string) (fname2 string, err error)
- func Slowdown(fname string, slowdown float64) (fname2 string, err error)
- func Stereo(fname string) (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)
- func TrimBeats(fname string) (fname2 string, tempo float64, beats float64, err error)
- func Version() (out string, err error)
- func Warp(fname string, bpmSet float64, beatDivisionSet 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 ConvertToMatch ¶
func GetComment ¶
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 NumSamples ¶
NumSamples returns the number of samples in the file
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 ResampleRate ¶
ResampleRate changes the sample rate and precision
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 ReverseReverb ¶
ReverseReverb will reverse a piece, reverb it, reverse it back, and place it back in the position that the original note hits so it reverberates up to it.
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
func SilenceTrimFront ¶
SilenceTrimFront trims silence from beginning of file
func Stutter ¶
func Stutter(fname string, stutter_length float64, pos_start float64, count float64, xfadePieceStutterGain ...float64) (fname2 string, err error)
Stutter does a stutter effect
Types ¶
This section is empty.