Warning: session_start(): open(/var/lib/php/sessions/sess_5c65o4vifcsp7p63rbr1bnjogp, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
lib 1400131 // spectro edit
import net.bluecow.spectro.Clip;
import net.bluecow.spectro.Frame;
p-exp {
File mp3 = william_silent("hello");
File wav = programFile("hello.wav");
if (!wav.exists())
mp3ToWAV_jave(mp3, wav);
Clip clip = Clip.newInstance(wav);
int w = clip.getFrameCount(), h = clip.getFrameFreqSamples();
BufferedImage img = new(w, h, BufferedImage.TYPE_INT_RGB);
Rectangle region = new(0, 0, w, h);
toClipCoords(region);
int endCol = region.x + region.width;
int endRow = region.y + region.height;
for (int col = region.x; col < endCol; col++) {
Frame f = clip.getFrame(col);
for (int row = region.y; row < endRow; row++)
img.setRGB(col, row, f.getReal(row));
}
showImage(img);
}