Giter Site home page Giter Site logo

jpcima / pd-visualization Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 5.0 704 KB

Real time signal visualizers for Pure Data

License: Boost Software License 1.0

C++ 88.24% C 1.81% CMake 8.70% Shell 1.24%
pure-data external signal-analysis visualization dsp real-time

pd-visualization's Introduction

pd-visualization

This pd-visualization package provides Pure Data externals for visualizing signals.

These visualizers run in external processes and do not disturb real-time signal processing.

A standalone version for the Jack Audio Connection Kit is also part of the package.

patch

The bang message is used to show or hide the visualizer window. By default the visualizer is not started. When started and in the hidden state, the visualizers do not consume any CPU time.

Platform compatibility:

  • Linux
  • Windows
  • probably Darwin, testing is needed

To build the project, follow the usual CMake command line steps. The built puredata externals are located in the project directory, and the standalone versions are installed on the system. To use this in Pure Data, add the directory of this project to the search paths in preferences.

mkdir build ; cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install

wfvisu~

This visualization shows a waterfall view of the DFT of the input.

wfvisu~

sgvisu~

This visualization shows a spectrogram of the DFT of the input.

sgvisu~

ogvisu~

This visualization shows an oscillogram of the input.

Features:

  • collapsible UI controls
  • control of position and scale
  • trigger

ogvisu~

pd-visualization's People

Contributors

danomatika avatar jpcima avatar katjav avatar umlaeute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pd-visualization's Issues

Liniking error in msys2 Win10 x86_64

There is a problem preventing build from success. Here is the relevant make log:

Scanning dependencies of target sgvisu_tilde
[ 73%] Building CXX object CMakeFiles/sgvisu_tilde.dir/src/sgvisu~.cc.obj
[ 76%] Linking CXX shared module "../sgvisu~.dll"
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0\libgcc_eh.a(unwind-seh.o):(.text+0x3d0): multiple definition of `_Unwind_Resume'; C:/Program Files/Pd/bin/pd.lib(d000176.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sgvisu_tilde.dir/build.make:110: ../sgvisu~.dll] Error 1
make[1]: *** [CMakeFiles/Makefile2:161: CMakeFiles/sgvisu_tilde.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

cmake configuration seems ok, here are details:

cmake -DCMAKE_BUILD_TYPE=Release  ..
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: C:/msys64/mingw64/bin/pkg-config.exe (found version "1.7.3")
-- Found Puredata headers: C:/Program Files/Pd/src
-- Performing Test _test
-- Performing Test _test - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found FLTK: C:/msys64/mingw64/lib/libfltk.dll.a
-- Found static FLTK: C:/msys64/mingw64/lib/libfltk.a
-- Found StaticFLTK: TRUE
-- Found fftw3.h in path: C:/msys64/mingw64/include
-- Found library fftw3f: C:/msys64/mingw64/lib/libfftw3f.dll.a
-- Found static library fftw3f: C:/msys64/mingw64/lib/libfftw3f.a
-- Checking for module 'jack'
--   Package 'jack', required by 'virtual:world', not found
-- Configuring done
-- Generating done
-- Build files have been written to: D:/code/pd-externals/pd-visualization/build

Linking to Miller S. Puckette's "vanilla" distribution of Pd from http://msp.ucsd.edu/software.html. While trying to link with gcc build of Pd from sources in github, I encounter another error:

[...]/bin/pure-data/pd-0.51.4/src/pthread.h:260:8: error: redefinition of 'struct timespec'
  260 | struct timespec {
      |        ^~~~~~~~
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/time.h:300,
                 from C:/Users/przem/bin/pure-data/pd-0.51.4/src/pthread.h:189,
                 from C:/msys64/mingw64/include/c++/10.2.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from C:/msys64/mingw64/include/c++/10.2.0/x86_64-w64-mingw32/bits/gthr.h:148,
                 from C:/msys64/mingw64/include/c++/10.2.0/ext/atomicity.h:35,
                 from C:/msys64/mingw64/include/c++/10.2.0/bits/basic_string.h:39,
                 from C:/msys64/mingw64/include/c++/10.2.0/string:55,
                 from C:/msys64/mingw64/include/c++/10.2.0/stdexcept:39,
                 from C:/msys64/mingw64/include/c++/10.2.0/system_error:41,
                 from D:/code/pd-externals/pd-visualization/src/util/unix_fd.tcc:2,
                 from D:/code/pd-externals/pd-visualization/src/util/unix_fd.h:26,
                 from D:/code/pd-externals/pd-visualization/src/util/unix.h:2,
                 from D:/code/pd-externals/pd-visualization/src/visu~.h:3,
                 from D:/code/pd-externals/pd-visualization/src/visu~.cc:1:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/timeb.h:91:8: note: previous definition of 'struct timespec'
   91 | struct timespec {
      |        ^~~~~~~~
make[2]: *** [CMakeFiles/visu_common.dir/build.make:83: CMakeFiles/visu_common.dir/src/visu~.cc.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:269: CMakeFiles/visu_common.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

Any idea how to progress? Also is there any chance to publish Deken package?
Thanks

fatal error: color/color.hpp: No such file or directory

hi jpcima,
I'm trying to compile your object for pd-vanila on a Raspian stretch Patchbox O.S Real time, and i get the following error due to a missing library:

$ make
[ 19%] Built target visu_common
[ 28%] Built target sgvisu_tilde
[ 38%] Built target ogvisu_tilde
[ 47%] Built target Fl_Knob
[ 57%] Built target wfvisu_tilde
Scanning dependencies of target visu_gui
[ 61%] Building CXX object CMakeFiles/visu_gui.dir/src/gui/w_dft_spectrogram.cc.o
/home/patch/spectros/pd-visualization/src/gui/w_dft_spectrogram.cc:8:27: fatal error: color/color.hpp: No such file or directory
#include <color/color.hpp>
^
compilation terminated.
CMakeFiles/visu_gui.dir/build.make:86: recipe for target 'CMakeFiles/visu_gui.dir/src/gui/w_dft_spectrogram.cc.o' failed
make[2]: *** [CMakeFiles/visu_gui.dir/src/gui/w_dft_spectrogram.cc.o] Error 1
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/visu_gui.dir/all' failed
make[1]: *** [CMakeFiles/visu_gui.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

any clue where I could find this color.hpp file?
thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.