Skip to content

dsqmoore/pineal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pineal

screenshot

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)

Screenshots

Some screenshots

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
  • Create a file where write your visuals
  • Run ./run.hy yourfile.hy and connect pineal to the input source using qjackctl, claudia or something else
  • Edit your file
  • Every time you save output is updated
  • Have fun!

Dependencies

Make sure you are using Python 2, and install:

    hy==0.11.0
    pyglet
    watchdog
    jack-client==0.3.0
    scipy

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

Documentation

References are avaiable on Readthedocs

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 sample.hy or the examples/ folder, they should always work.

About

Engine / DSL for graphic live-coding on an audio stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Hy 66.9%
  • Python 31.8%
  • Makefile 1.3%