This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
live_loop :jazz_cymbal do | |
sample :drum_cymbal_open, sustain: 0.5, release: 0.1 | |
sleep 0.5 | |
sample :drum_cymbal_open, attack: 0.01, sustain: 0, release: 0.1 | |
sleep 0.3 | |
sample :drum_cymbal_open, attack: 0.01, sustain: 0, release: 0.1 | |
sleep 0.2 | |
end | |
live_loop :baseline do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ear { | |
clear | |
echo $1 | |
$1 | |
read -n 1 -s | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notify() { | |
body=${1-'Demo notification\nsyntax: notify "title" "body"'} | |
title=${2-'Terminal notification'} | |
osascript -e "display notification \"${body//\"/\\\"}\" with title \"${title//\"/\\\"}\"" | |
} |