Skip to content

clj-puredata/clj-puredata

Repository files navigation

clj-puredata

clj-puredata is a Clojure library for generating PureData patches.

Visit the Homepage or the Documentation for more info.

Quick Start

This will create a counter.pd patch, use it in a usage.pd patch, and start PureData with that patch. Whenever you change and re-evaluate the write-patch-reload form, the patch will be updated in PureData as well.

(ns example.core
  (:require [clj-puredata.core :refer :all]))

(write-patch "counter.pd"
             [:outlet [:float {:name 'the-float}
                       0
                       [:b [:inlet]]
                       [:+ 1 (other 'the-float)]]])

(write-patch-reload "usage.pd"
                    [:print "count"
                     ["counter.pd"
                      [:msg "bang"]]])

(startup "usage.pd")

About

Clojure library for generating PureData patches

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published