Skip to content

Commit 00f737e

Browse files
authored
Merge pull request #2684 from sonic-pi-net/v3.3.1-dev
V3.3.1 dev
2 parents b1c717f + 1c3777c commit 00f737e

Some content is hidden

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

52 files changed

+173
-5262
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# History
2+
* [v3.3.1 'Beamer'](#v3.3.1), 1st Feb, 2021
23
* [v3.3 'Beam'](#v3.3), 28th Jan, 2021
34
* [v3.2.2 'Tau3'](#v3.2.2), 5th April, 2020
45
* [v3.2.1 'Take Tau'](#v3.2.1), 3rd April, 2020
@@ -22,6 +23,22 @@
2223
* [v2.0.1](#v2.0.1), 9th Sept, 2014
2324
* [v2.0 'Phoenix'](#v2.0), 2nd Sept, 2014
2425

26+
<a name="v3.3.1"></a>
27+
28+
## Version 3.3.1 - 'Beamer'
29+
1st Feb, 2021
30+
[(view commits)](https://github.com/sonic-pi-net/sonic-pi/commits/v3.3.1):
31+
32+
This is a compatibility release addressing two issues with macOS Big Sur:
33+
34+
1. Correct language translations now used based on user's current locale
35+
2. The language server is no longer killed by macOS Gatekeeper when a
36+
sample's onset times are queried.
37+
38+
This release also includes minor translation updates.
39+
40+
41+
2542
<a name="v3.3"></a>
2643

2744
## Version 3.3.0 - 'Beam'

CONTRIBUTORS.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -224,19 +224,18 @@ In addition to the Sonic Pi Core Team, we would like to extend our
224224
thanks to the following developers who have donated their time and
225225
effort to help grow and improve the Sonic Pi code base:
226226

227-
228-
* [Sam Aaron](https://github.com/samaaron/sonic-pi/commits?author=samaaron) (5546)
229-
* [Ethan Crawford](https://github.com/samaaron/sonic-pi/commits?author=ethancrawford) (259)
227+
* [Sam Aaron](https://github.com/samaaron/sonic-pi/commits?author=samaaron) (5565)
228+
* [Ethan Crawford](https://github.com/samaaron/sonic-pi/commits?author=ethancrawford) (262)
230229
* [Joseph Wilk](https://github.com/samaaron/sonic-pi/commits?author=josephwilk) (160)
231230
* [Hanno Zulla](https://github.com/samaaron/sonic-pi/commits?author=hzulla) (127)
232231
* [Jeremy Weatherford](https://github.com/samaaron/sonic-pi/commits?author=jweather) (127)
233232
* [Xavier Riley](https://github.com/samaaron/sonic-pi/commits?author=xavriley) (106)
234233
* [Adrian Cheater](https://github.com/samaaron/sonic-pi/commits?author=factoid) (74)
235-
* [Robin Newman](https://github.com/samaaron/sonic-pi/commits?author=rbnpi) (64)
234+
* [Robin Newman](https://github.com/samaaron/sonic-pi/commits?author=rbnpi) (68)
236235
* [Emlyn Corrin](https://github.com/samaaron/sonic-pi/commits?author=emlyn) (62)
237236
* [SunderB](https://github.com/samaaron/sonic-pi/commits?author=SunderB) (56)
238237
* [Martin Keegan](https://github.com/samaaron/sonic-pi/commits?author=mk270) (48)
239-
* [Chris Maughan](https://github.com/samaaron/sonic-pi/commits?author=cmaughan) (44)
238+
* [Chris Maughan](https://github.com/samaaron/sonic-pi/commits?author=cmaughan) (46)
240239
* [Luis Lloret](https://github.com/samaaron/sonic-pi/commits?author=llloret) (39)
241240
* [Nicolas Dermine](https://github.com/samaaron/sonic-pi/commits?author=nicoder) (37)
242241
* [Nikolaus Gradwohl](https://github.com/samaaron/sonic-pi/commits?author=ngradwohl) (30)
@@ -379,8 +378,8 @@ The following volunteers have generously helped to translate Sonic Pi into addit
379378
* Hanno Zulla (119)
380379
* Sam Aaron (87)
381380
* Nico Staelens (83)
382-
* Nicolas Dermine (80)
383-
* Olivier Humbert (50)
381+
* Nicolas Dermine (81)
382+
* Olivier Humbert (51)
384383
* Cindy Dallaire (48)
385384
* Pau Monfort (39)
386385
* Olympia Brikis (37)
@@ -392,22 +391,22 @@ The following volunteers have generously helped to translate Sonic Pi into addit
392391
* Ricardo Pozo (23)
393392
* Yann Pavlenko (22)
394393
* Giovanni Mori (21)
394+
* Emlyn Corrin (18)
395395
* Ruben Tobalina (18)
396-
* Emlyn Corrin (16)
396+
* Nicolas Le Bellier (15)
397397
* Wolfgang Werner (14)
398398
* Allan Nordhøy (13)
399399
* G. Martin Butz (12)
400-
* Nicolas Le Bellier (12)
401400
* Álvaro Cáceres Muñoz (12)
402401
* Hong Lees (11)
403402
* Ole Friis Østergaard (11)
404403
* Nicolas Limage (10)
405404
* Elena Ogaderova (9)
405+
* Kristjan Räts (9)
406406
* Oto Popis (9)
407407
* Tiago Morais Morgado (9)
408408
* Yaron Shahrabani (9)
409409
* Daniele Paradiso (8)
410-
* Kristjan Räts (8)
411410
* Ole Erik Yrvin (8)
412411
* Rekc@h (8)
413412
* Yang Wanjun (8)
@@ -446,6 +445,7 @@ The following volunteers have generously helped to translate Sonic Pi into addit
446445
* Nur Sodik (5)
447446
* Sebastian Stahn (5)
448447
* Suleyman Poyraz (5)
448+
* Alex Esc (4)
449449
* André Klöpfel (4)
450450
* ArtyomIsFlash (4)
451451
* Dahlia Sager (4)
@@ -582,7 +582,6 @@ The following volunteers have generously helped to translate Sonic Pi into addit
582582
* Ai Doan (1)
583583
* Alejandro Sánchez Medina (1)
584584
* Alessandro Kiefer (1)
585-
* Alex Esc (1)
586585
* Anderson Freitas B. da Silva (1)
587586
* Andras Nemeth (1)
588587
* Andrey Raspopov (1)
@@ -599,6 +598,7 @@ The following volunteers have generously helped to translate Sonic Pi into addit
599598
* Bruno Arakaki (1)
600599
* Burak Tufekci (1)
601600
* Carlos David Perales Cejudo (1)
601+
* Cattice (1)
602602
* Cedric Frossard (1)
603603
* Cem Kaan Kösali (1)
604604
* Cem Olcay (1)

app/external/aubio/CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.12)
22

33
project(aubio-5)
44
set(SOURCE_ROOT ${CMAKE_CURRENT_LIST_DIR}/src)
5+
set(EXAMPLES_ROOT ${CMAKE_CURRENT_LIST_DIR}/examples)
56

67
set(SOURCES
78
${SOURCE_ROOT}/exports.def
@@ -122,11 +123,23 @@ set(SOURCES
122123
${SOURCE_ROOT}/utils/windll.c
123124
)
124125

125-
add_library(${PROJECT_NAME} SHARED ${SOURCES} ${RESOURCES}) # Win32 ignored on non-windows
126+
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${RESOURCES}) # Win32 ignored on non-windows
126127
target_include_directories(${PROJECT_NAME}
127128
PRIVATE
128129
src
129130
${LIBSNDFILE_INCLUDE_DIR}
131+
)
132+
133+
add_executable(aubio_onset
134+
${EXAMPLES_ROOT}/aubioonset.c
135+
${EXAMPLES_ROOT}/utils.c)
136+
137+
target_link_libraries(aubio_onset PRIVATE ${PROJECT_NAME})
138+
139+
target_include_directories(aubio_onset
140+
PRIVATE
141+
src
142+
${LIBSNDFILE_INCLUDE_DIR}
130143
)
131144

132145
# 'lib' is appended to the library name automatically on most non-Windows platforms
@@ -206,6 +219,7 @@ target_compile_definitions(${PROJECT_NAME}
206219
-DHAVE_SWRESAMPLE
207220
-DHAVE_MEMCPY_HACKS
208221
-DHAVE_SNDFILE
222+
-DHAVE_CONFIG
209223
#-DHAVE_ACCELERATE
210224
#-DHAVE_INTEL_IPP (needs intel lib)
211225
#-DHAVE_SAMPLERATE (needs extra lib in path)

app/external/aubio/examples/config.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
#define HAVE_STDLIB_H 1
4+
#define HAVE_STDIO_H 1
5+
#define HAVE_STRING_H 1
6+
#define HAVE_MATH_H 1
7+
#define HAVE_ERRNO_H 1
8+
#define HAVE_LIMITS_H 1
9+
#define HAVE_STDARG_H 1
10+
#define HAVE_MEMCPY_HACKS 1
11+
#define HAVE_C99_VARARGS_MACROS 1
12+
13+
#ifdef WIN32
14+
#define HAVE_WIN_HACKS 1
15+
#else
16+
#define HAVE_UNISTD_H 1
17+
#endif

app/external/aubio/examples/utils.c

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,22 @@ int usejack = 0;
3838
char_t *sink_uri = NULL;
3939
char_t *source_uri = NULL;
4040
// general stuff
41+
42+
// Use defaults as found in the original aubio Ruby gem
43+
// to match existing behaviour:
44+
// [:window_size] 1024
45+
// [:hop_size] 512
46+
// [:onset_threshold] 0.3
47+
// [:minioi_ms] 12.0 (ms)
48+
49+
4150
uint_t samplerate = 0;
42-
uint_t buffer_size = 512;
43-
uint_t hop_size = 256;
51+
uint_t buffer_size = 1024;
52+
uint_t hop_size = 512;
4453
// onset stuff
4554
char_t * onset_method = "default";
46-
smpl_t onset_threshold = 0.0; // will be set if != 0.
47-
smpl_t onset_minioi = 0.0; // will be set if != 0.
55+
smpl_t onset_threshold = 0.3; // will be set if != 0.
56+
smpl_t onset_minioi = 0.012; // will be set if != 0.
4857
// pitch stuff
4958
char_t * pitch_unit = "default";
5059
char_t * pitch_method = "default";

app/external/linux_build_externals.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ cmake -DERLANG_INCLUDE_PATH=${ERLANG_INCLUDE_PATH} -G "Unix Makefiles" ..
1212

1313
echo "Building sp_midi..."
1414
cmake --build . --target sp_midi
15-
16-
if [ "$1" = "--build-aubio" ]; then
17-
echo "Building aubio..."
18-
cmake --build . --target aubio
19-
fi
15+
cmake --build . --target aubio
2016

2117
cd "${SCRIPT_DIR}"

app/external/mac_build_externals.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ cmake -G "Unix Makefiles" -D ERLANG_INCLUDE_PATH="${SCRIPT_DIR}/../../prebuilt/m
1111

1212
echo "Building sp_midi..."
1313
cmake --build . --target sp_midi
14-
15-
16-
if [ "$1" = "--build-aubio" ]; then
17-
echo "Building aubio..."
18-
cmake --build . --target aubio
19-
fi
14+
echo "Building aubio onset..."
15+
cmake --build . --target aubio
2016

2117
cd "${SCRIPT_DIR}"

app/gui/qt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ message(STATUS " CMakeLists: Sonic Pi")
55
project("Sonic Pi"
66
LANGUAGES CXX C
77
DESCRIPTION "A code-based music creation and performance tool"
8-
VERSION 3.3.0
8+
VERSION 3.3.1
99
HOMEPAGE_URL "https://sonic-pi.net"
1010
)
1111

app/gui/qt/html/doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
code_as <span class="highlight">:art</span></pre>
1616
</p>
1717

18-
<p class="version">v3.3.0</p>
18+
<p class="version">v3.3.1</p>
1919

2020
</center>
2121

app/gui/qt/html/info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929

3030
<br/>
3131

32-
<p class="version">v3.3.0</p>
32+
<p class="version">v3.3.1</p>
3333
</center>
3434
</body>

app/gui/qt/images/splash.png

23 Bytes
Loading

app/gui/qt/images/splash2x.png

-105 Bytes
Loading

app/gui/qt/images/[email protected]

-105 Bytes
Loading

app/gui/qt/lang/sonic-pi_es.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ Lo sentimos, un error crítico ha ocurrido durante el inicio</translation>
430430
<message>
431431
<location filename="../mainwindow.cpp" line="2634"/>
432432
<source>Enforce Timing Guarantees</source>
433-
<translation type="unfinished">Imponer Garantías de Tiempo</translation>
433+
<translation>Imponer Garantías de Tiempo</translation>
434434
</message>
435435
<message>
436436
<location filename="../mainwindow.cpp" line="2639"/>
@@ -475,7 +475,7 @@ Lo sentimos, un error crítico ha ocurrido durante el inicio</translation>
475475
<message>
476476
<location filename="../mainwindow.cpp" line="2679"/>
477477
<source>Clear Logs on Run</source>
478-
<translation>Eliminar registros al ejecutar</translation>
478+
<translation>Eliminar Registros al Ejecutar código</translation>
479479
</message>
480480
<message>
481481
<location filename="../mainwindow.cpp" line="2684"/>
@@ -485,12 +485,12 @@ Lo sentimos, un error crítico ha ocurrido durante el inicio</translation>
485485
<message>
486486
<location filename="../mainwindow.cpp" line="2689"/>
487487
<source>Auto-Scroll Log</source>
488-
<translation>Desplazar hasta el final</translation>
488+
<translation>Desplazar Registro Automáticamente</translation>
489489
</message>
490490
<message>
491491
<location filename="../mainwindow.cpp" line="2699"/>
492492
<source>Live</source>
493-
<translation>En directo</translation>
493+
<translation>En Vivo</translation>
494494
</message>
495495
<message>
496496
<location filename="../mainwindow.cpp" line="2711"/>
@@ -535,7 +535,7 @@ Lo sentimos, un error crítico ha ocurrido durante el inicio</translation>
535535
<message>
536536
<location filename="../mainwindow.cpp" line="2761"/>
537537
<source>Show Scope Labels</source>
538-
<translation>Mostrar nombres de visualizadores</translation>
538+
<translation>Mostrar Nombres de Visualizadores</translation>
539539
</message>
540540
<message>
541541
<location filename="../mainwindow.cpp" line="2766"/>
@@ -694,7 +694,7 @@ Lo sentimos, un error crítico ha ocurrido durante el inicio</translation>
694694
<message>
695695
<location filename="../mainwindow.cpp" line="2952"/>
696696
<source>Show Log</source>
697-
<translation>Mostrar registros</translation>
697+
<translation>Mostrar Registro</translation>
698698
</message>
699699
<message>
700700
<location filename="../mainwindow.cpp" line="2957"/>

app/gui/qt/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@ int main(int argc, char *argv[])
4949

5050
qRegisterMetaType<SonicPiLog::MultiMessage>("SonicPiLog::MultiMessage");
5151

52-
QString systemLocale = QLocale::system().name();
53-
52+
QString systemLocale = QLocale::system().uiLanguages()[0].replace("-", "_");
5453

5554
QTranslator qtTranslator;
5655
qtTranslator.load("qt_" + systemLocale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
5756
app.installTranslator(&qtTranslator);
5857

5958
QTranslator translator;
60-
bool i18n = translator.load("sonic-pi_" + systemLocale, ":/lang/") || systemLocale.startsWith("en") || systemLocale == "C";
59+
bool i18n = translator.load(QLatin1String("sonic-pi_") + systemLocale, QLatin1String(":/lang")) || systemLocale.startsWith("en") || systemLocale == "C";
6160
app.installTranslator(&translator);
6261

6362
app.setApplicationName(QObject::tr("Sonic Pi"));

app/gui/qt/mainwindow.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ MainWindow::MainWindow(QApplication &app, bool i18n, QSplashScreen* splash)
128128
show_rec_icon_a = false;
129129
restoreDocPane = false;
130130
focusMode = false;
131-
version = "3.3.0";
131+
version = "3.3.1";
132132
latest_version = "";
133133
version_num = 0;
134134
latest_version_num = 0;
@@ -148,11 +148,22 @@ MainWindow::MainWindow(QApplication &app, bool i18n, QSplashScreen* splash)
148148

149149
// Throw all stdout into ~/.sonic-pi/log/gui.log
150150
setupLogPathAndRedirectStdOut();
151-
151+
std::cout << "[GUI] - " << std::endl;
152+
std::cout << "[GUI] - " << std::endl;
153+
std::cout << "[GUI] - " << std::endl;
152154
std::cout << "[GUI] - Welcome to the Sonic Pi GUI" << std::endl;
153155
std::cout << "[GUI] - ===========================" << std::endl;
154156
std::cout << "[GUI] - " << std::endl;
155157
std::cout << "[GUI] - " << guiID.toStdString() << std::endl;
158+
std::cout << "[GUI] - ui locale: " << QLocale::system().uiLanguages()[0].toStdString() << std::endl;
159+
std::cout << "[GUI] - sys locale: " << QLocale::system().name().toStdString() << std::endl;
160+
161+
162+
if(i18n) {
163+
std::cout << "[GUI] - translations available " << std::endl;
164+
} else {
165+
std::cout << "[GUI] - translations unavailable (using EN)" << std::endl;
166+
}
156167

157168
// dynamically discover port numbers and then check them this will
158169
// show an error dialogue to the user and then kill the app if any of

app/linux-prebuild.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,17 @@ set -e # Quit script on error
33
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
echo "Warning: Unix build scripts are still a work in progress!"
55

6-
# Build external dependencies
7-
if [ "$1" = "--build-aubio" ]; then
8-
"${SCRIPT_DIR}/external/linux_build_externals.sh" --build-aubio
9-
else
10-
"${SCRIPT_DIR}/external/linux_build_externals.sh"
11-
fi
6+
7+
8+
"${SCRIPT_DIR}/external/linux_build_externals.sh"
9+
1210

1311
# Install dependencies to server
1412
echo "Copying external dependencies to the server..."
1513
mkdir -p "${SCRIPT_DIR}/server/erlang/sonic_pi_server/priv/"
1614
cp ${SCRIPT_DIR}/external/build/sp_midi-prefix/src/sp_midi-build/*.so ${SCRIPT_DIR}/server/erlang/sonic_pi_server/priv/
1715

18-
if [ "$1" = "--build-aubio" ]; then
19-
mkdir -p "${SCRIPT_DIR}/server/native/lib"
20-
cp "${SCRIPT_DIR}/external/build/aubio-prefix/src/aubio-build/libaubio-5.so" "${SCRIPT_DIR}/server/native/lib/"
21-
fi
16+
cp "${SCRIPT_DIR}/external/build/aubio-prefix/src/aubio-build/aubio_onset" "${SCRIPT_DIR}/server/native/"
2217

2318
#dont remove ruby-aubio-prerelease, as needed in linux build
2419
#it is removed in the windows-prebuild

0 commit comments

Comments
 (0)