(->nodes objs)
Recursively walks over a collection of nodes (objects or object-sets), and flattens them into a collection of objects
Recursively walks over a collection of nodes (objects or object-sets), and flattens them into a collection of objects
(clone instrument)
Creates a new instance of an instrument - by walking all objects and generating new, unique IDs for each.
Creates a new instance of an instrument - by walking all objects and generating new, unique IDs for each.
(connect x [outlet-id outlet-idx] [inlet-id inlet-idx])
Removes the connection between [outlet-id idx] -> [inlet-id idx]
Removes the connection between [outlet-id idx] -> [inlet-id idx]
(disconnect x [outlet-id outlet-idx] [inlet-id inlet-idx])
Removes the connection between [outlet-id idx] -> [inlet-id idx]
Removes the connection between [outlet-id idx] -> [inlet-id idx]
(event-channel event-type)
(genid)
(ids x)
Returns a set of all ids for each node in x
Returns a set of all ids for each node in x
(insert-connection connections idx connection)
For connections (eg, something conforming to :object/inlets or :object/outlets), insert a :object/connection object at the given index
For connections (eg, something conforming to :object/inlets or :object/outlets), insert a :object/connection object at the given index
(insert-node x obj)
Insert a :jax.patcher/object into x
Insert a :jax.patcher/object into x
(instrument obj-set)
(instrument obj-set plugout-idx)
Creates an instrument from an object set.
Creates an instrument from an object set.
(midi-effect obj-set)
(midi-effect obj-set midiout-idx)
Creates a MIDI effect from an object set
Creates a MIDI effect from an object set
(names x)
Returns a set of all names for each node in x
Returns a set of all names for each node in x
(nodes-by-name x name)
Returns all nodes matching name
Returns all nodes matching name
(nodes-by-object-name x name)
Returns all nodes matching an object name
Returns all nodes matching an object name
(object & {:keys [object id args inlets outlets name]})
Creates an object map from its arguments
Creates an object map from its arguments
(object-name {:keys [object]})
(object-name-inverse {:keys [object]})
(object-set & objects)
Creates an object-set from its arguments The first arg will be treated as the inlet, and the last arg will be treated as the outlet
Creates an object-set from its arguments The first arg will be treated as the inlet, and the last arg will be treated as the outlet
(patch & objects)
Concisely defines an object-set
Concisely defines an object-set
(ref obj idx)
(remove-connection connections idx connection)
For connections (eg, something conforming to :object/inlets or :object/outlets), remove a matching :object/connection object from the given index
For connections (eg, something conforming to :object/inlets or :object/outlets), remove a matching :object/connection object from the given index
(rget m k)
(route match)
(route match init)
(set-args x id val)
Associates (eg, replaces) the arguments for an id relating to a :jax.patcher/object
Associates (eg, replaces) the arguments for an id relating to a :jax.patcher/object
(set-inlets x id inlets)
Associates (eg, replaces) the inlets for an id relating to a :jax.patcher/object
Associates (eg, replaces) the inlets for an id relating to a :jax.patcher/object
(set-midiout midi-effect obj-id obj-idx)
(set-name x id name)
Associates (eg, replaces) the tagged name for an id relating to a :jax.patcher/object
Associates (eg, replaces) the tagged name for an id relating to a :jax.patcher/object
(set-object x id object)
Associates (eg, replaces) the object name for an id relating to a :jax.patcher/object
Associates (eg, replaces) the object name for an id relating to a :jax.patcher/object
(set-outlets x id outlets)
Associates (eg, replaces) the outlets for an id relating to a :jax.patcher/object
Associates (eg, replaces) the outlets for an id relating to a :jax.patcher/object
(set-plugout instrument obj-id obj-idx)
(unpack-arg arg)
(unpack-args args)
(update-args x id f)
Updates the arguments for an id relating relating to a :jax.patcher/object
f is a function of: (fn [object args])
Updates the arguments for an id relating relating to a :jax.patcher/object f is a function of: (fn [object args])
(update-inlets x id f)
Updates the inlets for an id relating relating to a :jax.patcher/object
f is a function of: (fn [object inlets])
Updates the inlets for an id relating relating to a :jax.patcher/object f is a function of: (fn [object inlets])
(update-name x id f)
Updates the object's tagged name for an id relating relating to a :jax.patcher/object
f is a function of: (fn [object name])
Updates the object's tagged name for an id relating relating to a :jax.patcher/object f is a function of: (fn [object name])
(update-node x id k f)
(update-object x id f)
Updates the object name for an id relating relating to a :jax.patcher/object
f is a function of: (fn [object object-name])
Updates the object name for an id relating relating to a :jax.patcher/object f is a function of: (fn [object object-name])
(update-outlets x id f)
Updates the outlets for an id relating relating to a :jax.patcher/object
f is a function of: (fn [object outlets])
Updates the outlets for an id relating relating to a :jax.patcher/object f is a function of: (fn [object outlets])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close