Liking cljdoc? Tell your friends :D

List of supported Options

Back to Index

Patch Options

These options are supported as the second argument to write-patch, write-patch-reload and patch.

window propertiesdefault
:x0window position, horizontal
:y0window position, vertical
:width450window width
:height300window height
:graph-on-parentfalse
:hide-object-namefalse
:view-width85width of visible graph area
:view-height60height of visible graph area
:view-margin-x0
:view-margin-y0
:x-range-min0
:x-range-max100
:y-range-min1
:y-range-max-1
Example
(write-patch "example.pd"
  {:width 800 :height 600} ; <-- put options here
  [:print [:msg "hello world"]])

Node Options

These options are supported as the second item in hiccup syntax:

Common Options
optiondefaultcomment
:x0horizontal node position
:y0vertical node position

Supported in: all nodes

Atom Options
optiondefaultcomment
:send-symbol"-"
:receive-symbol"-"
:label-text"-"
:label-pos00 is left, 1 is right, 2 is top, 3 is bottom
:width5node width
:lower-limit0
:upper-limit0

Supported in: floatatom, symbolatom

UI Options
optiondefaultcomment
:send-symbol"empty"
:receive-symbol"empty"
:label-text"empty"
:label-x17
:label-y7
:font-family0
:font-size10
:bg-color-262144
:fg-color-1
:label-color-1
:size15

Supported in: bng, tgl, hsl, vsl, hradio, vradio

Bang Options
optiondefaultcomment
:hold250
:interrupt50
:init0

Supported in: bng

Toggle Options
optiondefaultcomment
:init0is node value initialized when patch is loaded
:init-value0if 0, node is initialized to 0. else, node is initialized to :nonzero-value.
:nonzero-value1value emitted when toggle is on

Supported in: tgl

Slider Options
optiondefaultcomment
:width15
:height15
:bottom0minimum value
:top127maximum value
:log0
:init0is node value initialized when patch is loaded
:default0saved slider position, in 1/100th of pixels.
:steady-on-click1

Supported in: hsl, vsl

Radio Options
optiondefaultcomment
:init0does node send value on load?
:init-value0initial value
:cells8number of cells

Supported in: hradio, vradio

Canvas Options
optiondefaultcomment
:width100
:height60
:label-x20
:label-y12
:font-size14
:bg-color-233017
:fg-color-66577

Supported in: cnv

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close