3d oscilloscope

JesterN's icon

Hi i'm new at Jitter, i started building a 3d oscilloscope for audio signals of three sinusoidal oscillators and got stuck. I tried two ways: one is using 3 jit.gl.graphs, my problem is how to integrate their individual information in one 3d data object for display in the jit.gl.render. The second way was using a jit.poke~. although it looks nicer i casnnot manage to have a 3d display, just 2d.

I join my code for the first one because the second i not much more than the poke~ help file. Maybe you can give me some advice...

Cheers
Alberto

Max Patch
Copy patch and select New From Clipboard in Max.

Joe X Med O''s icon

can you share your version with poke~?

Matteo Marson's icon

Hey Jestern,

This might be a starting point:

Max Patch
Copy patch and select New From Clipboard in Max.

The patch captures an incoming audio stream and transforms it into a matrix (with value = amplitude and cell X coordinates = time). This works with any audio signal, but you could also consider an analytical approach if you want to visualize just sine waves.

EDIT:
This is a possible analytical approach:

Max Patch
Copy patch and select New From Clipboard in Max.


I hope this helps!

Joe X Med O''s icon

I'm also going for an XY Oscilloscope... but seems like [jit.catch~] sooner or later makes max crash. I'll give it a try to your approach, thanks.

Joe X Med O''s icon

Hey MATTEO MARSON, that second patch, would it work with signals too?

Matteo Marson's icon

Hey Joe,

no, it doesn't. It just mimics the shape of sinewaves; so, if you're planning to use signals different from sinusoids, you should refer to the first one for that job

Joe X Med O''s icon

Hey Matteo,

oh yeah... wouldn't [jit.poke~] work like the first one? or is there a way for [jit.catch~] to not crash the app?

Joe X Med O''s icon

on the first patch you provided, what does the [p trails] subpatch does?
the setup i had didn't had that and this one seems to be optimized...

Joe X Med O''s icon

the one I'm using is not with [jit.world] but with [jit.window] and [jit.render]... is it better with just [jit.world]?

Joe X Med O''s icon

Well, I edited your first patch... got it running for a long time and it was really stable...
I got it to create a sphere with 1 phasor and the sphere parametrical equation...
I'll share it here (turn the volume down a bit):

Max Patch
Copy patch and select New From Clipboard in Max.

thanks for sharing!
I'm still a bit new to [jit...] objects...