Getting started with purrr
First steps in Forth: how to interact with CATkit.
> ping CATkit
The 'p' command prints the number on top of the stack. Entering a number just places it on top.
> 123 p 123
Procedure words take their argument from the stack. For example, addition goes as follows.
> 1 2 + > p 3
Storing to and retreiving from memory:
> 42 10 ! > 42 10 @ p 42
Now create a file /tmp/test.f containing the following:
: up 1 + ;
Then upload it using the command.
> ul /tmp/test.f
Edit the file, adding another line and run the upload command again.
: up 1 + ; : nop for 1 + next ;
Reading the Analog->Digital converter.
> 0 ad@ p
Switching on the synth engine, and loading some patches.
> engine-on > square > 50 p0 > 10 pwm


