This file contains hidden or 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
| #!/bin/bash | |
| if [ "$#" -lt 3 ]; then | |
| echo "Usage: $0 mode device block_size1 [block_size2 ...]" | |
| echo "Example: $0 read /dev/rdisk2 1m 4m 8m 16m" | |
| exit 1 | |
| fi | |
| # Request sudo upfront | |
| if ! sudo -v; then |
This file contains hidden or 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 setBPM(bpm) { | |
| setcps(bpm/60/4).log() | |
| } | |
| const metro = () => { | |
| return stack( | |
| s("sine*4").mask("0 1 1 1") | |
| .decay(0.01) | |
| .sustain(0) | |
| .note("e5") |
OlderNewer