Submitted scripts and programs
Forum rules
Your own work only.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Wed Jan 13, 2016 5:27 pm
Code: Select all
#!/bin/bash
# tuna - guitar tuner - depends on speaker-test
array=( "329.63" "246.94" "196" "146.83" "110" "82.41" )
select opt in "${array[@]}"; do
speaker-test -f "$opt" -t sine -l 1 -p 10 > /dev/null
done
..gnutella..
-
simgin
- Meme Fodder
- Posts: 1167
- Joined: Sun Jan 06, 2013 12:07 am
- Location: Bradford-on-Avon, UK
Unread post
by simgin » Wed Jan 13, 2016 6:49 pm
^ I have a hunch that you are jamming at home atm. Julius? :)
Someone told me that I am delusional, I almost fell off my unicorn.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Wed Jan 13, 2016 7:37 pm
haha no, I just wanted to find the easiest way to play a tone in a certain frequency without additional packages (the speaker-test is apparently part of aplay)
..gnutella..
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Thu Jan 14, 2016 9:03 am
Code: Select all
#!/bin/bash
# tuneleiter
echo " 2C# 4D# 7F# 9G# 11A#"
echo "1C 3D 5E 6F 8G 10A 12B"
echo
array=( 130.81 138.59 146.83 155.56 164.81 174.61 185 196 207.65 220 233.08 246.94 )
select opt in "${array[@]}"; do
speaker-test -f "$opt" -t sine -l 1 -p 10 > /dev/null
done
..gnutella..
-
Snap
- Sperminator
- Posts: 189
- Joined: Sun Oct 05, 2014 8:11 pm
Unread post
by Snap » Fri Jan 15, 2016 8:00 am
Added to the local bin. Thanks, bacon.