Skip to content

Commit

Permalink
Update Mephisto to commit 1201a260ef439873d6e2382c15b39ebc42c812e9
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe committed Aug 29, 2024
1 parent d9a3af7 commit 95bd2bd
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 23 deletions.
6 changes: 3 additions & 3 deletions pkgs/mephisto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# (at your option) any later version.
{ pkgs }:
let
version = "0.18.2";
version = "2024-08-28";
faust = pkgs.callPackage ../faust { };
llvm = pkgs.callPackage ../llvm { };
in
Expand All @@ -17,8 +17,8 @@ pkgs.stdenv.mkDerivation {
domain = "open-music-kontrollers.ch";
owner = "~hp";
repo = "mephisto.lv2";
rev = version;
hash = "sha256-ab6OGt1XVgynKNdszzdXwJ/jVKJSzgSmAv6j1U3/va0=";
rev = "1201a260ef439873d6e2382c15b39ebc42c812e9";
hash = "sha256-ad3nlWHvS8cqxFhgENLs+tFTWbVLTSqHtrJwVPlILVg=";
};
patches = [
./disable-ui.patch
Expand Down
18 changes: 13 additions & 5 deletions pkgs/mephisto/disable-ui.patch
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
+# install : true,
+# install_dir : inst_dir)

bank_filter_through_dsp = join_paths(
meson.current_source_dir(), 'dsp', 'bank-filter_through.dsp')
@@ -152,12 +152,12 @@ dsp_ttl = configure_file(
bank_filter_through_1x1_dsp = join_paths(
meson.current_source_dir(), 'dsp', 'bank-filter_through-1x1.dsp')
@@ -170,12 +170,12 @@ dsp_ttl = configure_file(
install : true,
install_dir : inst_dir)

Expand All @@ -88,7 +88,6 @@

pset_ttl = configure_file(
input : join_paths('ttl', 'presets.ttl.in'),

--- a/ttl/manifest.ttl.in
+++ b/ttl/manifest.ttl.in
@@ -14,7 +14,7 @@ mephisto:audio_1x1
Expand Down Expand Up @@ -154,7 +153,16 @@
lv2:binary <mephisto@MODULE_SUFFIX@> ;
rdfs:seeAlso <mephisto.ttl> .

@@ -77,15 +77,15 @@ mephisto:cv_8x8
@@ -77,7 +77,7 @@ mephisto:cv_8x8
a lv2:Plugin ;
lv2:minorVersion @MINOR_VERSION@ ;
lv2:microVersion @MICRO_VERSION@ ;
- ui:ui mephisto:ui ;
+ #ui:ui mephisto:ui ;
lv2:binary <mephisto@MODULE_SUFFIX@> ;
rdfs:seeAlso <mephisto.ttl> .

@@ -86,15 +86,15 @@ mephisto:combo_44x44
a lv2:Plugin ;
lv2:minorVersion @MINOR_VERSION@ ;
lv2:microVersion @MICRO_VERSION@ ;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/mephisto/static.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

--- a/src/mephisto.c
+++ b/src/mephisto.c
@@ -2254,7 +2254,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2269,7 +2269,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
goto fail;
}

Expand Down
28 changes: 14 additions & 14 deletions pkgs/mephisto/sync.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

--- a/src/mephisto.c
+++ b/src/mephisto.c
@@ -285,27 +285,27 @@ _voice_next(voice_t *voice)
@@ -287,27 +287,27 @@ _voice_next(voice_t *voice)
_voice_not_end((DSP), (VOICE)); \
(VOICE) = _voice_next((VOICE)))

Expand Down Expand Up @@ -57,7 +57,7 @@
}
}

@@ -513,7 +513,7 @@ _refresh_attributes(plughandle_t *handle, uint32_t idx)
@@ -515,7 +515,7 @@ _refresh_attributes(plughandle_t *handle, uint32_t idx)
int32_t type = CNTRL_NONE;
char label [LABEL_SIZE] = "";

Expand All @@ -66,7 +66,7 @@

if(!dsp)
{
@@ -728,28 +728,28 @@ _play(plughandle_t *handle, int64_t from, int64_t to)
@@ -730,28 +730,28 @@ _play(plughandle_t *handle, int64_t from, int64_t to)
continue;
}

Expand Down Expand Up @@ -117,7 +117,7 @@

VOICE_FOREACH(dsp, voice)
{
@@ -770,27 +770,27 @@ _play(plughandle_t *handle, int64_t from, int64_t to)
@@ -772,27 +772,27 @@ _play(plughandle_t *handle, int64_t from, int64_t to)
{
for(uint32_t i = 0; i < nsamples; i++)
{
Expand Down Expand Up @@ -160,7 +160,7 @@
}

static void
@@ -1655,7 +1655,7 @@ run(LV2_Handle instance, uint32_t nsamples)
@@ -1661,7 +1661,7 @@ run(LV2_Handle instance, uint32_t nsamples)

for(unsigned i = 0; i < NCONTROLS; i++)
{
Expand All @@ -169,7 +169,7 @@

if(!dsp)
{
@@ -2197,8 +2197,8 @@ _ui_init(dsp_t *dsp)
@@ -2212,8 +2212,8 @@ _ui_init(dsp_t *dsp)
}

static int
Expand All @@ -180,7 +180,7 @@
{
#define ARGC 5
char err [4096];
@@ -2215,7 +2215,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2230,7 +2230,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
.error = NULL
};

Expand All @@ -189,7 +189,7 @@
}

dsp->handle = handle;
@@ -2228,14 +2228,14 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2243,14 +2243,14 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
{
if(handle->log)
{
Expand All @@ -206,7 +206,7 @@
}

goto fail;
@@ -2247,7 +2247,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2262,7 +2262,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
{
if(handle->log)
{
Expand All @@ -215,7 +215,7 @@
}

deleteCDSPFactory(dsp->factory);
@@ -2263,7 +2263,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2278,7 +2278,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
{
if(handle->log)
{
Expand All @@ -224,7 +224,7 @@
}

deleteCDSPFactory(dsp->factory);
@@ -2286,7 +2286,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2301,7 +2301,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
{
if(handle->log)
{
Expand All @@ -233,7 +233,7 @@
}

break;
@@ -2304,7 +2304,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2319,7 +2319,7 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
{
if(handle->log)
{
Expand All @@ -242,7 +242,7 @@
}

deleteCDSPFactory(dsp->factory);
@@ -2313,9 +2313,9 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,
@@ -2328,9 +2328,9 @@ _dsp_init(plughandle_t *handle, dsp_t *dsp, const char *code,

if(handle->log)
{
Expand All @@ -255,7 +255,7 @@
}

pthread_mutex_unlock(&lock);
@@ -2414,7 +2414,7 @@ _work(LV2_Handle instance,
@@ -2429,7 +2429,7 @@ _work(LV2_Handle instance,
while( (code= varchunk_read_request(handle->to_worker, &size)) )
{
dsp_t *dsp = calloc(1, sizeof(dsp_t));
Expand Down

0 comments on commit 95bd2bd

Please sign in to comment.