2020-02-28 05:55:07 +03:00
|
|
|
# NAME
|
|
|
|
test-audio/looper/README.md
|
2020-02-28 02:29:32 +03:00
|
|
|
|
2020-02-28 05:55:07 +03:00
|
|
|
# AUTHORS
|
2020-02-28 02:29:32 +03:00
|
|
|
Ella Pietraroia <ella@ausocean.org>
|
|
|
|
|
2020-02-28 05:55:07 +03:00
|
|
|
# Pi Setup:
|
2020-02-28 02:29:32 +03:00
|
|
|
- pull master
|
|
|
|
- navigate to /go/src/bitbucket.org/auscean/av/cmd/audio-player/looper
|
|
|
|
$sudo nano main.go
|
|
|
|
- chage file variable at top of function to be wav file that you have put onto the pi (hint: spc command to put a new file on the pi)
|
2020-02-28 05:55:07 +03:00
|
|
|
- Build using $ go build -tags pi0 or $ go build -tags pi3
|
2020-02-28 08:25:30 +03:00
|
|
|
- run makefile
|
|
|
|
$sudo make install_hard
|
2020-02-28 02:29:32 +03:00
|
|
|
$systemctl enable rc-local
|
|
|
|
$sudo systemctl start rc-local.service
|
|
|
|
- after starting the service the looping should start straight away
|
2020-02-28 08:25:30 +03:00
|
|
|
cmd/audio-player/looper:
|
2020-02-28 05:55:07 +03:00
|
|
|
# Useful commands:
|
2020-02-28 02:29:32 +03:00
|
|
|
$cat /tmp/rc.local.log
|
|
|
|
$sudo systemctl status rc-local.service
|
|
|
|
$cat audio.log (in looper directory)
|
|
|
|
|
2020-02-28 05:55:07 +03:00
|
|
|
# On computer
|
2020-02-28 02:29:32 +03:00
|
|
|
$scp something.wav pi@192.168.1.106:/home/pi
|