Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ name: Android APK
on:
workflow_dispatch:
push:
paths:
- 'app/**'
- 'build.gradle'
- 'settings.gradle'
branches: [main]
pull_request:
paths:
- 'app/**'
- 'build.gradle'
- 'settings.gradle'
permissions:
contents: read
jobs:
Expand All @@ -22,15 +15,23 @@ jobs:
with:
distribution: temurin
java-version: '17'
- uses: android-actions/setup-android@v3
- run: sdkmanager 'platforms;android-35' 'build-tools;35.0.0'
- name: Check preinstalled Android SDK
run: |
if [ ! -f "$ANDROID_HOME/platforms/android-35/android.jar" ] || [ ! -x "$ANDROID_HOME/build-tools/35.0.0/apksigner" ]; then
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" 'platforms;android-35' 'build-tools;35.0.0'
fi
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.9'
- run: bash tests/test.sh
- run: gradle --no-daemon :app:assembleDebug
- run: |
"$ANDROID_HOME/build-tools/35.0.0/apksigner" verify --verbose app/build/outputs/apk/debug/app-debug.apk
"$ANDROID_HOME/build-tools/35.0.0/aapt" dump permissions app/build/outputs/apk/debug/app-debug.apk | tee permissions.txt
if grep -F 'android.permission.INTERNET' permissions.txt; then exit 1; fi
cp app/build/outputs/apk/debug/app-debug.apk NotenSplit-Offline-0.2.1.apk
- uses: actions/upload-artifact@v4
with:
name: NotenSplit-Offline-APK
path: app/build/outputs/apk/debug/app-debug.apk
name: NotenSplit-Offline-0.2.1-APK
path: NotenSplit-Offline-0.2.1.apk
if-no-files-found: error
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.gradle/
**/build/
local.properties
.idea/
1 change: 1 addition & 0 deletions DESCRIPTION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Offline Android tool for splitting PDF music scores into individual parts, with smart staff detection and high-quality PDF export.
96 changes: 95 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,95 @@
# NotenSplit-Offline
<div align="center">

<img src="logo/logo.svg" width="800" alt="NotenSplit Offline Logo">

# NotenSplit Offline <br>v0.2.1
**PDF scores ➔ individual sheet music parts**<br>
[APK by Manuel Pollhammer 2026](https://www.pollhammer.org)

![Android](https://img.shields.io/badge/Android-5.0%2B-3DDC84?logo=android&logoColor=white)
![Version](https://img.shields.io/badge/version-0.2.1-176c65)
![Offline](https://img.shields.io/badge/Internet%20permission-none-success)
![Cost](https://img.shields.io/badge/cost-free-success)

</div>

---

## 🚀 What is NotenSplit Offline?

**NotenSplit Offline** is a free Android utility designed to separate PDF music scores into individual instrument or vocal parts directly on a smartphone or tablet. Inspired by the workflow of [Partifi](https://partifi.org/), it is an independent Android implementation with entirely local PDF processing, without registration, advertising or an internet permission.

## 📦 Components

* **NotenSplit Offline APK:** Interactive Android editor, PDF import, staff markers, part assignment, local projects and export.
* **StaffDetector.java:** Heuristic staff and whitespace detection, including a two-staff piano mode.
* **PDFBox-Android:** Locally bundled PDF library for vector-based extraction and original-quality output.
* **GitHub Actions:** Automated APK compilation, staff-detection tests, signature verification and internet-permission checks.

## 📝 Usage Modes

1. **Manual separation:** Open a PDF, adjust red markers and assign names to the selected score sections.
2. **Automatic staff detection:** Detect staff boundaries; choose individual staves or paired piano staves in the menu.
3. **Recurring instrumentation:** Assign a repeated sequence of instruments or voices and save reusable presets. Use `all` for shared material or `skip` to omit a section.
4. **Preview and export:** Select a voice, preview the result and export individual A4 PDFs to a local folder.
5. **Project management:** Reopen, rename or delete individual projects; clear the entire local project list after confirmation.

---

## 🛠️ New in v0.2.1: Developer Identity & Repository Integration

* **Developer credit:** APK by Manuel Pollhammer 2026, linked directly to [pollhammer.org](https://www.pollhammer.org).
* **GitHub repository shortcut:** Open the official project repository from the app menu, below Reset Zoom.
* **Offline architecture retained:** Both optional links open the external browser; the app itself still has no internet permission.
* **Project documentation:** README structured in the style of [Office-Morph](https://github.com/pollhammer/office-morph), with an updated project banner, description and installation instructions.

---

## ✨ Key Features

* **Smart Staff Detection:** Finds potential cut positions in the whitespace between staves.
* **Manual Marker Editing:** Add, remove or drag separators to fine-tune the extraction.
* **Zoom:** Enlarge the score up to 350% with horizontal scrolling.
* **Reusable Presets:** Store and reuse typical instrumental or vocal lineups.
* **Original Quality:** Vector-based PDF export preserves source vectors and embedded images where supported.
* **Raster Mode:** Export only visible rendered score sections as an alternative.
* **A4 Layout:** Automatically arrange selected score sections on output pages.
* **Progress Feedback:** Percentage and page/part status during preview, assignment and export.
* **Local Project Storage:** Save work on-device, with explicit confirmation before permanent deletion.
* **No Ads, No Account:** Core functions operate entirely offline.

---

## 📋 Prerequisites & Installation

* Android 5.0 (API 21) or higher.
* A locally accessible PDF score and available storage.
* Download the latest successful **NotenSplit-Offline-0.2.1-APK** artifact from [GitHub Actions](https://github.com/pollhammer/NotenSplit-Offline/actions), extract the ZIP and open the APK. Android may request permission to install from this source.
* This is a debug-signed test build. v0.2.1 uses a separate application ID to protect existing v0.1 and v0.2 projects against accidental data loss; those projects remain in their original apps and are not migrated automatically.

## ⚙️ Build from Source

JDK 17, Android SDK 35 and Gradle 8.9 are required for a local build.

```bash
bash tests/test.sh
gradle --no-daemon :app:assembleDebug
```

The automated workflow checks APK signatures and verifies the absence of `android.permission.INTERNET`.

## ⚠️ Limitations

Staff recognition is heuristic, not optical music recognition. Inspect and adjust markers before exporting. Original-quality PDF export uses clipping: hidden source content may remain embedded. Choose raster mode if only visible content should be retained. The app does not reproduce every Partifi feature, and device-level validation of each update is recommended.

## 🔗 Links

* **Developer:** [www.pollhammer.org](https://www.pollhammer.org)
* **Repository:** [pollhammer/NotenSplit-Offline](https://github.com/pollhammer/NotenSplit-Offline)
* **APK builds:** [GitHub Actions](https://github.com/pollhammer/NotenSplit-Offline/actions)
* **Inspiration:** [Partifi](https://partifi.org/)
* **PDF library:** [PDFBox-Android](https://github.com/TomRoush/PdfBox-Android) (Apache License 2.0)

---

**Developed by Manuel Pollhammer | Release 2026**
10 changes: 10 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins { id 'com.android.application' }
android {
namespace 'at.notensplit.offline'
compileSdk 35
defaultConfig { applicationId 'at.notensplit.offline.v21'; minSdk 21; targetSdk 34; versionCode 3; versionName '0.2.1' }
packaging { resources { excludes += ['META-INF/DEPENDENCIES', 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE', 'META-INF/NOTICE.txt'] } }
compileOptions { sourceCompatibility JavaVersion.VERSION_17; targetCompatibility JavaVersion.VERSION_17 }
}

dependencies { implementation 'com.tom-roush:pdfbox-android:2.0.27.0' }
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:label="NotenSplit 0.2.1" android:icon="@drawable/ic_notensplit" android:theme="@android:style/Theme.Material.Light.NoActionBar" android:allowBackup="false" android:supportsRtl="true">
<activity android:name=".MainActivity" android:exported="true" android:configChanges="orientation|screenSize"><intent-filter><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/></intent-filter></activity>
</application></manifest>
Loading
Loading