Hi list,
I am using the audio player readanysf~ from August Black and i have some question:
for the last outlet we have (samplerate, lenght in seconds, and others..)
the length in seconds of the player is related to speed=1
if i change the speed for example speed=0.20 obsviously the length of the file played is going to be more big..
how much ? how can i calculate the new lenght in seconds for a 44100 audio file? this speed means 20% of 44100 samples per second?
any help is welcome!!
best,
oscar
Hi Oscar,
According to the way readansyf~ interprets the file on disk (not a
stream from the web) the length is fixed .
If you have PD running at 44100 Hz and load a file that is 42
seconds long but has a samplerate of 22050 Hz, the output of
readanysf will still say that the file is 42 seconds long. It will
also automatically adjust the speed (resampling) to 0.5 so that it
sounds "correct" when playing at PD's rate of 44100Hz.
Also, the float output marked as "length in seconds that have been
played so far" in the help file and which incrementally updates as
you play the file....really is "position in seconds" inside the file
relative to the sound file's internal samplerate. This might be a
bit confusiong.
So, you have 4 variables to deal with.
1) samplerate of audio file
2) samplerate of pd
3) speed of readanysf that can adjust the audiofile samplerate
4) length of file in seconds
If I am not mistaken, to get the total perceived duration of
playtime, the formula should then be:
1/speed * length of file in seconds * youraudiofile_samplerate/pdsamplerate
-august.
Hi list,
I am using the audio player readanysf~ from August Black and i have some question:
for the last outlet we have (samplerate, lenght in seconds, and others..)
the length in seconds of the player is related to speed=1
if i change the speed for example speed=0.20 obsviously the length of the file played is going to be more big..
how much ? how can i calculate the new lenght in seconds for a 44100 audio file? this speed means 20% of 44100 samples per second?
any help is welcome!!
best,
oscar
--
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi August,
thanks for the clarifications and the formula..
only for comments; I like to force readanysf~ with high valors to the speed i mean 20 o 25 ( up of these valors crash the dsP:) It generate interesting textures (with longer files) Did it some kind of time-stretching when its running with this high speeds ?? or something similar..
best,
oscar
t
2010/10/11, august august@alien.mur.at:
Hi Oscar,
According to the way readansyf~ interprets the file on disk (not a stream from the web) the length is fixed .
If you have PD running at 44100 Hz and load a file that is 42 seconds long but has a samplerate of 22050 Hz, the output of readanysf will still say that the file is 42 seconds long. It will also automatically adjust the speed (resampling) to 0.5 so that it sounds "correct" when playing at PD's rate of 44100Hz.
Also, the float output marked as "length in seconds that have been played so far" in the help file and which incrementally updates as you play the file....really is "position in seconds" inside the file relative to the sound file's internal samplerate. This might be a bit confusiong.
So, you have 4 variables to deal with.
1) samplerate of audio file 2) samplerate of pd 3) speed of readanysf that can adjust the audiofile samplerate 4) length of file in seconds
If I am not mistaken, to get the total perceived duration of playtime, the formula should then be:
1/speed * length of file in seconds * youraudiofile_samplerate/pdsamplerate
-august.
Hi list,
I am using the audio player readanysf~ from August Black and i have some question:
for the last outlet we have (samplerate, lenght in seconds, and others..)
the length in seconds of the player is related to speed=1
if i change the speed for example speed=0.20 obsviously the length of the file played is going to be more big..
how much ? how can i calculate the new lenght in seconds for a 44100 audio file? this speed means 20% of 44100 samples per second?
any help is welcome!!
best,
oscar
--
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
--
Hi August,
thanks for the clarifications and the formula..
only for comments; I like to force readanysf~ with high valors to the speed i mean 20 o 25 ( up of these valors crash the dsP:)
Cool. Abuse it, please. But, what do you mean by crashing dsp?
Ideally, readanysf~ shouldn't crash, ever. Please let me know if it
does.
I'm not sure I understand you correctly. Does it crash PD all
together, or does it lock up your DSP? The later could happen if
your computer is too slow, I imagine.
And, just so you know, there is an upper and lower limit to how much
you can speed up or slow down a file.
It can be as high as 256 or as low as 1/256 .
It generate interesting textures (with longer files) Did it some kind of time-stretching when its running with this high speeds ?? or something similar..
It simply uses libresample to resample the audio file.
So, yes, it "stretches" or "shrinks" the audio.
-a.
Hi August,
Cool. Abuse it, please. But, what do you mean by crashing dsp? Ideally, readanysf~ shouldn't crash, ever. Please let me know if it does.
I'm not sure I understand you correctly. Does it crash PD all together, or does it lock up your DSP? The later could happen if your computer is too slow, I imagine.
Sorry for confusing; the crashed was with a lot readanysf~ at high speed and a lot of other proccess running in extreme and for shure that something i did wrong.... it is irrelevant this crashed....
But i test readanysf in more isolated conditions:
the internal buffer = 24)
in this case working in a good way max speed= 20 or 25 up of this valours starting to "lock up" DSP and the loop mode doesn't work and I have to push "stop" and then "play" but then start at speed=1.......
a blocksize= 256) the same that in the help file..
working much better i can play at speed=100-120
-from speed=1 to speed=60 in this range it works perfect also
with the loop mode on -from speed=60 to speed=120 it is more unestable, with some glitches, and sometimes "lock up" DSP, when "lock up" the same that before ( the loop mode doesn't work and I have to push "stop" and then "play" and start to play but at speed=1....... and "the procesor" go to 50/60%...
I am in Ubuntu 9.10 Karmic Koala
acer aspire 1810TZ
Intel Pentium processor SU4100 ( for shure this is not so fast)
4GB ram
readanysf~ 0.36
oscar
2010/10/12, august august@alien.mur.at:
Hi August,
thanks for the clarifications and the formula..
only for comments; I like to force readanysf~ with high valors to the speed i mean 20 o 25 ( up of these valors crash the dsP:)
Cool. Abuse it, please. But, what do you mean by crashing dsp? Ideally, readanysf~ shouldn't crash, ever. Please let me know if it does.
I'm not sure I understand you correctly. Does it crash PD all together, or does it lock up your DSP? The later could happen if your computer is too slow, I imagine.
And, just so you know, there is an upper and lower limit to how much you can speed up or slow down a file.
It can be as high as 256 or as low as 1/256 .
It generate interesting textures (with longer files) Did it some kind of time-stretching when its running with this high speeds ?? or something similar..
It simply uses libresample to resample the audio file.
So, yes, it "stretches" or "shrinks" the audio.
-a.
Hi August,
Cool. Abuse it, please. But, what do you mean by crashing dsp? Ideally, readanysf~ shouldn't crash, ever. Please let me know if it does.
I'm not sure I understand you correctly. Does it crash PD all together, or does it lock up your DSP? The later could happen if your computer is too slow, I imagine.
Sorry for confusing; the crashed was with a lot readanysf~ at high speed and a lot of other proccess running in extreme and for shure that something i did wrong.... it is irrelevant this crashed....
But i test readanysf in more isolated conditions:
-readanysf~ with default creation arguments (samples per frame in
- Pd running at 44100 samplerate and default block size
- Audio file 44100 stereo
the internal buffer = 24)
in this case working in a good way max speed= 20 or 25 up of this valours starting to "lock up" DSP and the loop mode doesn't work and I have to push "stop" and then "play" but then start at speed=1.......
- -with the same Pd samplerate and audio file -readanysf~ with (sample per frame in the internal buffer=32 and
a blocksize= 256) the same that in the help file..
working much better i can play at speed=100-120 -from speed=1 to speed=60 in this range it works perfect also
with the loop mode on -from speed=60 to speed=120 it is more unestable, with some glitches, and sometimes "lock up" DSP, when "lock up" the same that before ( the loop mode doesn't work and I have to push "stop" and then "play" and start to play but at speed=1....... and "the procesor" go to 50/60%...
I am in Ubuntu 9.10 Karmic Koala
acer aspire 1810TZ Intel Pentium processor SU4100 ( for shure this is not so fast) 4GB ram
readanysf~ 0.36
please download and try the same things with the latest readanysf~
http://aug.ment.org/readanysf/download.php http://aug.ment.org/software/readanysf~0.42.tar.gz
also, note that you could run into a DSP lockup if your harddrive is too slow and it can't read the files fast enough. Also, for doing what you intend to do, you might want to increase the number of audio frames and the samples per frame.
Hi August,
yes, with the las versiĆ³n (0.42) run perfectaly also at 256 speed maybe too much for glitchy intentions.. :)
salut!
2010/10/12, august august@alien.mur.at:
Hi August,
Cool. Abuse it, please. But, what do you mean by crashing dsp? Ideally, readanysf~ shouldn't crash, ever. Please let me know if it does.
I'm not sure I understand you correctly. Does it crash PD all together, or does it lock up your DSP? The later could happen if your computer is too slow, I imagine.
Sorry for confusing; the crashed was with a lot readanysf~ at high speed and a lot of other proccess running in extreme and for shure that something i did wrong.... it is irrelevant this crashed....
But i test readanysf in more isolated conditions:
-readanysf~ with default creation arguments (samples per frame in
- Pd running at 44100 samplerate and default block size
- Audio file 44100 stereo
the internal buffer = 24)
in this case working in a good way max speed= 20 or 25 up of this valours starting to "lock up" DSP and the loop mode doesn't work and I have to push "stop" and then "play" but then start at speed=1.......
- -with the same Pd samplerate and audio file -readanysf~ with (sample per frame in the internal buffer=32 and
a blocksize= 256) the same that in the help file..
working much better i can play at speed=100-120 -from speed=1 to speed=60 in this range it works perfect also
with the loop mode on -from speed=60 to speed=120 it is more unestable, with some glitches, and sometimes "lock up" DSP, when "lock up" the same that before ( the loop mode doesn't work and I have to push "stop" and then "play" and start to play but at speed=1....... and "the procesor" go to 50/60%...
I am in Ubuntu 9.10 Karmic Koala
acer aspire 1810TZ Intel Pentium processor SU4100 ( for shure this is not so
fast) 4GB ram
readanysf~ 0.36
please download and try the same things with the latest readanysf~
http://aug.ment.org/readanysf/download.php http://aug.ment.org/software/readanysf~0.42.tar.gz
also, note that you could run into a DSP lockup if your harddrive is too slow and it can't read the files fast enough. Also, for doing what you intend to do, you might want to increase the number of audio frames and the samples per frame.