Modifying point colors when using fluid.dataset~ with fluid.plotter

Hi everyone,

I’m working on a project

that uses fluid.plotter to visualize audio sample analysis through fluid.bufmfcc, fluid.bufstats and fluid.bufflatten.

I followed the documentation and managed to:

  • Set the background color with bgcolor

  • Modify point colors using pointcolor with specific identifiers

  • Generate random grey gradients for the points

The problem: In my analysis patch (see screenshot), the plotter points always appear black despite having set pointcolor with grey values. I suspect this is related to the classification or metadata of the dataset that is generated by fluid.dataset~ when it receives data from fluid.bufflatten.

What I tried:

  1. Global pointcolor - doesn’t work

  2. pointcolor $1 grey grey grey 1. for each point - only works in some cases

  3. colorscheme - has no effect

  4. Using setpoint directly instead of dump from dataset - works but is slow with large amounts of data

The question: When I use fluidataset + dump to pass data to the plotter (as in my case with 200-300 analyzed slices), where are the point colors defined? Is there a parameter in the dataset metadata or in the dictionary structure that overrides pointcolor?

In your help examples, the advanced tab shows how to assign individual colors, but when working with audio analysis datasets, the points remain black.

Does anyone have experience modifying colors when using fluid.dataset~ for analysis? Is it possible to modify the classification of points to assign different colors?

Thanks a lot!

You can change the colors (see dk.plotter from Data Knot as an example), though in that I do the slow/tedious approach of setpoint, pointcolor and pointsize for each point. This is fine for a few thousand but above that it starts getting slow.

I have been chatting with @balintlaczko about incorporating some color/size parsing into the refer method approach from the “large datasets” tab in the fluid.plotter help file. This would require changing some of the guts in there though.

Hi Rodrigo,
thanks for the suggestion! At the moment I can’t install Data Knot because I’m still on macOS Mojave. I’ll be in this setup for about another month, then I’m changing computer and moving to Max 9 at that point I’ll definitely give it a proper try.

For now I’m working with a more minimal setup, but your input is really appreciated and totally makes sense in that context.
Thanks again!

Data Knot should work on mojave and back to Max 8.6 I think.

until the new mac arrives I’m on max 8.2 :slight_smile: I’ll wait a bit to use your wonderful tool, thanks

1 Like