This page has no translation to 中文 yet. The original English version is below. If you’d like to help, great! See how to translate a documentation page in the contribution guide.
Note This is a web-version of a tutorial chapter embedded right into the XOD IDE. To get a better learning experience we recommend to install the desktop IDE or start the browser-based IDE, and you’ll see the same tutorial there.

Terminals

Screenshot of 303-add-terminals

We need a way for the between node to get values in and put values out. In XOD patch nodes interact with the outside world using terminal nodes. You can find the terminal nodes in xod/patch-nodes library, they are called input-number, input-pulse, output-boolean, etc.

On this patch, we already placed an input-number and output-boolean instead of tweak-number and watch. The terminals give our node one number input pin and one boolean output. You can check it out by invoking the help box for the node in Project Browser.

Instructions #

  1. Reflect the changes to your between patch: copy/paste the IN and OUT terminals there and link them accordingly.
  2. Add two more input-numbers.
  3. Connect them to less and greater’s pins instead of hardcoded 0.4 and 0.7 values.
  4. Label the new terminals as MIN and MAX using Inspector.
  5. Check how the node looks now in the help panel.

Note that node’s pin order is determined by the order of respective terminals. Try to reorder the input terminals and look how it affects the preview in the help panel.

Pin naming convention #

Conventionally XOD uses pin labels that are similar to IC leg labels. The labels contain at most four characters, and usually, they are mnemonics or abbreviations. The restriction allows rendering patches quite densely.

Found a typo or mistake? Want to improve the text? Edit this page on GitHub and open a pull request. If you have a complex proposal or you want to discuss the content, feel free to start a new thread on XOD forum.