├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── layout │ │ │ │ ├── content_main.xml │ │ │ │ ├── list_item.xml │ │ │ │ └── activity_main.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── drawable │ │ │ │ └── ic_launcher_background.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── munkurious │ │ │ │ └── sheetplayer │ │ │ │ ├── ListData.kt │ │ │ │ ├── RecyclerViewAdapter.kt │ │ │ │ ├── FilePathFromUri.java │ │ │ │ └── MainActivity.kt │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── munkurious │ │ │ └── sheetplayer │ │ │ └── ExampleUnitTest.kt │ └── androidTest │ │ └── java │ │ └── com │ │ └── munkurious │ │ └── sheetplayer │ │ └── ExampleInstrumentedTest.kt ├── release │ └── output.json ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── keystore.jks ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── sheetplayer-server ├── sheetplayer-server │ ├── func.js.save │ ├── func.js │ ├── package.json │ ├── app.js │ ├── yes │ ├── routes.js │ └── package-lock.json └── audiveris │ └── test04.py ├── .idea ├── runConfigurations.xml └── gradle.xml ├── gradle.properties ├── README.md ├── gradlew.bat ├── .gitignore └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':scanlibrary' 2 | -------------------------------------------------------------------------------- /keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/keystore.jks -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bstncartwright/SheetPlayer-ocr/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/release/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1},"path":"app-release.apk","properties":{"packageId":"com.munkurious.sheetplayer","split":"","minSdkVersion":"23"}}] -------------------------------------------------------------------------------- /app/src/main/java/com/munkurious/sheetplayer/ListData.kt: -------------------------------------------------------------------------------- 1 | package com.munkurious.sheetplayer 2 | 3 | import android.graphics.Bitmap 4 | 5 | /** 6 | * Created by Boston on 10/23/2017. 7 | */ 8 | data class MyData(var text:String, var image:Bitmap) -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SheetPlayer 3 | Settings 4 | Choose from Files 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 23 13:46:01 EDT 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/test/java/com/munkurious/sheetplayer/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.munkurious.sheetplayer 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest 13 | { 14 | @Test 15 | fun addition_isCorrect() 16 | { 17 | assertEquals(4, 2 + 2) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /sheetplayer-server/sheetplayer-server/func.js.save: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | 3 | 4 | async function sendTransfer(file) { 5 | const util = require('util'); 6 | 7 | 8 | const { stdout, stderr } = await exec("/home/kd0euh/audiveris/audiveris/test04.py" + " " + file + " " + dirname + "/outs/"); 9 | const exec = util.promisify(require('child_process').exec); 10 | 11 | 12 | console.log('stdout:', stdout); 13 | var dirname = "C:/Users/Boston/Documents/sheetplayer-server/"; 14 | 15 | console.log('stderr:', stderr); 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /sheetplayer-server/sheetplayer-server/func.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | 3 | const util = require('util'); 4 | 5 | const exec = util.promisify(require('child_process').exec); 6 | 7 | var dirname = "C:/Users/Boston/Documents/sheetplayer-server/"; 8 | 9 | async function sendTransfer(file) { 10 | 11 | 12 | const { stdout, stderr } = await exec("/home/kd0euh/audiveris/audiveris/test04.py" + " " + file + " " + dirname + "/outs/"); 13 | 14 | 15 | console.log('stdout:', stdout); 16 | 17 | 18 | console.log('stderr:', stderr); 19 | 20 | 21 | } 22 | -------------------------------------------------------------------------------- /sheetplayer-server/audiveris/test04.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import os 3 | import subprocess 4 | import music21 5 | 6 | fpath = sys.argv[1] 7 | spath = sys.argv[2] 8 | 9 | returncode = subprocess.call(['gradle run -p /home/kd0euh/audiveris/audiveris -PcmdLineArgs=-batch,-export,-output,/home/kd0euh/audiveris/audiveris/output/,--,' + fpath], shell=True) 10 | 11 | base = os.path.basename(fpath) 12 | das = os.path.splitext(base)[0] 13 | 14 | c = music21.converter.parse('/home/kd0euh/audiveris/audiveris/output/' + das + '/' + das + '.mxl') 15 | 16 | c.write('midi', spath + '.mid') 17 | 18 | print('DONE') 19 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /sheetplayer-server/sheetplayer-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sheetplayer-server", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "app.js", 6 | "dependencies": { 7 | "body-parser": "^1.18.2", 8 | "connect": "^3.6.5", 9 | "connect-multiparty": "^2.1.0", 10 | "cookie-parser": "^1.4.3", 11 | "express": "^4.16.2", 12 | "morgan": "^1.9.0", 13 | "python-shell": "^0.4.0", 14 | "system": "^2.0.1" 15 | }, 16 | "devDependencies": {}, 17 | "scripts": { 18 | "test": "echo \"Error: no test specified\" && exit 1" 19 | }, 20 | "author": "", 21 | "license": "ISC" 22 | } 23 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/munkurious/sheetplayer/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.munkurious.sheetplayer 2 | 3 | import android.support.test.InstrumentationRegistry 4 | import android.support.test.runner.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest 18 | { 19 | @Test 20 | fun useAppContext() 21 | { 22 | // Context of the app under test. 23 | val appContext = InstrumentationRegistry.getTargetContext() 24 | assertEquals("com.munkurious.sheetplayer", appContext.packageName) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |