Visualizing Waveforms

Patrick Horton's icon

I am attempting to create a visualization of waveforms. I have use [jit.catch~] and [jit.graph], but I am having trouble getting multiple audio files to be represented in the same [jit.pwindow]. Ideally each waveform would be a different color and show up in a specific part of the scree (see my scribbles below). I would also love to have them be displayed in a separate display, so that I could view the patch on my laptop and project the waveform visualization on a projector.

I am very new to jitter. Any help would be much appreciated!

GrooveAbleVizTest.maxpat
Max Patch
Visualization

This is a general idea of what I am hoping for...

Jean-Francois Charles's icon

Hi, I'm going to suggest a couple of resources to make a first version of what you want: Jitter "What is a Matrix", Jitter tutorial 14, or for a quick and dirty way, [jit.glue]'s help file.
When you have spent more time with Jitter, you will be interested in Open GL and GPU-based processing, but do a first couple of versions, use "traditional" (non-gl) Jitter programming.
Forum tip: if you insert "Copy-Compressed" short excerpt of code in your post instead of a maxpat file, more people are going to have a look at your code.

LSka's icon

[jit.glue] and [jit.window] are the objects you need

Patrick Horton's icon

Thank you so much for the comments. I will take a look at all those objects and resources!

Patrick Horton's icon

I think I have a better understanding of a matrix now and the [jit.glue] worked really well!

I am wondering why the lines are blinking in the jit.window and not in the individual pwindows... see video. Any ideas?

Screen Recording 2020-02-09 at 7.54.45 PM.mov
video/quicktime 4.77 MB
blinking [jit.window]

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

Jean-Francois Charles's icon

Not sure it will solve your problem, still here are a couple of idea: use just one [qmetro] instead of 3. That way, you know what you are updating when.

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

You could replace [if $1>0 then 0 else 1] with a more Max-idiomatic [<= 0.]

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

Patrick Horton's icon

Jean-Francois, thank you for those ideas. That is really helpful!