From bca55c2a4d9ec5cc393dde6c25e28bdd4d8c0e31 Mon Sep 17 00:00:00 2001 From: tmhglnd Date: Fri, 11 Sep 2020 15:44:03 +0200 Subject: [PATCH] added doc for print --- docs/00-general.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/00-general.md b/docs/00-general.md index ff1a0df4..b2ab9380 100644 --- a/docs/00-general.md +++ b/docs/00-general.md @@ -66,6 +66,33 @@ set drums fx(drive 10) set all fx(reverb 0.8 10) ``` +## print + +Print the output of a ring to the console to see its output. + +```java +console show + +ring rnd random(12) +ring sin sine(10 5.4) + +print rnd +print sin + +//=> PRINT: rnd 11 7 21 11 9 8 4 6 3 8 23 10 +//=> PRINT: sin 6 7 2 10 0 11 0 11 1 8 5 5 +``` + +## console + +Show the console to see the printed output or other error messages from the code. Clear the console as well. + +```java + +console show +console empty +``` + ## silence Disable all sounds that are evaluated **before** this line. Alternatively you can hit the `Alt + .` shortkey to disable the instruments.