// serialization u8* op_sw_pickle(op_sw_t* sw, u8* dst) { // store state variables dst = pickle_io(sw->state, dst); dst = pickle_io(sw->mul, dst); dst = pickle_io(sw->tog, dst); return dst; }
// pickle / unpickle u8* op_is_pickle(op_is_t* op, u8* dst) { dst = pickle_io(op->a, dst); dst = pickle_io(op->b, dst); dst = pickle_io(op->btrig, dst); dst = pickle_io(op->edge, dst); return dst; }
// pickles u8* op_enc_pickle(op_enc_t* enc, u8* dst) { dst = pickle_io(enc->val, dst); dst = pickle_io(enc->step, dst); dst = pickle_io(enc->min, dst); dst = pickle_io(enc->max, dst); dst = pickle_io(enc->wrap, dst); return dst; }
// serialization u8* op_accum_pickle(op_accum_t* accum, u8* dst) { // store state variables dst = pickle_io(accum->val, dst); dst = pickle_io(accum->min, dst); dst = pickle_io(accum->max, dst); dst = pickle_io(accum->wrap, dst); return dst; }
// serialization u8* op_bignum_pickle(op_bignum_t* bignum, u8* dst) { // store val variables dst = pickle_io(bignum->enable, dst); dst = pickle_io(bignum->period, dst); dst = pickle_io(bignum->val, dst); dst = pickle_io(bignum->x, dst); dst = pickle_io(bignum->y, dst); return dst; }
// serialization u8* op_screen_pickle(op_screen_t* screen, u8* dst) { // store val variables dst = pickle_io(screen->enable, dst); dst = pickle_io(screen->period, dst); dst = pickle_io(screen->val, dst); dst = pickle_io(screen->fill, dst); dst = pickle_io(screen->x, dst); dst = pickle_io(screen->y, dst); return dst; }
// serialization u8* op_thresh_pickle(op_thresh_t* thresh, u8* dst) { // store state variables dst = pickle_io(thresh->state, dst); dst = pickle_io(thresh->lim, dst); return dst; }
// pickle / unpickle u8* op_random_pickle(op_random_t* op, u8* dst) { dst = pickle_io(op->min, dst); dst = pickle_io(op->max, dst); dst = pickle_io(op->trig, dst); return dst; }
// pickle / unpickle u8* op_list16_pickle(op_list16_t* op, u8* dst) { dst = pickle_io(op->index, dst); dst = pickle_io(op->i0, dst); dst = pickle_io(op->i1, dst); dst = pickle_io(op->i2, dst); dst = pickle_io(op->i3, dst); dst = pickle_io(op->i4, dst); dst = pickle_io(op->i5, dst); dst = pickle_io(op->i6, dst); dst = pickle_io(op->i7, dst); dst = pickle_io(op->i8, dst); dst = pickle_io(op->i9, dst); dst = pickle_io(op->i10, dst); dst = pickle_io(op->i11, dst); dst = pickle_io(op->i12, dst); dst = pickle_io(op->i13, dst); dst = pickle_io(op->i14, dst); dst = pickle_io(op->i15, dst); return dst; }
// pickle / unpickle u8* op_shr_pickle(op_shr_t* op, u8* dst) { dst = pickle_io(op->a, dst); dst = pickle_io(op->b, dst); dst = pickle_io(op->btrig, dst); return dst; }
u8* op_metro_pickle(op_metro_t* metro, u8* dst) { dst = pickle_io(metro->enable, dst); dst = pickle_io(metro->period, dst); dst = pickle_io(metro->value, dst); return dst; }
// pickle / unpickle u8* op_step_pickle(op_step_t* mgrid, u8* dst) { dst = pickle_io(mgrid->focus, dst); dst = pickle_io(mgrid->size, dst); return dst; }
// serialization u8* op_route_pickle(op_route_t* route, u8* dst) { dst = pickle_io(route->to, dst); return dst; }
u8* op_adc_pickle(op_adc_t* adc, u8* dst) { dst = pickle_io(adc->enable, dst); dst = pickle_io(adc->period, dst); return dst; }
// pickle / unpickle u8* op_midi_out_cc_pickle(op_midi_out_cc_t* op, u8* dst) { dst = pickle_io(op->chan, dst); dst = pickle_io(op->num, dst); return dst; }
u8* op_delay_pickle(op_delay_t* delay, u8* dst) { dst = pickle_io(delay->ms, dst); return dst; }
// pickle / unpickle u8* op_midi_out_note_pickle(op_midi_out_note_t* mout, u8* dst) { dst = pickle_io(mout->chan, dst); return dst; }
// pickle / unpickle u8* op_step_pickle(op_step_t* mgrid, u8* dst) { dst = pickle_io(mgrid->focus, dst); dst = pickle_io(mgrid->size, dst); /// no state...??? return dst; }
// serialization u8* op_bars8_pickle(op_bars8_t* bars8, u8* dst) { // store val variables dst = pickle_io(bars8->enable, dst); dst = pickle_io(bars8->period, dst); dst = pickle_io(bars8->mode, dst); dst = pickle_io(bars8->a, dst); dst = pickle_io(bars8->b, dst); dst = pickle_io(bars8->c, dst); dst = pickle_io(bars8->d, dst); dst = pickle_io(bars8->e, dst); dst = pickle_io(bars8->f, dst); dst = pickle_io(bars8->g, dst); dst = pickle_io(bars8->h, dst); return dst; }