mattiabressan / pineal

Engine for graphic live-coding on an audio stream, something between Fluxus and Processing. But in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pineal

random150215

An engine for graphic live-coding on an audio stream, something between Fluxus and Processing, but in Python!
(ok that's not true, it was in Python, now it is mainly in a pythonic Lisp dialect)

Example

(osc-source amp  "/amp")
(osc-source bass "/bass")
(osc-source high "/high")


(stroke-weight 4)

(on my-layer
    (fx [(scale (amp 1 1))]
        (draw my-layer))

    (fx [(scale (amp 4))]
        (pwired 4 [0 1 1 1])
        (psolid 4 [0 0 0 0.1]))

    (fx [(scale (bass 2))]
        (pwired 4 [0 1 0 1])
        (psolid 4 [0 0 0 0.1]))

    (fx [(scale (high 4))]
        (pwired 4 [1 1 1 1])
        (psolid 4 [0 0 0 0.1])))

(draw my-layer)

Instructions

WARNING: pineal require Jack up and running, so install and confugure it before everything else

  • If you want to use pineal to "hear" audio from your pc, setup jack to create monitor input ports
  • Play your music
  • Run ./run.hy and connect pineal to the input source using qjackctl, claudia or something else
  • Edit a .hy file in the visions folder or create a new one
  • Every time you save output is updated
  • Have fun!

Dependencies

Make sure you are using Python 2, and run:

      $ pip install -r requirements.txt

If you have troubles installing scipy from pip you can use the one from your distribution repositories

License

This project is released under the terms of GNU AGPL, see LICENSE file for details

Warning

This project is heavily in development. You can use it, I use it in "production" (coding at parties). But be prepared to continuous and unexpected changes in syntax (it's getting even more functional) and new features that randomly appear or disappear.

In case of doubt you can look at visions/test.hy, it should always work.

About

Engine for graphic live-coding on an audio stream, something between Fluxus and Processing. But in Python

License:GNU Affero General Public License v3.0


Languages

Language:Hy 67.4%Language:Python 31.4%Language:Makefile 1.2%