kyma•tweaky . How . FindTheSampleLength

Question (or Task)

How do I find the sample length of an audio file at run time?

For example, a Sound with a Spectrum In RAM is fed by a Function Generator; the Spectrum In RAM uses and audio file as its Analysis parameter; the Function Generator uses this expression as its Trigger value "1 bpm: {60/length}" where "length" is the length in seconds of the audio file used in the Spectrum In RAM;

...Is it possible to make a variable such as "length" available to Specturm In RAM?

(I haven't come across this in the manual - my apologies if it is in there somewhere) -- SimonAmarasingham - 24 Apr 2004

Solution(s)

You can use the expression '' sampleFileDuration s. For example:

'alien threat' sampleFileDuration s

This should work on spectrum files as well.

-- CarlaScaletti - 24 Apr 200

WebForm
Question: How do I get the length of a sample at run time?
Keywords: sample length, prototype, variable, Sound, run time,

----- Revision r1.2 - 24 Apr 2004 - 22:43 GMT - CarlaScaletti
Copyright © 1999-2014 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding kyma•tweaky? Send feedback.