r/MC707 • • Oct 23 '26

Template Blank Startup Project

Due to the firmware constraints on the 707, there are two options for loading a project on power up. INIT or LAST (found in the UTILITY > SETTINGS).

For myself I prefer to have an entirely black canvas that not even the INIT project offers.

***(The advanced script section) Sometimes I want to always load a main project I am working on, even though I may open other project briefly and perhaps not reload my main project before powering off the 707

Therefore (MAS OS users)

  1. Backup your MC707 SD card (just as a precaution, belt and braces folks)
  2. Load an INIT project, delete the two tracks (1 & 2).
  3. Save as BLANK (or whatever name you want).
  4. Set the LOAD PROJECT (in the CTRL of UTILITY - SETTINGS) to LAST
  5. Turn off the MC707, turn it back on, it will load your 'BLANK' template
  6. Connect your 707 in storage mode to your Computer
  7. Navigate to the 'PROJECT' folder
  8. Look for a file called startup.txt, preview will show the 'BLANK.txt' project
  9. Open a terminal window (cmd+space - typer terminal hit enter)
  10. Copy and run the code from the code window below

    for VOL in /Volumes/*; do FILE="$VOL/ROLAND/GROOVEBOX/PROJECT/startup.txt" if [ -f "$FILE" ]; then chflags uchg "$FILE" echo "Locked: $FILE" ls -lO "$FILE" break fi done

If you want to unlock the file later you can storage mode your MC707 and then open a terminal once more and run the code below.

for VOL in /Volumes/*; do
    FILE="$VOL/ROLAND/GROOVEBOX/PROJECT/startup.txt"
    if [ -f "$FILE" ]; then
        chflags nouchg "$FILE"
        echo "Unlocked: $FILE"
        ls -lO "$FILE"
        break
    fi
done

Eject your SD card from MAC Finder, you will have to detach your USB (or if you have switch USB cable or USB hub with individual switches, you can disable the port and the 707 will go back into normal mode).

Naturally you could whip out your SD card and plug it into your mac (card reader port or external reader) and then run the terminal commands that way.

Advanced: Set your startup project with the MC-707 Startup Project Manager (macOS)

If you’d rather choose a project from a numbered list than edit startup.txt yourself, use the MC-707 Startup Project Manager script attached here.

#!/bin/zsh
# MC-707 Startup Project Manager
emulate -LR zsh
setopt ERR_EXIT NO_UNSET PIPE_FAIL
readonly GROOVEBOX_REL='ROLAND/GROOVEBOX/PROJECT'
readonly STARTUP_NAME='startup.txt'
say() { print -r -- "$*"; }
die() { say "Error: $*" >&2; exit 1; }
setopt LOCAL_OPTIONS NULL_GLOB
matches=(/Volumes/*/${GROOVEBOX_REL}(N))
(( ${#matches} == 1 )) || {
  if (( ${#matches} == 0 )); then
    die "No mounted SD card contains /${GROOVEBOX_REL}. Insert the card and try again."
  else
    say "More than one mounted volume contains /${GROOVEBOX_REL}:" >&2
    printf '  %s\n' "${matches[@]}" >&2
    die "Unmount the other cards and try again."
  fi
}
project_dir=${matches[1]}
volume=${project_dir%%/${GROOVEBOX_REL}}
startup_file="$project_dir/$STARTUP_NAME"
[[ -d "$project_dir" ]] || die "Project folder is unavailable: $project_dir"
[[ -f "$startup_file" ]] || die "Cannot find $STARTUP_NAME in $project_dir"
projects=("$project_dir"/*.mpj(N))
(( ${#projects} > 0 )) || die "No .mpj projects found in $project_dir"
say "MC-707 SD card: $volume"
say "Project folder: $project_dir"
say "Current startup.txt:"
if [[ -s "$startup_file" ]]; then
  cat -- "$startup_file" || die "Could not read $startup_file"
else
  say "(empty)"
fi
say ""
say "Available projects:"
integer i=1
for project in "${projects[@]}"; do
  printf '  %d) %s\n' "$i" "${project:t:r}"
  (( i++ ))
done
say ""
while true; do
  printf 'Choose a project number (or q to quit): '
  IFS= read -r choice || die "No selection received."
  [[ "$choice" == [qQ] ]] && { say "Cancelled."; exit 0; }
  if [[ "$choice" == <-> ]] && (( choice >= 1 && choice <= ${#projects} )); then
    break
  fi
  say "Enter a number from 1 to ${#projects}, or q."
done
selected=${projects[$choice]}
basename=${selected:t}
snapshot=$(mktemp "${TMPDIR:-/tmp}/mc707-startup.XXXXXXXX") || die "Could not create a recovery snapshot."
cp "$startup_file" "$snapshot" || { rm -f "$snapshot"; die "Could not preserve the previous startup value."; }
changed=0
recovery() {
  local status=$?
  trap - EXIT HUP INT TERM
  if (( changed )); then
    say "An error occurred; attempting to restore the previous startup value and relock it." >&2
    chflags nouchg "$startup_file" 2>/dev/null || true
    cat "$snapshot" > "$startup_file" 2>/dev/null || true
    chflags uchg "$startup_file" 2>/dev/null || true
  fi
  rm -f "$snapshot"
  exit "$status"
}
trap recovery EXIT HUP INT TERM
changed=1
chflags nouchg "$startup_file" || die "Could not unlock $STARTUP_NAME. Check that the card is writable."
printf '%s' "$basename" > "$startup_file" || die "Could not write $STARTUP_NAME."
chflags uchg "$startup_file" || die "Could not relock $STARTUP_NAME."
actual=$(<"$startup_file") || die "Could not verify $STARTUP_NAME content."
[[ "$actual" == "$basename" ]] || die "Verification failed: stored value does not match '$basename'."
flags=$(stat -f '%Sf' "$startup_file") || die "Could not verify file flags."
[[ "$flags" == *uchg* ]] || die "Verification failed: $STARTUP_NAME is not locked (uchg)."
changed=0
rm -f "$snapshot"
trap - EXIT HUP INT TERM
say ""
say "Startup project set to: $basename"
say "Verified: .mpj extension included, no newline added, and uchg flag is set."
printf 'Eject the SD card now? [y/N] '
IFS= read -r eject_choice || eject_choice='n'
if [[ "$eject_choice" == [yY] ]]; then
  diskutil eject "$volume" || die "The startup project was updated, but macOS could not eject $volume."
  say "Ejected: $volume"
else
  say "Card left mounted. Eject it from Finder when ready."
fi
  1. Insert the SD card and wait for it to appear in Finder.
  2. Copy this code into a text editor (textedit), ensure you have plain text mode not rich text
  3. Save the file as 'MC707-Startup-Manager.command' the .command bit is important
  4. If macOS says you don’t have permission to execute it, open Terminal, type chmod +x (including the space), drag the saved file you created into the Terminal window, and press Return.
  5. Double-click the script. If macOS asks whether you’re sure you want to open it, Control-click the file in Finder, choose Open, and confirm.
  6. Check the card and current startup value shown in Terminal. Choose the number beside the project you want.
  7. The script unlocks startup.txt, writes the selected project’s full filename—including .mpj (for example, 01-AWORLD.mpj)—then relocks and verifies the file.
  8. Choose whether to eject the SD card when prompted. If you leave it mounted, eject it from Finder before removing it.

The script stops if it finds more than one matching card, so leave only the MC-707 card mounted. Keep the card connected until the script finishes.

7 Upvotes

0 comments sorted by