Coder Social home page Coder Social logo

sphere-vis's Introduction

sphere-vis

sphere-vis is a visualiser that displaces the vertices on a sphere in sync with the music/sounds.

screenshot

Compiling

Build time dependencies

The current version of sphere-vis will compile and statically link glfw and portaudio, as such the following system packages are necessary:

  • libX11 development files
  • libXrandr development files
  • libXinerama development files
  • libXcursor development files
  • libXi development files
  • libGL (mesa) development files
  • alsa library development files
  • cmake
  • make
  • a C++17 compiler

install-dependencies-fedora.sh is a script that will install the dependencies mentioned above, for Fedora (tested only on Fedora 32).

How to build

git clone https://github.com/alexge50/sphere-vis
cd sphere-vis
git submodule update --init --recursive
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ..
cmake --build . --target sphere-vis
cmake --build . --target sphere-vis -- -j N # or use this for compiling on multiple threads, replace N with the number of threads that you want to use

After building is done a sphere-vis binary will become available - you can copy this into a convenient location.

Configuration

sphere-vis is looking for a configuration file located at ~/.config/sphere-vis/conf.toml or the config file can be passed as a parameter, as follows:

sphere-vis /path/to/config/file

Although untested, sphere-vis should work on Windows, and if the program is run on Windows, it expects to config file to be passed as an argument.

Config file

The config file format is TOML, and an example of the default settings can be found in default.toml.

[audio]
sample_rate=44100 # the sample rate at which the audio is sampled
frames_per_buffer=128 # how many samples should be processed at a time (lowering this number will increase "real-timeness", however the CPU usage as well)
amplify=1.0 # the audio data is multiplied by this number

[sphere]
rings=10 # number of rings (parallels) that the displayed sphere has
sectors=10 # number of sectors (medians) that the displayed sphere has

[colors]
background=[0, 0, 0] # the color of the background
foreground=[153, 50, 204] # the color of the sphere

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.