shithub: soundpipe

ref: 25a9fcc24ad00c6a406042818b9e6f2e7bba0dd1
dir: soundpipe/h/oscmorph.h

View raw version
typedef struct {
    SPFLOAT freq, amp, iphs;
    int32_t lphs;
    sp_ftbl **tbl;

    /* magic constants */
    uint32_t nlb;
    SPFLOAT inlb;
    uint32_t mask;
    SPFLOAT maxlens;

    int inc;
    SPFLOAT wtpos;
    int nft;
} sp_oscmorph;

int sp_oscmorph_create(sp_oscmorph **p);
int sp_oscmorph_destroy(sp_oscmorph **p);
int sp_oscmorph_init(sp_data *sp,
                     sp_oscmorph *osc,
                     sp_ftbl **ft,
                     int nft,
                     SPFLOAT iphs);
int sp_oscmorph_compute(sp_data *sp,
                        sp_oscmorph *p,
                        SPFLOAT *in,
                        SPFLOAT *out);