audio-player: changing files to be README.md for better viewing

This commit is contained in:
Ella Pietraroia 2020-02-28 09:59:32 +10:30
parent a5410511fa
commit b041ae43c5
6 changed files with 78 additions and 114 deletions

View File

@ -1,55 +0,0 @@
/*
NAME
test-audio/README
AUTHORS
Ella Pietraroia <ella@ausocean.org>
LICENSE
revid is Copyright (C) 2017-2020 the Australian Ocean Lab (AusOcean)
It is free software: you can redistribute it and/or modify them
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
It is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
in gpl.txt. If not, see http://www.gnu.org/licenses.
*/
Pi Setup:
pull master
navigate to /go/src/bitbucket.org/ausocean/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)
and build
edit rc.local to run looper at boot
$sudo nano /etc/rc.local
paste this in after comments but before 'exit 0': -----------------------------------------------------------
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
exec 1>&2 # send stdout to the same log file
printf "rc.local started" # show start of execution
set -x # tell sh to display commands before execution
AUDIOPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/audio-player/looper0
cd $AUDIOPATH
./looper0 &
-----------------------------------------------------------------------------------------------------------------
$systemctl enable rc-local
$sudo systemctl start rc-local.service
after starting the service the looping should start straight away
Useful commands:
$cat /tmp/rc.local.log
$sudo systemctl status rc-local.service
$cat audio.log (in looper directory)
On computer
$scp something.wav pi@192.168.1.106:/home/pi

View File

@ -0,0 +1,37 @@
#NAME
test-audio/looper0/README.me
#AUTHORS
Ella Pietraroia <ella@ausocean.org>
#Pi Setup:
- 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)
- and build
- edit rc.local to run looper at boot
$sudo nano /etc/rc.local
- paste this in after comments but before 'exit 0': -----------------------------------------------------------
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
exec 1>&2 # send stdout to the same log file
printf "rc.local started" # show start of execution
set -x # tell sh to display commands before execution
PLAYERPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/audio-player/looper0
cd $PLAYERPATH
./looper0 &
-----------------------------------------------------------------------------------------------------------------
$systemctl enable rc-local
$sudo systemctl start rc-local.service
- after starting the service the looping should start straight away
#Useful commands:
$cat /tmp/rc.local.log
$sudo systemctl status rc-local.service
$cat audio.log (in looper directory)
#On computer
$scp something.wav pi@192.168.1.106:/home/pi

View File

@ -1,12 +1,12 @@
/*
NAME
test-audio/looper0/main.go
audio-player/looper0/main.go
AUTHORS
Ella Pietraroia <ella@ausocean.org>
LICENSE
revid is Copyright (C) 2020 the Australian Ocean Lab (AusOcean)
audio player is Copyright (C) 2020 the Australian Ocean Lab (AusOcean)
It is free software: you can redistribute it and/or modify them
under the terms of the GNU General Public License as published by the

View File

@ -1,55 +0,0 @@
/*
NAME
test-audio/README
AUTHORS
Ella Pietraroia <ella@ausocean.org>
LICENSE
revid is Copyright (C) 2017-2020 the Australian Ocean Lab (AusOcean)
It is free software: you can redistribute it and/or modify them
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
It is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
in gpl.txt. If not, see http://www.gnu.org/licenses.
*/
Pi Setup:
pull master
navigate to /go/src/bitbucket.org/ausocean/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)
and build
edit rc.local to run looper at boot
$sudo nano /etc/rc.local
paste this in after comments but before 'exit 0': -----------------------------------------------------------
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
exec 1>&2 # send stdout to the same log file
printf "rc.local started" # show start of execution
set -x # tell sh to display commands before execution
AUDIOPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/audio-player/looper3
cd $AUDIOPATH
./looper3 &
-----------------------------------------------------------------------------------------------------------------
$systemctl enable rc-local
$sudo systemctl start rc-local.service
after starting the service the looping should start straight away
Useful commands:
$cat /tmp/rc.local.log
$sudo systemctl status rc-local.service
$cat audio.log (in looper directory)
On computer
$scp something.wav pi@192.168.1.106:/home/pi

View File

@ -0,0 +1,37 @@
#NAME
test-audio/looper3/README.me
#AUTHORS
Ella Pietraroia <ella@ausocean.org>
#Pi Setup:
- 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)
- and build
- edit rc.local to run looper at boot
$sudo nano /etc/rc.local
- paste this in after comments but before 'exit 0': -----------------------------------------------------------
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
exec 1>&2 # send stdout to the same log file
printf "rc.local started" # show start of execution
set -x # tell sh to display commands before execution
PLAYERPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/audio-player/looper3
cd $PLAYERPATH
./looper3 &
-----------------------------------------------------------------------------------------------------------------
$systemctl enable rc-local
$sudo systemctl start rc-local.service
- after starting the service the looping should start straight away
#Useful commands:
$cat /tmp/rc.local.log
$sudo systemctl status rc-local.service
$cat audio.log (in looper directory)
#On computer
$scp something.wav pi@192.168.1.106:/home/pi

View File

@ -1,12 +1,12 @@
/*
NAME
test-audio/looper3/main.go
audio-player/looper3/main.go
AUTHORS
Ella Pietraroia <ella@ausocean.org>
LICENSE
revid is Copyright (C) 2017-2020 the Australian Ocean Lab (AusOcean)
audio player is Copyright (C) 2017-2020 the Australian Ocean Lab (AusOcean)
It is free software: you can redistribute it and/or modify them
under the terms of the GNU General Public License as published by the