Skip to content

Commit 7954685

Browse files
committed
FIX Windows FluidWaveform colour discrepency: CSV newline management flag needed
1 parent 8d39e67 commit 7954685

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

release-packaging/Classes/FluidWaveform.sc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ FluidWaveformImageLayer {
259259

260260
loadColorFile {
261261
arg filename;
262-
^CSVFileReader.readInterpret(FluidFilesPath("../color-schemes/%.csv".format(filename))).collect{
262+
^CSVFileReader.readInterpret(FluidFilesPath("../color-schemes/%.csv".format(filename)),true).collect{
263263
arg row;
264264
Color.fromArray(row);
265265
}

test/FluidWaveform raster scratch paper.scd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
arg rasterBuffer;
3131
var colors;
3232

33-
colors = CSVFileReader.readInterpret(FluidFilesPath("../color-schemes/%.csv".format("CET-L16"))).collect{
33+
colors = CSVFileReader.readInterpret(FluidFilesPath("../color-schemes/%.csv".format("CET-L16")),true).collect{
3434
arg row;
3535
Color.fromArray(row);
3636
};
@@ -71,3 +71,8 @@ fork({
7171
~raster.(~rasterBuffer);
7272
},AppClock);
7373
)
74+
75+
// smaller test
76+
~simplebuffer = Buffer.loadCollection(s, 11.collect{|i|[i/10, i.linexp(0,10,-120.dbamp,-20.dbamp)]}.flatten, 2)
77+
~simplebuffer.plot
78+
~raster.(~simplebuffer);

0 commit comments

Comments
 (0)