# HG changeset patch # User Chris Cannam # Date 1570437371 -3600 # Node ID 175ece418988505e0fe63a7cd3d7d4364238e5fb # Parent f670b7653f8eae437fb391aedb100c7c10b46ffa# Parent 1e77e4ee27f57a23547cc5b141d36b5169a02582 Merge from branch time-frequency-boxes diff -r 1e77e4ee27f5 -r 175ece418988 CHANGELOG --- a/CHANGELOG Fri Oct 04 16:05:08 2019 +0100 +++ b/CHANGELOG Mon Oct 07 09:36:11 2019 +0100 @@ -1,12 +1,13 @@ -Changes in Sonic Visualiser v4.0 since the previous release 3.3: +Changes in Sonic Visualiser v4.0 (Oct 2019) since the previous release 3.3: - - Add Time-Frequency Box annotation layer type. Because this - introduces a new layer type into the session file format, the major - version number has been bumped to v4.0. (Sessions saved from v4.0 - can be opened in earlier versions of Sonic Visualiser, but any - Time-Frequency Box layers will not be loaded.) - + - Add Box annotation layer type, typically used for time-frequency + boxes to be annotated over a spectrogram. Because this introduces a + new layer type into the session file format, the major version + number has been bumped to v4.0. Sessions saved from v4.0 can be + opened in earlier versions of Sonic Visualiser, but any Box layers + will not be loaded. + Changes in Sonic Visualiser v3.3 (May 2019) since the previous release 3.2.1: @@ -349,7 +350,7 @@ - Update code to build against Qt5 -Changes in Sonic Visualiser 2.0.1 since the previous release 2.0: +Changes in Sonic Visualiser 2.0.1 (Mar 2013) since the previous release 2.0: - Fix incorrect samplerate in reading m4a files on OS/X diff -r 1e77e4ee27f5 -r 175ece418988 main/MainWindow.cpp --- a/main/MainWindow.cpp Fri Oct 04 16:05:08 2019 +0100 +++ b/main/MainWindow.cpp Mon Oct 07 09:36:11 2019 +0100 @@ -5075,13 +5075,24 @@ layout->addWidget(bb, row++, 0, 1, 3); connect(bb, SIGNAL(accepted()), d, SLOT(accept())); + // Remove spurious linefeeds from DOS line endings text.replace('\r', ""); + + // Un-wrap indented paragraphs (assume they are always preceded by + // an empty line, so don't get merged into prior para) text.replace(QRegExp("(.)\n +(.)"), "\\1 \\2"); + + // Rest of para following a " - " at start becomes bulleted entry text.replace(QRegExp("\n - ([^\n]+)"), "\n
  • \\1
  • "); + + // Line-ending ":" introduces the bulleted list text.replace(QRegExp(": *\n"), ":\n\n\n"); + + // Text leading up to that line-ending ":" becomes bold heading text.replace(QRegExp("\n(\\w[^:\n]+:)"), "\n

    \\1

    "); -// text.replace(QRegExp("
  • ([^,.\n]+)([,.] +\\w)"), "
  • \\1\\2"); textEdit->setHtml(text); textEdit->setReadOnly(true); diff -r 1e77e4ee27f5 -r 175ece418988 repoint-lock.json --- a/repoint-lock.json Fri Oct 04 16:05:08 2019 +0100 +++ b/repoint-lock.json Mon Oct 07 09:36:11 2019 +0100 @@ -7,7 +7,7 @@ "pin": "13bd41bd8a17" }, "svgui": { - "pin": "0f1601d870db" + "pin": "88fcbc4d93dd" }, "svapp": { "pin": "8e9702c0b9c7" diff -r 1e77e4ee27f5 -r 175ece418988 test/all-3.3.sv Binary file test/all-3.3.sv has changed diff -r 1e77e4ee27f5 -r 175ece418988 test/all.sv Binary file test/all.sv has changed