~pbatch/patchwerk

21ff2ef695ea76c09c64a7af842d0ad937cceeb2 — paul 1 year, 2 months ago 45e7922
bigverb

FossilOrigin-Name: a166b1231792ab38a101971e78a77c731389afb3df993a1d8a0b4dbeba74b12a
4 files changed, 7 insertions(+), 6 deletions(-)

M dsp/config.mk
M dsp/revsc.c
M dsp/revsc.h
M dsp/ugen_list.h
M dsp/config.mk => dsp/config.mk +1 -0
@@ 74,6 74,7 @@ NODES=\
	wavin.o\
	slice.o\
	port.o\
	revsc.o\

# old list
#NODES=\

M dsp/revsc.c => dsp/revsc.c +4 -4
@@ 14,8 14,8 @@ static void setup(pw_node *node)
    revsc = malloc(sizeof(revsc_d));
    revsc->sp = sp;

    sp_revsc_create(&revsc->revsc);
    sp_revsc_init(sp, revsc->revsc);
    sp_bigverb_create(&revsc->revsc);
    sp_bigverb_init(sp, revsc->revsc);

    pw_node_cables_alloc(node, 6);
    pw_node_get_cable(node, 0, &revsc->in[0]);


@@ 42,7 42,7 @@ static void destroy(pw_node *node)

    revsc = (revsc_d *) pw_node_get_data(node);

    sp_revsc_destroy(&revsc->revsc);
    sp_bigverb_destroy(&revsc->revsc);

    pw_node_cables_free(node);



@@ 65,7 65,7 @@ static void compute(pw_node *node)
        in[1] = pw_cable_get(revsc->in[1], i);
        revsc->revsc->feedback = pw_cable_get(revsc->feedback, i);
        revsc->revsc->lpfreq = pw_cable_get(revsc->lpfreq, i);
        sp_revsc_compute(revsc->sp, revsc->revsc, &in[0], &in[1], &out[0], &out[1]);
        sp_bigverb_compute(revsc->sp, revsc->revsc, &in[0], &in[1], &out[0], &out[1]);
        pw_cable_set(revsc->out[0], i, out[0]);
        pw_cable_set(revsc->out[1], i, out[1]);
    }

M dsp/revsc.h => dsp/revsc.h +1 -1
@@ 1,7 1,7 @@
#ifndef REVSC_H
typedef struct {
    sp_data *sp;
    sp_revsc *revsc;
    sp_bigverb *revsc;
    pw_cable *in[2];
    pw_cable *feedback;
    pw_cable *lpfreq;

M dsp/ugen_list.h => dsp/ugen_list.h +1 -1
@@ 7,7 7,7 @@ UGEN(TYPE_DIV, div)
UGEN(TYPE_BLSQUARE, blsquare)
UGEN(TYPE_METRO, metro)
UGEN(TYPE_TENV, tenv)
/* UGEN(TYPE_REVSC, revsc) */
UGEN(TYPE_REVSC, revsc)
UGEN(TYPE_OUT, out)
UGEN(TYPE_BLSAW, blsaw)
UGEN(TYPE_TENVX, tenvx)