catnip

command module
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 13 Imported by: 0

README

catnip

love made-with-go betamax-was-a-thing

terminal audio visualizer for linux/unix/macOS/windows*

it supports audio backends

  • ALSA (linux FFmpeg)
  • AVFoundation (macOS FFmpeg)
  • DirectShow (windblows FFmpeg)
  • PortAudio (linux/macOS/windblows)
  • PulseAudio (parec/FFmpeg)

it depends on

  • go modules

    • github.com/nsf/termbox-go
    • github.com/integrii/flaggy
    • github.com/pkg/errors
    • github.com/lawl/pulseaudio
    • gonum.org/v1/gonum
  • binaries

    • ffmpeg (required for FFmpeg backends)
    • parec (required for PulseAudio backend with parec)
  • c libraries (optional, requires CGO - CGO_ENABLED=1)

    • fftw (fftw3) (enable with -tags withfftw)
    • portaudio (portaudio-2.0) (enable with -tags withportaudio)

get it

# get source
git clone https://github.com/noriah/catnip.git

# cd to dir
cd catnip

# build and install catnip
go install

# with portaudio
go install -tags withportaudio

# with fftw3
go install -tags withfftw

run it

  • use catnip list-backends to show available backends
  • use catnip -b {backend} list-devices to show available devices
  • use catnip -b {backend} -d {device} to run - use the full device name
  • use catnip -h for information on several more customizations

question it

catnip?

long story, short explanation

update

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
dsp
Package dsp provides audio analysis Some notes: https://dlbeer.co.nz/articles/fftvis.html https://www.cg.tuwien.ac.at/courses/WissArbeiten/WS2010/processing.pdf https://github.com/hvianna/audioMotion-analyzer/blob/master/src/audioMotion-analyzer.js#L1053 https://dsp.stackexchange.com/questions/6499/help-calculating-understanding-the-mfccs-mel-frequency-cepstrum-coefficients https://stackoverflow.com/questions/3694918/how-to-extract-frequency-associated-with-fft-values-in-python - https://stackoverflow.com/a/27191172
Package dsp provides audio analysis Some notes: https://dlbeer.co.nz/articles/fftvis.html https://www.cg.tuwien.ac.at/courses/WissArbeiten/WS2010/processing.pdf https://github.com/hvianna/audioMotion-analyzer/blob/master/src/audioMotion-analyzer.js#L1053 https://dsp.stackexchange.com/questions/6499/help-calculating-understanding-the-mfccs-mel-frequency-cepstrum-coefficients https://stackoverflow.com/questions/3694918/how-to-extract-frequency-associated-with-fft-values-in-python - https://stackoverflow.com/a/27191172
window
Package window provides Window Functions for singnal analysis See https://wikipedia.org/wiki/Window_function
Package window provides Window Functions for singnal analysis See https://wikipedia.org/wiki/Window_function
Package fft provides generic abstractions around fourier transformers.
Package fft provides generic abstractions around fourier transformers.
common/execread
Package execread provides a shared struct that wraps around cmd.
Package execread provides a shared struct that wraps around cmd.
portaudio/portaudio
Package portaudio contains modifications of CGO bindings for portaudio obtained from https://github.com/gordonklaus/portaudio see ./LICENSE
Package portaudio contains modifications of CGO bindings for portaudio obtained from https://github.com/gordonklaus/portaudio see ./LICENSE

Jump to

Keyboard shortcuts

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