Added a blurb about pressing a letter to get to the next note, because space and enter do not work. Added -h and --help options.
This commit is contained in:
parent
13715a53ef
commit
5befc8555e
@ -14,11 +14,15 @@ show_help() {
|
|||||||
echo "Usage: $0 tune_id"
|
echo "Usage: $0 tune_id"
|
||||||
echo "Where tune_id is one of"
|
echo "Where tune_id is one of"
|
||||||
echo "${!tuning[@]}"
|
echo "${!tuning[@]}"
|
||||||
|
echo "To advance to the next note, press any letter, enter and space do not work."
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
[ $# -ne 1 ] && show_help
|
[ $# -ne 1 ] && show_help
|
||||||
[ -z "${tuning[$1]}" ] && show_help
|
[ -z "${tuning[$1]}" ] && show_help
|
||||||
|
[ "$1" == "-h" ] && show_help
|
||||||
|
[ "$1" == "--help" ] && show_help
|
||||||
|
|
||||||
# Continuously play the notes until a key is press.
|
# Continuously play the notes until a key is press.
|
||||||
# Note key can not be enter or space.
|
# Note key can not be enter or space.
|
||||||
# This will adjust how long each note plays.
|
# This will adjust how long each note plays.
|
||||||
|
Loading…
Reference in New Issue
Block a user