From 7e6289d09697b26ece2070a1c836fdce4ff333c3 Mon Sep 17 00:00:00 2001 From: zeroflag Date: Tue, 29 Jun 2021 17:51:13 +0200 Subject: [PATCH] tone generator --- src/main/res/raw/misc.forth | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/res/raw/misc.forth b/src/main/res/raw/misc.forth index 661b6a9..45867cf 100644 --- a/src/main/res/raw/misc.forth +++ b/src/main/res/raw/misc.forth @@ -13,4 +13,6 @@ } each tbl ; -: ms ( n -- ) 'java.lang.Thread/sleep/l' jvm-call-static ; \ No newline at end of file +: ms ( n -- ) 'java.lang.Thread/sleep/l' jvm-call-static ; + +: tone ( hz ms -- ) swap 'com.vectron.forthcalc.support.Tone/play/di' jvm-call-static ; \ No newline at end of file