~pbatch/patchwerk

e85df2e0b071415a143ebd8a4091638b801c4b58 — paul 1 year, 21 days ago 5cd96a3
re-enabled eqfil

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

M dsp/config.mk
M dsp/eqfil.c
M dsp/eqfil.h
M dsp/ugen_list.h
M dsp/config.mk => dsp/config.mk +1 -0
@@ 79,6 79,7 @@ NODES=\
	fosc.o\
	randi.o\
	vdelay.o\
	eqfil.o\

# old list
#NODES=\

M dsp/eqfil.c => dsp/eqfil.c +4 -4
@@ 10,7 10,7 @@ static void destroy(pw_node *node)

    eqfil = (eqfil_d *) pw_node_get_data(node);

    sp_eqfil_destroy(&eqfil->eqfil);
    sp_peakeq_destroy(&eqfil->eqfil);

    pw_node_cables_free(node);



@@ 33,7 33,7 @@ static void compute(pw_node *node)
        eqfil->eqfil->freq = pw_cable_get(eqfil->p_freq, i);
        eqfil->eqfil->bw = pw_cable_get(eqfil->p_bw, i);
        eqfil->eqfil->gain = pw_cable_get(eqfil->p_gain, i);
        sp_eqfil_compute(eqfil->sp, eqfil->eqfil, &in, &out);
        sp_peakeq_compute(eqfil->sp, eqfil->eqfil, &in, &out);
        pw_cable_set(eqfil->out, i, out);
    }
}


@@ 45,8 45,8 @@ void node_eqfil(sp_data *sp, pw_node *node)
    eqfil = malloc(sizeof(eqfil_d));
    eqfil->sp = sp;

    sp_eqfil_create(&eqfil->eqfil);
    sp_eqfil_init(sp, eqfil->eqfil);
    sp_peakeq_create(&eqfil->eqfil);
    sp_peakeq_init(sp, eqfil->eqfil);
    pw_node_cables_alloc(node, 5);
    pw_node_get_cable(node, 0, &eqfil->in);


M dsp/eqfil.h => dsp/eqfil.h +1 -1
@@ 1,7 1,7 @@
#ifndef EQFIL_H
typedef struct {
    sp_data *sp;
    sp_eqfil *eqfil;
    sp_peakeq *eqfil;
    pw_cable *in;
    pw_cable *p_freq;
    pw_cable *p_bw;

M dsp/ugen_list.h => dsp/ugen_list.h +1 -1
@@ 42,7 42,7 @@ UGEN(TYPE_WPKORG35, wpkorg35)
UGEN(TYPE_BUTBP, butbp)
UGEN(TYPE_BUTBR, butbr)
UGEN(TYPE_BUTHP, buthp)
/* UGEN(TYPE_EQFIL, eqfil) */
UGEN(TYPE_EQFIL, eqfil)
UGEN(TYPE_MAYGATE, maygate)
/* UGEN(TYPE_LPF18, lpf18) */
UGEN(TYPE_RANDI, randi)