On 09/12/2010 09:15, gabor papp wrote:
hi Ted,thanks for adding this.i don't know much about this, but is it ok to make an assumption like this? i mean we hardcode magic numbers that 24 pulses are 1 beat and 4 beats are 1 bar.Like Greg said, it's used by (midi-position) returning a vector #(bar,beat,pulse) which a pulse is a 1/24 of a beat.it seems that you forgot to register the vector with the garbage collector that (midi-position) returns. check SchemeHelper::FloatsToScheme to see how it should be done, otherwise it leaks memory.best, gabor
Ah, that's what these mysterious macros are for :) Thanks for the tip! I've taken example on midi_cc_event() so it should be OK now.Just a tiny question before I send the file to Ted: is there a difference between returning NULL and scheme_void?
--
G.
