Skip to content

Commit

Permalink
fix for rtmidi issues
Browse files Browse the repository at this point in the history
added a workaround for odd rtmidi behavior
  • Loading branch information
t9999clint committed Jul 7, 2019
1 parent 1431f33 commit b126dbc
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions scripts/wavepi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ StopSynth () {
then
pkill -P $RUNNING_PID
fi
## UGLY HACK for testing ###
killall mt32d
killall fluidsynth
## UGLY HACK for testing (don't think it's needed anymore) ###
#killall mt32d
#killall fluidsynth
## END OF UGLY HACK ##
SaveStatusToFile -1 "...LOADING PLEASE WAIT..." -1
sleep 2
Expand Down Expand Up @@ -83,7 +83,7 @@ StartSynth () {
then
echo "This synth is already running, doing nothing"

else
else
## stopping current running config
StopSynth

Expand All @@ -107,18 +107,20 @@ StartSynth () {
SaveStatusToFile -1 "ERROR, FAILED TO START" -1

## kill any potentialy malfuntioning processes...
pkill -P $SYNTH_PID &
## UGLY HACK, FIX LATER, FOR TESTING ONLY ##
pkill -P $SYNTH_PID
## UGLY HACK, FIX LATER, FOR TESTING ONLY (probably smart to keep for now)##
killall fluidsynth &
killall mt32d &
## END OF UGLY HACK ##
sleep 2
else
## join synth to MIDI loopback device, then save status
## echo "success??"
aconnect 14:0 $MIDI_NUMBER:0 &
## UGLY HACK, TO FIX MIDI_NUMBER ISSUE##
aconnect 14:0 $MIDI_NUMBER:0
## UGLY HACK, UNTIL I FIX MIDI_NUMBER ISSUE##
aconnect 14:0 128:0 &
aconnect 14:0 129:0 &
aconnect 14:0 130:0 &
## END OF UGLY HACK##
SaveStatusToFile "$SYNTH_PID" "$SYNTH_NAME" "$1"
fi
Expand Down

0 comments on commit b126dbc

Please sign in to comment.