[PD] counting how many times an audio file is looped

Simon Iten itensimon at gmail.com
Sat Oct 6 01:01:32 CEST 2012


You only need vline or phasor, not both. The handling is a bit different
though. Vline works via messages and creates arbitrary ramps. E.g. From 0
to 44100 in 1000 ms. Phasor just ramps from 0 to 1 in a time you supply as
a frequency. You then multiply it's output and feed the tabread
On Oct 6, 2012 12:26 AM, "Rick T" <ratulloch at gmail.com> wrote:

> Yes I am using tabread4~
>
> I looked up vline~ in the help but it seems to be missing some info on the
> second and third inlets.  Is there some more information about this
> object.  I'm using PD .42.5 extended on ubuntu 10.04 64bit
>
> I tried doing this but I get an error "error: can't connect signal outlet
> to control inlet"
> phasor~
> |
> *~
> |
> vline~  (error: can't connect signal outlet to control inlet)
> |
> tabread4~
>
> Thanks
>
>
>
>
> On Fri, Oct 5, 2012 at 11:42 AM, Charles Henry <czhenry at gmail.com> wrote:
>
>> On Fri, Oct 5, 2012 at 4:25 PM, Rick T <ratulloch at gmail.com> wrote:
>> > Greetings All
>> >
>> > I'm trying to count how may times an audio file is looped then cause it
>> to
>> > stop after say 6 loops.
>> >
>> > 1) I plan on using the "select" object to compare the sample size
>> (22050) to
>> > where the playing wav file is located
>> > 2) create a bang into "cup" object from the "select" object, this will
>> count
>> > the number of loops.
>> > 3) Use another "select" object to stop when it reaches 6
>> >
>> > The problem I'm having is trying to compare the sample size to where the
>> > playing wav file is currently located.
>> > I can get the sample size using the "wavinfo" object but how do I get
>> the
>> > current location of the playing wav file.
>> > (I tried using the "metro 50" object with the "snapshot~" object) but
>> the
>> > numbers don't seem be matching up
>> >
>> > Is there another way I should be doing this
>> >
>> > Thanks
>>
>> Hi Rick
>>
>> I think you should use [vline~] to feed [tabread4~].  As long as you
>> get the number of samples up front with wavinfo, like you mentioned,
>> you can just schedule those 6 loops to play with vline~ (no need to
>> count and stop the loop), and you always know what sample is playing,
>> because it's the value of the vline~ output.
>>
>> You may also want another vline~ to fade-in and fade-out.
>>
>> Chuck
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121006/0d571d4b/attachment.htm>


More information about the Pd-list mailing list