FluidWaveform delete temp file

delete it right away instead of on close
nix
Ted Moore 4 years ago
parent 97b16d418f
commit 4096ff836b

@ -21,10 +21,9 @@ FluidWaveform {
sfv.readFile(SoundFile(path)); sfv.readFile(SoundFile(path));
sfv.gridOn_(false); sfv.gridOn_(false);
win.onClose_({ File.delete(path);
File.delete(path)
});
if(slices_buf.notNil,{
slices_buf.loadToFloatArray(action:{ slices_buf.loadToFloatArray(action:{
arg slices_fa; arg slices_fa;
@ -38,9 +37,10 @@ FluidWaveform {
Pen.stroke; Pen.stroke;
}; };
}); });
});
});
win.front; win.front;
});
}.play(AppClock); }.play(AppClock);
} }
} }

Loading…
Cancel
Save