Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trigger serial messages or play screen on bees outputs #251

Open
ghost opened this issue Feb 3, 2016 · 1 comment
Open

trigger serial messages or play screen on bees outputs #251

ghost opened this issue Feb 3, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 3, 2016

Recalling the discussion from http://llllllll.co/t/aleph-serial-bus-control/2310/19

Some refactoring required to enable bees network to trigger things other than bees inputs (e.g serial message or message on play screen) on operator output. Not sure the right way to add this but some changes to net_activate in net.c probably a starting point for the refactoring.

Change arguments to this fn to output relative index & pointer to calling op. Then deal with this issue:

  • one level up in the operator code with all those net_activate calls the outIdx is also not available.
  • the level above that is op_set_in_val, so I see ouputs are always indexed relative to the operator & op_t does not know the index of it's first output.
  • to add the desired functionality of sending absolute outId & data val based on relative outIdx & operator pointer, one way is to store outIds in an array on the operator object, filled at op instantiation time.
  • Then serial or play output can be added as flags to net->outs[N].serial_play & net->outs[N].play
@ghost ghost mentioned this issue Feb 3, 2016
@ghost ghost self-assigned this Apr 16, 2017
@ghost
Copy link
Author

ghost commented Apr 22, 2017

outputs are triggering on play screen now ( put a hack in rather than totally rewriting BEES) - not totally convinced this is such a great feature for network protocol though...

Thinking more along the lines of a serial op with several 'canonical' use cases...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant