Skip to content

Commit

Permalink
Fixed not being able to apply print FX
Browse files Browse the repository at this point in the history
  ViewMode was lost in a merge conflict
  Fixed naming for win32 builds
  Add stderr to lgpt log in launch shell files
  • Loading branch information
djdiskmachine committed Oct 24, 2024
1 parent ee7af1c commit ffeace7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion projects/resources/BITTBOY/lgpt.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

LD_PRELOAD=./librtmidi.so ./lgpt-bittboy.elf > lgpt.log
LD_PRELOAD=./librtmidi.so ./lgpt-bittboy.elf &> lgpt.log
2 changes: 1 addition & 1 deletion projects/resources/GARLICPLUS/garlicos/LittleGPTracker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
progdir=$(dirname "$0")/lgpt
cd $progdir
HOME=$progdir
LD_LIBRARY_PATH=$PROGDIR:$LD_LIBRARY_PATH ./lgpt-rg35xxplus.elf > ./lgpt.log
LD_LIBRARY_PATH=$PROGDIR:$LD_LIBRARY_PATH ./lgpt-rg35xxplus.elf &> ./lgpt.log
sync
2 changes: 1 addition & 1 deletion projects/resources/MIYOO/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
PROGDIR=`dirname "$0"`
cd $PROGDIR

LD_LIBRARY_PATH=$PROGDIR:$LD_LIBRARY_PATH ./lgpt-miyoo.elf > ./lgpt.log
LD_LIBRARY_PATH=$PROGDIR:$LD_LIBRARY_PATH ./lgpt-miyoo.elf &> ./lgpt.log
20 changes: 8 additions & 12 deletions projects/resources/packaging/lgpt_package.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
#!/bin/bash
cd "$(git rev-parse --show-toplevel)/projects/"
if [[ "$(uname)" == "Darwin" ]]; then #MacOS
PROJECT_NUMBER=$(perl -nle 'print $1 if /PROJECT_NUMBER "([^"]*)"/' ../sources/Application/Model/Project.h)
PROJECT_RELEASE=$(perl -nle 'print $1 if /PROJECT_RELEASE "([^"]*)"/' ../sources/Application/Model/Project.h)
BUILD_COUNT=$(perl -nle 'print $1 if /BUILD_COUNT "([^"]*)"/' ../sources/Application/Model/Project.h)
else
PROJECT_NUMBER=$(grep -oP 'PROJECT_NUMBER "\K[^"]*' ../sources/Application/Model/Project.h)
PROJECT_RELEASE=$(grep -oP 'PROJECT_RELEASE "\K[^"]*' ../sources/Application/Model/Project.h)
BUILD_COUNT=$(grep -oP 'BUILD_COUNT "\K[^"]*' ../sources/Application/Model/Project.h)
fi
PROJECT_NUMBER=$(perl -nle 'print $1 if /PROJECT_NUMBER "([^"]*)"/' ../sources/Application/Model/Project.h)
PROJECT_RELEASE=$(perl -nle 'print $1 if /PROJECT_RELEASE "([^"]*)"/' ../sources/Application/Model/Project.h)
BUILD_COUNT=$(perl -nle 'print $1 if /BUILD_COUNT "([^"]*)"/' ../sources/Application/Model/Project.h)
VERSION="${PROJECT_NUMBER}.${PROJECT_RELEASE}.${BUILD_COUNT}"

collect_resources() { #1PLATFORM #2lgpt.*-exe
Expand All @@ -20,17 +14,19 @@ collect_resources() { #1PLATFORM #2lgpt.*-exe
fi
PACKAGE=LGPT-$1-$VERSION.zip
echo "-=-=Packaging $PACKAGE=-=-"
BINARY=" $(find . -iname $2)"
chmod +x $BINARY
CONTENTS="./resources/$1/*"
CONTENTS+=" ./custom_font.xml"
CONTENTS+=" $(find . -iname $2)"
CONTENTS+=" $BINARY"
if [ "$1" == "PSP" ] ||
[ "$1" == "GARLIC" ] ||
[ "$1" == "RG35XXPLUS" ] ||
[ "$1" == "BITTBOY" ]; then # All files go in the root folder
zip -9 $PACKAGE -j $CONTENTS
elif [ "$1" == "MACOS" ]; then # .app is a folder
zip -9 $PACKAGE -j $CONTENTS
zip -9yr $PACKAGE LittleGPTracker.app/
zip -9 $PACKAGE -j $CONTENTS
zip -9yr $PACKAGE LittleGPTracker.app/
else # all the others go in the bin
mkdir bin ; cp $CONTENTS bin
zip -9 $PACKAGE bin/* && rm -r bin/
Expand Down
2 changes: 1 addition & 1 deletion sources/Application/Model/Project.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#define PROJECT_NUMBER "1"
#define PROJECT_RELEASE "4"
#define BUILD_COUNT "3-bacon4"
#define BUILD_COUNT "3-bacon5"

#define MAX_TAP 3

Expand Down
9 changes: 5 additions & 4 deletions sources/Application/Views/InstrumentView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,11 @@ void InstrumentView::ProcessButtonMask(unsigned short mask,bool pressed) {
// A modifier

if (mask==EPBM_A) {
FourCC varID=((UIIntVarField *)GetFocus())->GetVariableID() ;
if ((varID==SIP_TABLE)||(varID==MIP_TABLE)||(varID==SIP_SAMPLE)) {
viewMode_=VM_NEW ;
} ;
FourCC varID = ((UIIntVarField *)GetFocus())->GetVariableID();
if ((varID == SIP_TABLE) || (varID == MIP_TABLE) ||
(varID == SIP_SAMPLE) || (varID == SIP_PRINTFX)) {
viewMode_ = VM_NEW;
}
} else {

// R Modifier
Expand Down

0 comments on commit ffeace7

Please sign in to comment.