Trouble saving FFT~ data with sfrecord~…

Apr 26, 2006 at 7:01pm

Trouble saving FFT~ data with sfrecord~…

I am trying to save fft~ data to disk using sfrecord. When I
save the data to disk and then read it back in to ifft~ it
comes out sounding different. I am setting the
sample format to float32 when I write the file but it does not
sound the same. I was wondering if someone could take a look at it
and give me some ideas. I have pasted what I have below.

Anthony

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 606 171 115 9109513 2. Play;
#P comment 606 153 100 9109513 1. Open: input fft file;
#P comment 263 171 100 9109513 3. Reocrd: fft file;
#P comment 263 153 115 9109513 2. Output: load output file;
#P user ezdac~ 509 269 553 302 0;
#P user ezdac~ 163 425 207 458 0;
#P newex 67 177 45 9109513 loadbang;
#P message 67 201 86 9109513 name sfplay_input;
#P user jsui 658 47 56 23 1 0 0 jsui_textbutton.js Open;
#P objectname bOpen[2];
#P user spectroscope~ 28 43 242 88 15 0 0 2 1 1 0 0 0 0 0 0;
#X frgb 0 0 0;
#X brgb 0 0 0;
#X rgb2 185 206 255;
#X rgb3 243 204 204;
#X rgb4 255 0 0;
#X rgb5 184 184 184;
#X rgb6 0 0 0;
#X rgb7 0 0 0;
#X rgb8 255 255 255;
#X rgb9 255 0 0;
#X rgb10 255 191 0;
#X rgb11 0 191 127;
#X rgb12 127 0 127;
#X rgb13 0 0 0;
#X range 0. 1.;
#X domain 0. 22050.;
#X done;
#P toggle 251 305 15 0;
#P user jsui 658 73 56 23 1 0 0 jsui_textbutton.js Play;
#P objectname bOpen[1];
#P hidden message 544 151 14 9109513 1;
#P hidden message 510 152 28 9109513 open;
#N sfplay~ 2 120960 0 ;
#P newobj 510 174 48 9109513 sfplay~ 2;
#P user spectroscope~ 412 43 242 88 15 0 0 2 1 1 0 0 0 0 0 0;
#X frgb 0 0 0;
#X brgb 0 0 0;
#X rgb2 185 206 255;
#X rgb3 243 204 204;
#X rgb4 255 0 0;
#X rgb5 184 184 184;
#X rgb6 0 0 0;
#X rgb7 0 0 0;
#X rgb8 255 255 255;
#X rgb9 255 0 0;
#X rgb10 255 191 0;
#X rgb11 0 191 127;
#X rgb12 127 0 127;
#X rgb13 0 0 0;
#X range 0. 1.;
#X domain 0. 22050.;
#X done;
#P message 198 201 14 9109513 1;
#P message 18 314 104 9109513 getnamed sfplay_input;
#P message 164 201 28 9109513 open;
#P user jsui 275 73 56 23 1 0 0 jsui_textbutton.js Output;
#P objectname bOutput;
#P newex 15 491 92 9109513 bgcolor 186 206 255;
#N sfplay~ 2 120960 0 sfplay_input;
#P newobj 164 226 48 9109513 sfplay~ 2;
#P objectname sfplay_input;
#P newex 509 211 70 9109513 ifft~ 512 512 0;
#P user jsui 275 99 56 23 1 0 0 jsui_textbutton.js Record;
#P objectname bRecord;
#P flonum 57 368 42 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 108 340 56 9109513 loadmess 0;
#P user jsui 275 47 56 23 1 0 0 jsui_textbutton.js Input;
#P objectname bOpen;
#P newex 239 226 76 9109513 v SampleLength;
#P newex 57 396 76 9109513 v SampleLength;
#P newex 18 339 79 9109513 sfinfo~;
#P newex 164 253 27 9109513 +~;
#P user number~ 240 361 279 376 9 139 3 2 0. 0. 0 0. 50 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P newex 250 272 125 9109513 loadmess samptype float32;
#P message 239 251 47 9109513 record $1;
#P newex 172 294 68 9109513 fft~ 512 512 0;
#P newex 239 331 56 9109513 sfrecord~ 2;
#P message 227 201 28 9109513 open;
#P comment 263 135 100 9109513 1. Input: load input file;
#P user panel 7 29 376 453;
#X brgb 255 247 207;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 388 29 350 453;
#X brgb 255 247 207;
#X frgb 0 0 0;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P fasten 25 1 17 1 534 201 543 201 574 201;
#P hidden fasten 28 0 27 0 663 146 549 146;
#P fasten 17 0 24 0 514 237 400 237 400 40 417 40;
#P connect 17 0 35 0;
#P fasten 17 0 35 1 514 263 548 263;
#P hidden fasten 27 0 25 0 549 171 515 171;
#P hidden connect 26 0 25 0;
#P hidden fasten 31 0 26 0 656 70 656 142 515 142;
#P connect 25 0 17 0;
#P fasten 5 1 4 1 206 326 290 326;
#P connect 4 0 8 0;
#P connect 29 0 4 0;
#P fasten 5 0 4 0 177 327 244 327;
#P fasten 7 0 4 0 255 299 244 299;
#P connect 6 0 4 0;
#P fasten 3 0 4 0 232 276 244 276;
#P connect 12 0 6 0;
#P hidden fasten 16 0 23 0 280 136 203 136;
#P hidden fasten 16 0 12 0 280 159 244 159;
#P hidden fasten 20 0 3 0 280 152 232 152;
#P fasten 9 0 30 0 169 279 17 279 17 38 33 38;
#P connect 9 0 34 0;
#P fasten 9 0 5 0 169 278 177 278;
#P fasten 9 0 34 1 169 417 202 417;
#P connect 18 1 9 1;
#P connect 18 0 9 0;
#P connect 21 0 18 0;
#P fasten 23 0 18 0 203 220 169 220;
#P fasten 32 0 18 0 72 220 161 220 169 220;
#P hidden fasten 13 0 22 0 280 165 23 165;
#P hidden fasten 13 0 21 0 280 145 169 145;
#P connect 33 0 32 0;
#P fasten 14 0 11 0 113 389 62 389;
#P connect 15 0 11 0;
#P connect 10 3 15 0;
#P connect 22 0 10 0;
#P window clipboard copycount 40;

#25666
Apr 27, 2006 at 3:11am

#75791
Apr 27, 2006 at 4:08pm

#75792
Apr 27, 2006 at 10:29pm

#75793
Apr 28, 2006 at 1:47am

#75794
Apr 28, 2006 at 4:52pm

The example you sent is complicated. I guess I am trying
to do something simpler. I know I have an ftt~ that produces
data, that when sent to ifft~ will resynthsize the sound.
What I don’t understand is why sfrecord~ is not recording
the data that is being given to it. Are you saying that the
latency involved in writing things to disk causes sfrecord~
to drop data? Could it be inserting silence at the beginning?

Anthony

#75795
Apr 29, 2006 at 3:57am

#75796

You must be logged in to reply to this topic.