From db7d99dba7001b687343d272d66f70f987f2b88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Przemys=C5=82aw=20Pluta?= Date: Sun, 15 Mar 2020 18:39:51 +0100 Subject: [PATCH] Improve sound of alert --- modules/music-tools/src/main/resources/main.mus | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/music-tools/src/main/resources/main.mus b/modules/music-tools/src/main/resources/main.mus index 488c852..3bdef33 100644 --- a/modules/music-tools/src/main/resources/main.mus +++ b/modules/music-tools/src/main/resources/main.mus @@ -15,7 +15,10 @@ function alert(melody: string = "beep") { throw "Unknown melody with name of '" + melody + "'"; } - true ^ midi({ bpm -> 400 }, melodies.get(melody)); + A = melodies.get(melody); + B = transpose(6, melodies.get(melody)); + + true ^ midi({ bpm -> 400 }, A, B); } function alert(cycles: int, melody: string = "beep") { @@ -29,5 +32,9 @@ function alert(cycles: int, melody: string = "beep") { if(not melodies.containsKey(melody)) { throw "Unknown melody with name of '" + melody + "'"; } - cycles ^ midi({ bpm -> 400 }, melodies.get(melody)); + + A = melodies.get(melody); + B = transpose(6, melodies.get(melody)); + + cycles ^ midi({ bpm -> 400 }, A, B); } \ No newline at end of file