YES!
I get it!
(The problem with pure data not working was just that I forget to put a patch name main.pd in the puredata_patches directory )
For making it, I just re-write the start_PureData.sh script.
If anyone is interested, that how I make it:
Create a .sh file this file in /usr/local/pisound/scripts/pisound-btn/ , and name it as you like.
Put this in it:
#!/bin/sh
# pisound-btn daemon for the Pisound button.
# Copyright (C) 2017 Vilniaus Blokas UAB, https://blokas.io/pisound
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2 of the
# License.
#
# This program 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
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
#and Jejeremy is a genious ;-)
. /usr/local/pisound/scripts/common/common.sh
. /usr/local/pisound/scripts/common/start_reaper.sh
start_reaper &
Then create a file name start_reaper.sh in the /usr/local/pisound/scripts/common folder and put this in it:
#!/bin/sh
# pisound-btn daemon for the Pisound button.
# Copyright (C) 2017 Vilniaus Blokas UAB, https://blokas.io/pisound
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2 of the
# License.
#
# This program 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
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
#Pisound rocks!
REAPER_STARTUP_SLEEP=3
. /usr/local/pisound/scripts/common/common.sh
# If there's X server running
if DISPLAY=$(find_display); then
export XAUTHORITY=/home/pi/.Xauthority
export DISPLAY
echo Using display $DISPLAY
unset NO_GUI
else
echo No display found, specifying -nogui
NO_GUI=-nogui
fi
start_reaper()
{
flash_leds 1
log "Killing all Reaper instances!"
killall reaper 2> /dev/null
log "Launching Reaper."
reaper &
RP_PID=$!
log "Reaper started!"
flash_leds 1
sleep 0.3
flash_leds 1
sleep 0.3
flash_leds 1
wait_process $RP_PID
}
Maybe you would have to “chmod +x” the .sh file, I’m not sure cause I made copy paste from puredata script.
And that it!
You can edit the 2 files and change “reaper” by the software you want, it should work too.
I probably make an update for launchig a specific project in the software.
-Thank you very much.
-You’re welcome, that’s what I’m here for!
-No really!
-Please no false modesty