Hi!
It doesn't work well for me. What I discovered with your patch is that 
soundfiler can't skip too far. For example, if I send it a message with 2M skip 
flag and 1999999 nframes flag, the ramp does not climb up to the top. You can 
compare the values with [tabread] objects (see the attached patch). Will you 
please, check that on your system?Thank you very much for your time!Cheers!
Hrvoje Radnic
http://soundcloud.com/sumovi-protiv-valova 
00385(0)915225162

      From: Lucas Cordiviola <[email protected]>
 To: "[email protected]" <[email protected]> 
Cc: "[email protected]" <[email protected]>
 Sent: Wednesday, August 2, 2017 12:52 AM
 Subject: Re: [PD] Writing part of large table to file
   
Use this graphical patch, "array-sound.pd" attached .it looks like this:



Will help to describe the issue.
Hope it helps.

Mensaje telepatico asistido por maquinas.


On 8/1/2017 2:52 PM, [email protected] wrote:

What I hear is not the part I wanted to save ie I need the part from the end of 
a table, getting the part from the beginning instead. And it is shorter. I 
can't find the pattern in that offset, so can't describe the bug precisely. 
Poslano s mojeg iPhonea
01.08.2017., u 13:24, Lucas Cordiviola <[email protected]> napisao:


I'm on win8.1Do you clear the array when loading files that are smaller than 
the one you loaded previously?Can you describe what is that you are hearing 
that makes you feel there's a bug?
Mensaje telepatico asistido por maquinas.On 8/1/2017 8:13 AM, Hrvoje Radnic 
wrote:

Yes, the playback part [readsf~] is bad, but that was not an issue. I made a 
mistake with pasting the part from my patch.
Regarding the soundfiler, I still have no clue what is wrong with my patch. 
Maybe the problem is OS specific? I can't test it on my Win machine right now. 
What's your OS? I am on ubuntu sudio.
Cheers!

 Hrvoje Radnic
http://soundcloud.com/sumovi-protiv-valova
00385(0)915225162

From: Lucas Cordiviola <[email protected]>
To: Hrvoje Radnic <[email protected]>; "[email protected]" 
<[email protected]> 
Sent: Tuesday, August 1, 2017 12:21 PM
Subject: Re: [PD] Writing part of large table to file

I've corrected the [readsf~] but the rest is OK.Didn't have troubles with 
-nframes > 1.8M. Works Ok with 2.5M.The only limitation that I know for integer 
numbers (on Pd's control level) is that you can't exceed the 16777216 number.
See attached.Salutti,
Lucarda.
Mensaje telepatico asistido por maquinas.On 8/1/2017 6:10 AM, Hrvoje Radnic 
wrote:

Sure, it is in the attachment.Thank you for your time!
 Hrvoje Radnic
http://soundcloud.com/sumovi-protiv-valova
00385(0)915225162

From: Lucas Cordiviola<[email protected]>
To: "[email protected]" <[email protected]> 
Sent: Tuesday, August 1, 2017 12:09 AM
Subject: Re: [PD] Writing part of large table to file

Can you attach a patch that demonstrate the issue?Do not attach the sound-file, 
we fill your specified n of samples.Salutti,
Lucarda.
Mensaje telepatico asistido por maquinas.On 7/31/2017 6:31 AM, Hrvoje Radnic 
via Pd-list wrote:

Ok, I got some success with soundfiler, but,  found out that I can write a file 
only if the last sample of the file is smaller than 1 800 000 approximately 
(-nframes flag). Anyone had similar experience? Is it a bug?Thanks!
 Hrvoje Radnic
http://soundcloud.com/sumovi-protiv-valova
00385(0)915225162

From: Jack<[email protected]>
To: [email protected] 
Sent: Monday, July 31, 2017 10:13 AM
Subject: Re: [PD] Writing part of large table to file

Hello,

Did you see the help file about [soundfiler] to save a table in binary
sound file ?
It is easy to copy/paste a part of table with objects [array].
++

Jack



Le 30/07/2017 à 12:14, Hrvoje Radnic via Pd-list a écrit :
> Dear List!
> 
> I would like to save a part of very large table into the audio file.
> Let's say, I have a 10 million points sized table and want to save a
> file to disk which contains the part of that table, ranging from 2M to
> 3M point. I know how to do it by recording the audio in real time, but
> would like to do it "instantly". 
> 
> Thank you for your suggestions!
>  
> Hrvoje Radnic












   
#N canvas 469 389 876 610 10;
#X obj 530 50 array define zx 4e+06;
#X obj 215 252 /;
#X msg 207 220 1;
#X msg 255 218 4e+06;
#X obj 177 356 array set zx;
#X obj 275 293 f;
#X obj 309 293 + 1;
#X msg 291 255 0;
#X obj 157 294 f;
#X msg 173 256 0;
#X obj 191 294 +;
#X obj 175 123 until;
#X msg 175 100 4e+06;
#X obj 172 147 t b b;
#X obj 211 68 t b b b b b;
#X obj 402 38 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 454 198 soundfiler;
#X obj 532 371 array define soundf;
#X msg 508 250 read -resize zx.wav soundf;
#X text 33 17 1) write a 4 million samples array with a ramp up :;
#X text 522 28 2) double-clik to see ramp up;
#X text 453 100 3) write 2 millon samples wav from 500k to 2M500k;
#X text 522 228 4) load zx.wav;
#X text 535 343 5) double-clik to see file ramp up;
#X msg 465 125 write -wave -skip 2e+06 -nframes 2e+06 zx.wav zx;
#X obj 169 484 tabread zx;
#X obj 337 488 tabread soundf;
#X msg 172 446 2e+06;
#X floatatom 169 506 9 0 0 0 - - -, f 9;
#X msg 356 453 0;
#X floatatom 329 510 9 0 0 0 - - -, f 9;
#X msg 254 439 4e+06;
#X msg 416 454 2e+06;
#X text 198 535 compare the first and last point amplitude in each
graph;
#X connect 1 0 10 1;
#X connect 2 0 1 0;
#X connect 3 0 1 1;
#X connect 5 0 6 0;
#X connect 5 0 4 1;
#X connect 6 0 5 1;
#X connect 7 0 5 1;
#X connect 8 0 10 0;
#X connect 8 0 4 0;
#X connect 9 0 8 1;
#X connect 10 0 8 1;
#X connect 11 0 13 0;
#X connect 12 0 11 0;
#X connect 13 0 8 0;
#X connect 13 1 5 0;
#X connect 14 0 12 0;
#X connect 14 1 2 0;
#X connect 14 2 3 0;
#X connect 14 3 9 0;
#X connect 14 4 7 0;
#X connect 15 0 14 0;
#X connect 18 0 16 0;
#X connect 24 0 16 0;
#X connect 25 0 28 0;
#X connect 26 0 30 0;
#X connect 27 0 25 0;
#X connect 29 0 26 0;
#X connect 31 0 25 0;
#X connect 32 0 26 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to