Giter Club home page Giter Club logo

pym's Introduction

Project PyM

Python bindings for the ProjectM Visualizer

Warning

This project is a experimental proof of concept. It is very early on (pre-alpha quality). Use at you own risk.

Getting Started

Prerequisites

Pym was developed utilizing Python 3.6 under Ubuntu 17.10. Early versions of Python 3 should work, but have not been tested.

A number of python packages are required to compile Pym and run the examples. It is recommeded that the user creates a python virtual environment to install the packages and in which to build Pym.

python3 -m venv pym-python-env
source pym-python-env/bin/activate

pip install pysdl2 cython numpy PyOpenGL PyOpenGL_accelerate

Users will also need to install ProjectM. Installation instructions can be found here.

Note: the install script does not currently install all the correct header files into the {install}/include directory. Users will need to manually copy these over.

cp libprojectm_src/src/libprojectM/Common.hpp libprojectm_install/include
cp libprojectm_src/src/libprojectM/dlldefs.h libprojectm_install/include
cp libprojectm_src/src/libprojectM/event.h libprojectm_install/include
cp libprojectm_src/src/libprojectM/fatal.h libprojectm_install/include
cp libprojectm_src/src/libprojectM/PCM.hpp libprojectm_install/include

Installing

To install Pym the user must first modify the base_path variable in the setup.py to point towards the Project M installation folder. From there:

python setup.py install

Running

A couple of examples are included in the exmaples directory. For both of them users nneed to edit the "main.py" to point to the correct "presetURL".

"pym_sdl" recreates Project M's project-M-sdl example.

python examples/pym_sdl/main.py

"pym_sdl_wav" can be used to playback a wav file. To run:

python examples/pym_sdl/main.py

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.