Skip to content

Commit

Permalink
update installer to grab shim.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
James Bradbury committed Sep 2, 2022
1 parent 172ca8d commit 4d0003c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 12 additions & 1 deletion install_reacoma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ REAIMGUI_VERSIONED_URL="https://github.com/cfillion/reaimgui/releases/download/v
# The extension of the shared library will be determined by the DISTRO
if [ $DISTRO == "Darwin" ]
then
REATEAM="$HOME/Library/Application Support/REAPER/Scripts/ReaTeam Extensions"
LUA_LOCATION="$REATEAM/API"
REACOMA_LOCATION="$HOME/Library/Application Support/REAPER/Scripts/ReaCoMa-2.0"
DYLIB_OUTPUT="$HOME/Library/Application Support/REAPER/UserPlugins"
EXT=".dylib"
else
REATEAM="$HOME/.config/REAPER/Scripts/ReaTeam Extensions"
LUA_LOCATION="$REATEAM/API"
REACOMA_LOCATION="$HOME/.config/REAPER/Scripts/ReaCoMa-2.0"
DYLIB_OUTPUT="$HOME/.config/REAPER/UserPlugins"
EXT=".so"
fi

echo "$LUA_LOCATION"

# Download ReaCoMa to the UserScripts place
if [ -d "$REACOMA_LOCATION" ]
then
Expand All @@ -29,7 +35,7 @@ else
echo "1. ReaCoMa downloaded to '$REACOMA_LOCATION'"
fi


# Download ImGui
if [ "$ARCH" == "arm64" ]
then
echo "2. ARM64 Architecture Identified for ImGui"
Expand All @@ -45,6 +51,11 @@ fi
CONCAT_OUTPUT="$DYLIB_OUTPUT/$FILE"
curl -s -L "$REAIMGUI_VERSIONED_URL/$FILE" --output "$DYLIB_OUTPUT/$FILE" >> /dev/null

# imgui.lua file
mkdir -p "$REATEAM" && echo "Creating ReaTeam folder"
mkdir -p "$LUA_LOCATION" && echo "Creating API folder"
curl -s -L "$REAIMGUI_VERSIONED_URL/imgui.lua" --output "$LUA_LOCATION/imgui.lua"

# Get FluCoMa CLI Tools
if [ "$DISTRO" == "Darwin" ]
then
Expand Down
2 changes: 0 additions & 2 deletions lib/slicing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ slicing.process = function(item_index, data, gate_based_slicer)
slice_points[i] = (slice_points[i] + data.take_ofs_samples[item_index]) / data.playrate[item_index]
else
slice_points[i] = (slice_points[i] - data.take_ofs_samples[item_index]) / data.playrate[item_index]
-- reaper.ShowConsoleMsg(slice_points[i])
-- reaper.ShowConsoleMsg('\n')
end
-- and convert to seconds for REAPER
slice_points[i] = utils.sampstos(
Expand Down

0 comments on commit 4d0003c

Please sign in to comment.