First time here? Check out the FAQ!
x

fileDuration value as float number

0 votes
280 views
Hi,

I need to use fileDuration in an expression to calculate the ratio between two audio files. Apparently fileDuration can only be used in a frequency parameter field.

Any tricks?
asked Mar 30, 2017 in Sound Design by malcolm-braff (Practitioner) (770 points)

1 Answer

+1 vote
 
Best answer

If you use the ratio of the two fileDurations, the units of seconds will cancel out. For example:

'count.aif' fileDuration / 'alien threat.aif' fileDuration

answered Mar 30, 2017 by ssc (Savant) (126,620 points)
selected Mar 30, 2017 by malcolm-braff
Also you can use any code in any field and remove the unit, for example: 'count.aif' fileDuration removeUnits
...