You can use jit.poke~ to put the signal directly from the 2D matrix
into the buffer. For one cell per sample, use phasor~ with frequency
(sample rate / width) to index dim and so on.
On Aug 2, 2008, at 9:20 AM, Alexandre wrote:
> What would be the most simple and efficient way to convert
> "[jit.matrix 4 char 1200 700]" to : "[jit.matrix 4 float32 840000
> 1]" ? (1200*700=840000)
> (This is to put this matrix into jit.buffer~ after.)
> Thanks by advance,
Well, perhaps it was not really clear, but i don't want to deal with any audio here, i want to convert the stuff as instantaneously as possible. Just forget my parenthese about buffer~.
The question is only:
What is the most Efficient way to convert a 2D matrix of 1200*700 pixels like [jit.matrix 4 char 1200 700] to a 1D matrix of 840000 pixels(*), and float32 : [jit.matrix 4 float32 840000 1] ?