Le 13/01/2013 18:42, Ed Kelly a écrit : > It is, by default 4000000. You can load larger files by changing the > message to soundfiler from: > > [read -resize myfile.wav sound( > > to > > [sound resize 8000000; > read myfile.wav sound( > > In short, you resize a table manually to some number of samples (here > it's 8000000) before you load a soundfile into it. > I believe there is an object called soundfileinfo~ or something that > gives you the length of a soundfile...but I can't remember off the top > of my head what it's called or where it is in pd-extended > > Alternatively, if you don't want to use the soundfile as though it > were a table (i.e. if you just want to play the file) it's better to > use [readsf~] > > Ed > > Gemnotes-0.2: Live music notation for Pure Data, now with dynamics! > http://sharktracks.co.uk/ > > ------------------------------------------------------------------------ > *From:* Ingo <[email protected]> > *To:* 'romain.darracq' <[email protected]>; 'Ingo' > <[email protected]> > *Cc:* [email protected] > *Sent:* Sunday, 13 January 2013, 14:31 > *Subject:* Re: [PD] Help to load sound > > There is a size limit for the file. I'm not sure whether this is > 4000000 or > anything else. Sombody else here might know. > > Ingo > > > > > Thank for your answer, I will trying to modificate my own error > but now > > the error message say: > > > > error: soundfiler_read: truncated to 4000000 elements > > ... you might be able to track this down from the Find menu. > > > > ....when I load sound with [soundfiler] and [tabread~ sound]..... > > > > I hope that my message is enough clear to permit you to > understand what's > > wrong???? > > > > Thanks to take the time to help me. > > > > Romain > > > >> Message du 13/01/13 12:47 > >> De : "Ingo" > >> A : "'romain.darracq'" , [email protected] <mailto:[email protected]> > >> Copie à : > >> Objet : AW: [PD] Help to load sound > >> > >> Try to use a name and path without spaces. > >> Try the most simple path first like e.g. "C:\\Shake.mp3". > >> > >> Out of the objects that you named only [mp3play~] can play back > MP3s. > >>Make sure it is a "MP3 layer III" - otherwise it won't work. > >> You could convert it to WAV for the others to be able to read it. > >> > >> Ingo > > > > > > > > Hello everybody, > > I'm starting pd, and i have always the same matter when I want > to load a > > sound, pd say me: (error: dsp: C:/Documents and > > Settings/Romain/Bureau/matrice perso/SON/musikkk/Remko Scha - (1982) > Machine > > Guitars/01 Shake.mp3: unknown or bad header format) and for all > format > > althrough i used [readsf~] or [mp3play~] or [soundfiler] > objects........ > > I have an other error's message :(error: endianness neither 'b' > nor 'l' > > ... you might be able to track this down from the Find menu.) ????? > > If someone can help me ?? > > > > Thanks > > > > Romain > > > > > > > > > > _______________________________________________ > [email protected] <mailto:[email protected]> mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list
Hello, To adapt the size of a table with [soundfiler] when you read a sound file use the -maxsize option. The value of maxsize should be greater than the size of the sound file. for example : [read -maxsize 8e+06 my_sound.wav my_target_table( | [soundfiler( With this example, your table "my_target_table" will be resize at the size of my_sound.wav (if the size of my_sound.wav is lower than 8e+06). ++ Jack
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
