~pbatch/patchwerk

b3c0fb6ab45a0a9e6109d27a9e0a0142d3c19537 — paul 1 year, 2 days ago 86ff6e0
re-enabled tabread

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

M dsp/config.mk
M dsp/tabread.c
M dsp/tabread.h
M dsp/ugen_list.h
M dsp/config.mk => dsp/config.mk +1 -0
@@ 82,6 82,7 @@ NODES=\
	eqfil.o\
	mode.o\
	pdhalf.o\
	tabread.o\

# old list
#NODES=\

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

    tabread = (tabread_d *) pw_node_get_data(node);

    sp_tabread_destroy(&tabread->tabread);
    sp_tread_destroy(&tabread->tabread);

    pw_node_cables_free(node);



@@ 31,7 31,7 @@ static void compute(pw_node *node)
        tabread->tabread->index = pw_cable_get(tabread->p_index, i);
        tabread->tabread->offset = pw_cable_get(tabread->p_offset, i);
        tabread->tabread->wrap = pw_cable_get(tabread->p_wrap, i);
        sp_tabread_compute(tabread->sp, tabread->tabread, NULL, &out);
        sp_tread_compute(tabread->sp, tabread->tabread, NULL, &out);
        pw_cable_set(tabread->out, i, out);
    }
}


@@ 43,8 43,8 @@ void node_tabread(sp_data *sp, pw_node *node, sp_ftbl * ft, SPFLOAT mode)
    tabread = malloc(sizeof(tabread_d));
    tabread->sp = sp;

    sp_tabread_create(&tabread->tabread);
    sp_tabread_init(sp, tabread->tabread, ft, mode);
    sp_tread_create(&tabread->tabread);
    sp_tread_init(sp, tabread->tabread, ft, mode);
    pw_node_cables_alloc(node, 4);

    pw_node_get_cable(node, 0, &tabread->p_index);

M dsp/tabread.h => dsp/tabread.h +1 -1
@@ 1,7 1,7 @@
#ifndef TABREAD_H
typedef struct {
    sp_data *sp;
    sp_tabread *tabread;
    sp_tread *tabread;
    pw_cable *p_index;
    pw_cable *p_offset;
    pw_cable *p_wrap;

M dsp/ugen_list.h => dsp/ugen_list.h +1 -1
@@ 67,7 67,7 @@ UGEN(TYPE_CLAMP, clamp)
UGEN(TYPE_RPT, rpt)
UGEN(TYPE_CROSSFADE, crossfade)
UGEN(TYPE_PHASOR, phasor)
/* UGEN(TYPE_TABREAD, tabread) */
UGEN(TYPE_TABREAD, tabread)
UGEN(TYPE_TOG, tog)
UGEN(TYPE_JCREV, jcrev)
UGEN(TYPE_SATURATOR, saturator)