!include once #1018630 // Spectro Edit static Pair spectro_minMaxValues(Clip clip) ctex { double min = Double.POSITIVE_INFINITY, max = Double.NEGATIVE_INFINITY; for (int col = 0; col < clip.getFrameCount(); col++) { net.bluecow.spectro.Frame f = clip.getFrame(col); for (int row = 0; row < f.getLength(); row++) { double d = f.getReal(row); min = min(min, d); max = max(max, d); } } ret pair(min, max); }