void extras_process_fx(struct context_data *ctx, struct channel_data *xc, int chn, uint8 note, uint8 fxt, uint8 fxp, int fnum) { if (HAS_MED_CHANNEL_EXTRAS(*xc)) med_extras_process_fx(ctx, xc, chn, note, fxt, fxp, fnum); else if (HAS_HMN_CHANNEL_EXTRAS(*xc)) hmn_extras_process_fx(ctx, xc, chn, note, fxt, fxp, fnum); }
void reset_channel_extras(struct context_data *ctx, struct channel_data *xc) { struct module_data *m = &ctx->m; if (HAS_MED_CHANNEL_EXTRAS(*m)) med_reset_channel_extras(xc); else if (HAS_HMN_CHANNEL_EXTRAS(*m)) hmn_reset_channel_extras(xc); }
int extras_get_period(struct context_data *ctx, struct channel_data *xc) { int period; if (HAS_MED_CHANNEL_EXTRAS(*xc)) period = med_change_period(ctx, xc); else period = 0; return period; }
int extras_get_linear_bend(struct context_data *ctx, struct channel_data *xc) { int linear_bend; if (HAS_MED_CHANNEL_EXTRAS(*xc)) linear_bend = med_linear_bend(ctx, xc); else if (HAS_HMN_CHANNEL_EXTRAS(*xc)) linear_bend = hmn_linear_bend(ctx, xc); else linear_bend = 0; return linear_bend; }