Skip to content

Commit 01e8988

Browse files
committed
Merge branch 'development'
2 parents da70b23 + 3d57044 commit 01e8988

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+661
-351
lines changed
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: Publish latest release on Windows community repository
2+
name: Publish on Windows repository
33

44
on:
55
release:
@@ -11,24 +11,29 @@ jobs:
1111
name: Publish winget package
1212
runs-on: windows-latest
1313
steps:
14-
- name: Submit package to Windows Package Manager Community Repository
14+
- name: Submit package to Windows repository
1515
run: |
1616
# Download WingetCreate
1717
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
18+
1819
# Retrieve the descriptor of Audiveris latest release
1920
$latest = Invoke-RestMethod 'https://api.github.com/repos/Audiveris/audiveris/releases/latest'
2021
$tag_name = $latest.tag_name
2122
echo "=== tag_name is $tag_name"
23+
2224
# Retrieve all Windows installers among the release assets
2325
$installers = $latest.assets | Where-Object -Property name -match '.msi'
2426
echo "=== installers:"
2527
$installers
28+
2629
# Retrieve the download URL of the (first) Windows installer
2730
$installerUrl = $installers | Select -ExpandProperty browser_download_url -First 1
2831
echo "=== installerUrl is $installerUrl"
29-
# Create a folder
30-
New-Item -Path "." -Name "myDocs" -ItemType Directory
31-
# Create the manifest
32-
.\wingetcreate.exe new $installerUrl --output myDocs
33-
dir -Recurse myDocs
3432
33+
# Update the manifest
34+
echo "=== updating manifest..."
35+
.\wingetcreate.exe update audiveris.org.Audiveris -v $latest.tag_name -u $installerUrl -t ${{ secrets.WINGET_PAT }}
36+
echo "=== manifest updated!"
37+
38+
# Display the updated Audiveris information
39+
winget show audiveris.org.Audiveris

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ docs/build
4848
docs/build/*
4949
packaging/build
5050
packaging/build/*
51+
packaging/manifests
52+
packaging/manifests/*
5153
packaging/.gradle/*
5254
private/*
5355
schemas/bin/

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugins {
2222
def app = project(':app')
2323

2424
// Central location for application version
25-
project.version = '5.8.1'
25+
project.version = '5.9.0'
2626
println "version: ${project.version}"
2727

2828
// Central location for the specific versions of tesseract dependencies
@@ -237,7 +237,7 @@ allprojects {
237237
// Heap size (and other stuff) can be modified via a 'jvmLineArgs' on gradle command line
238238
tasks.run {
239239
minHeapSize = '512m'
240-
maxHeapSize = '1g'
240+
maxHeapSize = '8g'
241241

242242
// Retrieve JVM arguments from jvmLineArgs property if any
243243
if (project.hasProperty("jvmLineArgs")) {

app/res/basic-classifier.zip

3.62 KB
Binary file not shown.

app/src/main/java/org/audiveris/omr/CLI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.audiveris.omr.step.OmrStep;
3434
import org.audiveris.omr.step.ProcessingCancellationException;
3535
import org.audiveris.omr.step.RunClass;
36+
import static org.audiveris.omr.ui.action.AdvancedTopics.swapProcessedSheets;
3637
import org.audiveris.omr.util.Dumping;
3738
import org.audiveris.omr.util.FileUtil;
3839
import org.audiveris.omr.util.NaturalSpec;
@@ -823,7 +824,7 @@ protected void processBook (Book book)
823824
}
824825
LogUtil.start(book);
825826

826-
boolean swap = (OMR.gui == null) || isSwap() || BookActions.swapProcessedSheets();
827+
boolean swap = (OMR.gui == null) || isSwap() || swapProcessedSheets();
827828

828829
// Make sure stubs are available
829830
if (book.getStubs().isEmpty()) {

app/src/main/java/org/audiveris/omr/Main.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -316,19 +316,6 @@ private static void processCli (String[] args)
316316
}
317317
}
318318

319-
//--------------------------//
320-
// processSystemsInParallel //
321-
//--------------------------//
322-
/**
323-
* Tell whether we should process systems of a sheet in parallel.
324-
*
325-
* @return true if so
326-
*/
327-
public static boolean processSystemsInParallel ()
328-
{
329-
return constants.processSystemsInParallel.isSet();
330-
}
331-
332319
//---------------//
333320
// runBatchTasks //
334321
//---------------//
@@ -462,10 +449,6 @@ private static class Constants
462449
false,
463450
"Should we process all tasks in parallel when running in batch?");
464451

465-
private final Constant.Boolean processSystemsInParallel = new Constant.Boolean(
466-
false,
467-
"Should we process all systems in parallel in a sheet?");
468-
469452
private final Constant.Integer sheetStepTimeOut = new Constant.Integer(
470453
"Seconds",
471454
120,

app/src/main/java/org/audiveris/omr/classifier/AnnotationsBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ private OmrShape getOmrShape (ArticulationInter inter)
626626
: OmrShape.articTenutoBelow;
627627
case STACCATISSIMO -> above //
628628
? OmrShape.articStaccatissimoAbove
629+
: OmrShape.articStaccatissimoBelow; // Very rare?
630+
case STACCATISSIMO_BELOW -> above //
631+
? OmrShape.articStaccatissimoAbove // Very rare?
629632
: OmrShape.articStaccatissimoBelow;
630633
case MARCATO -> above //
631634
? OmrShape.articMarcatoAbove

app/src/main/java/org/audiveris/omr/classifier/OmrShapeMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static Map<OmrShape, Shape> buildOmrShapeMap ()
8686
map.put(OmrShape.articMarcatoBelow, Shape.MARCATO_BELOW);
8787

8888
map.put(OmrShape.articStaccatissimoAbove, Shape.STACCATISSIMO);
89-
map.put(OmrShape.articStaccatissimoBelow, Shape.STACCATISSIMO);
89+
map.put(OmrShape.articStaccatissimoBelow, Shape.STACCATISSIMO_BELOW);
9090

9191
map.put(OmrShape.articStaccatoAbove, Shape.STACCATO);
9292
map.put(OmrShape.articStaccatoBelow, Shape.STACCATO);

app/src/main/java/org/audiveris/omr/glyph/Shape.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public enum Shape
235235
ACCENT,
236236
TENUTO,
237237
STACCATISSIMO,
238+
STACCATISSIMO_BELOW,
238239
MARCATO,
239240
MARCATO_BELOW,
240241
ARPEGGIATO,
@@ -885,7 +886,8 @@ public boolean isAbove ()
885886
public boolean isBelow ()
886887
{
887888
return switch (this) {
888-
case FERMATA_BELOW, MARCATO_BELOW, PEDAL_MARK, PEDAL_UP_MARK, SLUR_BELOW -> true;
889+
case FERMATA_BELOW, MARCATO_BELOW, PEDAL_MARK, PEDAL_UP_MARK, //
890+
STACCATISSIMO_BELOW, SLUR_BELOW -> true;
889891
default -> false;
890892
};
891893
}

app/src/main/java/org/audiveris/omr/glyph/ShapeSet.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,14 @@ public class ShapeSet
385385
public static final ShapeSet Articulations = new ShapeSet(
386386
ACCENT,
387387
Colors.SCORE_MODIFIERS,
388-
shapesOf(ACCENT, TENUTO, STACCATO, STACCATISSIMO, MARCATO, MARCATO_BELOW));
388+
shapesOf(
389+
ACCENT,
390+
TENUTO,
391+
STACCATO,
392+
STACCATISSIMO,
393+
STACCATISSIMO_BELOW,
394+
MARCATO,
395+
MARCATO_BELOW));
389396

390397
public static final ShapeSet Attributes = new ShapeSet(
391398
PEDAL_MARK,

0 commit comments

Comments
 (0)