Digital Inputs

in1

Returns the value of digital input 1.

Example: to echo digital input 1 to digital output 1

(d1 (in1))

in2

Returns the value of digital input 2.

Example: to echo digital input 2 to digital output 1

(d1 (in2))

Analog Inputs

ain1

Returns the value of CV input 1

Example: to echo CV input 1 to CV output 1

(a1 (ain1))

ain2

Returns the value of CV input 2

Example: to echo CV input 2 to CV output 2

(a2 (ain2))

Hardware

swm

Read the value of the momentary switch

Control the speed of a square wave with momentary switch 1

(d2 (sqr (fast (+ 1 (swm)) beat)))

swt

Read the value of the toggle switch

Position Value
Left 0
Centre 1
Right 2

Control the speed of a square wave with the toggle switch

(d4 (sqr (fast (scale (swt) 0 2 3 8) beat)))

For the MusicThing Workshop System

knob

Read the value of the large knob

; read the knob and output to a2
(a2 (knob))

knobx

Read the value of knob X

; read the knob and output to a2
(a2 (knobx))

knoby

Read the value of knob y

; read the knob and output to a2
(a2 (knoby))

swz

Read the value of switch Z.

Position Value
Down 0
Centre 1
Up 2
; read the switch and output to a2
(a2 (* (swz) 0.5))