Skip to content

Commit 757eec9

Browse files
committed
Erlang - rename Erlang-based server to tau
1 parent 522b102 commit 757eec9

24 files changed

+90
-67
lines changed

app/linux-prebuild.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ cd ${SCRIPT_DIR}
2727

2828
# Install dependencies to server
2929
echo "Copying external dependencies to the server..."
30-
mkdir -p "${SCRIPT_DIR}/server/erlang/sonic_pi_server/priv/"
31-
cp ${SCRIPT_DIR}/external/build/sp_midi-prefix/src/sp_midi-build/*.so ${SCRIPT_DIR}/server/erlang/sonic_pi_server/priv/
30+
mkdir -p "${SCRIPT_DIR}/server/erlang/tau/priv/"
31+
cp ${SCRIPT_DIR}/external/build/sp_midi-prefix/src/sp_midi-build/*.so ${SCRIPT_DIR}/server/erlang/tau/priv/
3232

3333
cp "${SCRIPT_DIR}/external/build/aubio-prefix/src/aubio-build/aubio_onset" "${SCRIPT_DIR}/server/native/"
3434

@@ -51,7 +51,7 @@ echo "Updating GUI translation files..."
5151
PATH=`pkg-config --variable bindir Qt5`:$PATH lrelease "${SCRIPT_DIR}"/gui/qt/lang/*.ts
5252

5353
echo "Compiling erlang files..."
54-
cd "${SCRIPT_DIR}/server/erlang/sonic_pi_server"
54+
cd "${SCRIPT_DIR}/server/erlang/tau"
5555
erl -make
56-
cp src/sonic_pi_server.app.src ebin/sonic_pi_server.app
56+
cp src/tau.app.src ebin/tau.app
5757
cd "${SCRIPT_DIR}"

app/mac-prebuild.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ fi
4242

4343
# Install dependencies to server
4444
echo "Copying external dependencies to the server..."
45-
mkdir -p "${SCRIPT_DIR}/server/erlang/sonic_pi_server/priv/"
45+
mkdir -p "${SCRIPT_DIR}/server/erlang/tau/priv/"
4646
for f in ${SCRIPT_DIR}/external/build/sp_midi-prefix/src/sp_midi-build/*.dylib; do
47-
cp $f ${SCRIPT_DIR}/server/erlang/sonic_pi_server/priv/$(basename $f .dylib).so
47+
cp $f ${SCRIPT_DIR}/server/erlang/tau/priv/$(basename $f .dylib).so
4848
done
4949

5050

@@ -76,7 +76,7 @@ echo "Updating GUI translation files..."
7676
PATH=$PATH:/usr/local/opt/qt/bin lrelease "${SCRIPT_DIR}"/gui/qt/lang/*.ts
7777

7878
echo "Compiling erlang files..."
79-
cd "${SCRIPT_DIR}/server/erlang/sonic_pi_server"
79+
cd "${SCRIPT_DIR}/server/erlang/tau"
8080
../../native/erlang/erl -make
81-
cp src/sonic_pi_server.app.src ebin/sonic_pi_server.app
81+
cp src/tau.app.src ebin/tau.app
8282
cd "${SCRIPT_DIR}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{"src/osc/*", [{outdir, "ebin/"}]}.
2-
{"src/pi_server/*", [{outdir, "ebin/"}]}.
2+
{"src/tau_server/*", [{outdir, "ebin/"}]}.
33
{"src/sp_midi/*", [{outdir, "ebin/"}]}.

app/server/erlang/sonic_pi_server/src/sonic_pi_server.app.src renamed to app/server/erlang/tau/ebin/tau.app

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
%% This is an -*- erlang -*- file.
2-
{application, sonic_pi_server,
3-
[{description, "Sonic Pi Server"},
2+
{application, tau,
3+
[{description, "Sonic Pi Tau Server"},
44
{vsn, ""},
5-
{modules, [pi_server,
6-
pi_server_app,
7-
pi_server_sup,
5+
{modules, [tau_server,
6+
tau_server_app,
7+
tau_server_sup,
88
osc
99
]},
1010
{registered,[]},
11-
{mod,{pi_server_app,[]}},
11+
{mod,{tau_server_app,[]}},
1212
{env, [{enabled, true},
1313
{midi_enabled, true},
1414
{in_port, 4560}, % sane defaults for the ports
266 KB
Binary file not shown.

app/server/erlang/sonic_pi_server/src/osc/osc_tests.erl renamed to app/server/erlang/tau/src/osc/osc_tests.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
-compile(export_all).
1717

18-
-define(APPLICATION, sonic_pi_server).
18+
-define(APPLICATION, tau).
1919

2020
%% TODO: make eunit tests instead of manual test functions
2121

@@ -43,8 +43,8 @@ test3() ->
4343
APIPort = application:get_env(?APPLICATION, api_port, undefined),
4444
OSCInPort = application:get_env(?APPLICATION, in_port, undefined),
4545
FwPort = 6000,
46-
lists:member(pi_server_api, registered()) orelse
47-
pi_server:start(),
46+
lists:member(tau_server_api, registered()) orelse
47+
tau_server:start(),
4848
SendLater = ["/sendmidi", 12, 34, 56],
4949
EncodedLater = osc:encode(SendLater),
5050
{ok, Socket} = gen_udp:open(FwPort, [binary, {ip, loopback}]),

app/server/erlang/sonic_pi_server/src/sp_midi/sp_midi.erl renamed to app/server/erlang/tau/src/sp_midi/sp_midi.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set_this_pid/1, set_log_level/1, get_current_time_microseconds/0]).
44
-on_load(init/0).
55

6-
-define(APPLICATION, sonic_pi_server).
6+
-define(APPLICATION, tau).
77
-define(LIBNAME, "libsp_midi").
88

99
init() ->

0 commit comments

Comments
 (0)