1 { lib, stdenv, fetchurl, libsndfile, freeglut, alsa-lib, mesa, libGLU, libX11, libXmu
4 stdenv.mkDerivation rec {
9 url = "https://soundlab.cs.princeton.edu/software/sndpeek/files/sndpeek-${version}.tgz";
10 sha256 = "2d86cf74854fa00dcdc05a35dd92bc4cf6115e87102b17023be5cba9ead8eedf";
12 sourceRoot = "sndpeek-${version}/src/sndpeek";
14 # this patch adds -lpthread to the list of libraries, without it a
15 # symbol-not-found-error is thrown
16 patches = [ ./pthread.patch ];
29 buildFlags = [ "linux-alsa" ];
37 description = "Real-time 3D animated audio display/playback";
39 sndpeek is just what it sounds (and looks) like:
40 * real-time 3D animated display/playback
41 * can use mic-input or wav/aiff/snd/raw/mat file (with playback)
42 * time-domain waveform
43 * FFT magnitude spectrum
45 * lissajous! (interchannel correlation)
46 * rotatable and scalable display
47 * freeze frame! (for didactic purposes)
48 * real-time spectral feature extraction (centroid, rms, flux, rolloff)
49 * available on MacOS X, Linux, and Windows under GPL
50 * part of the sndtools distribution.
52 homepage = "https://soundlab.cs.princeton.edu/software/sndpeek/";
53 license = licenses.gpl2;
54 maintainers = [ maintainers.laikq ];
55 mainProgram = "sndpeek";