Unlimited Signal Instances / Datasets in Libmapper

Skip to first unread message

Travis West

Apr 1, 2022, 4:00:20 AM4/1/22
to dot_m...@googlegroups.com
Hi list,

In many algorithms useful for making mappings, the main stuff of interest is data generated by the user. Presets, gesture demonstrations, etc. I've been thinking about how to integrate this kind of information into libmapper's ecosystem. One possibility I've been considering is to treat a dataset as a signal whose instances are points of data. A problem with this approach is that instances are currently limited to a fixed maximum number, and can't (if I'm not mistaken) be allocated dynamically.

Does this seem like a good approach? Do you have any other ideas on how this kind of dataset could be integrated into libmapper?



Joseph Malloch

Apr 1, 2022, 8:27:58 AM4/1/22
to dot_m...@googlegroups.com
Hi Travis,

Instances can be created and freed dynamically – these functions alter the number of allocated instances:

int mpr_sig_reserve_inst (mpr_sig signal, int number, mpr_id *ids, void **data)
void mpr_sig_remove_inst (mpr_sig signal, mpr_id instance)

This is different from whether the allocated instances are active or not. Instances are usually activated by setting their value, and released by either setting their value to NULL or calling mpr_sig_release_inst(). MAX_INST is currently defined to 128 in signal.c as an arbitrary limit but could be changed.

I’m interested in discussing this further – either on this list or we could schedule a video chat. The “gesture demonstration” example seems like it might relate to the MapLooper work expanding map memory (perhaps with instances), but I’m not sure how you are considering presets as signal instances. 3D pointclouds and flocking simulations have been discussed before as targets for exploring instances.


You received this message because you are subscribed to the Google Groups "dot_mapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dot_mapper+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dot_mapper/CAGAPLrk3Xp89jATo%2BJTqD--ry5Wu9ehS9UUHUHoofe7r6GTuPg%40mail.gmail.com.

Reply all
Reply to author
0 new messages