[PD] sfplay and file length
oliver
oliver at klingt.org
Tue Nov 30 16:26:41 CET 2004
Matthew Shanley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> I'm starting to use zexy's sfplay, and it seems great. I'm interested in
> using the "goto <byte>" feature, but I'm having a hard time figuring out
> how to determine the length of the sound file so I know the range I can
> jump around within. Any suggestions?
you will need the object [soundfile_info] to determine a soundfile's
length. it's part of the IEMLIB library.
http://pd.iem.at/iemlib/
btw: [readsf~] can also "jump around" in a soundfile with a little
message tweaking. i prefer that to [sfplay] for 2 reasons:
1.) it seems to respond faster than [sfplay]
2.) it runs in a seperate thread outside pd, so it doesn't draw CPU
power from PD itself.
overall it appears smoother to me. just my experience.
>
> While I'm at it, what's the right inlet in sfplay for?
sorry. dunno either.
ciao
oliver
>
>
> Thanks
> matt
>
> - --
> Matthew Shanley
> little secrets records and stuff
> http://littlesecretsrecords.com/
> E-mail: matthewshanley at littlesecretsrecords.com
>
> GnuPG Public Key ID: 0x4DA4915C
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFBq/8kIrtD7k2kkVwRArb8AJ0be8bYGGVmrqsdFoSbLlXgyDgHIwCgl8dt
> ro+vTVBItYrAzQiECYRn5cY=
> =3+Zg
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://iem.at/cgi-bin/mailman/listinfo/pd-list
>
>
--
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
///////////// http://klingt.org/ground/lift ////////////
\\\\\\\\\\\\\ http://www.charmant-rouge.com \\\\\\\\\\\\
///////// http://klingt.org/executive-ensemble /////////
\\\\\\\\\\\\\ http://klingt.org/~oliver/prb \\\\\\\\\\\\
////////////////////////////////////////////////////////
\\\\\\\\ LIVE-BUILDER (music improvisation tool): \\\\\\
/////// http://klingt.org/~oliver/pd/live-builder //////
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
More information about the Pd-list
mailing list