Problem outputting bag-data

Oct 10, 2013 at 2:13pm

Problem outputting bag-data

i have a note-in that is connected to a bag, storing all notes that are currently held (and removing the ones i release). Whenever i send a bang message (or a ‘length’-message) to the bag, it will only output the result when i release the notes – there is no output at all when holding the notes, it’s all being buffered and outputted afterwards (playing on a keyboard).

Am i doing something wrong here?

#267707
Oct 11, 2013 at 2:47am

don’t know exactly what the problem might be without a patch posted, but it sounds like you should look at [borax]– it may provide the solution you’re looking for

#267743
Oct 11, 2013 at 3:12am

Thanks, borax seems to be exactly what i want. i’m still curious as to why the bag wouldn’t output anything while i was holding keys down. The problem was as follows:

  • bag object storing all notes with vel > 0, removing those with vel == 0
  • length message that goes to the bag, clicking it outputs 0 (initially), which is correct
  • i hold down keys on my midi-keyboard, and while doing that i click the length-message to check if it’s indeed being stored in the bag: nothing happens, no ouput
  • whenever i release the keys, the bag outputs the length (if i clicked the length message 5 times during holding down the keys, i get that output 5 times after release
#267745
Oct 11, 2013 at 3:48am

sounds like a message-ordering problem– without posting a patch can’t really know for sure– you can also use the debugger to check whats going on

#267747

You must be logged in to reply to this topic.