Page tree
Skip to end of metadata
Go to start of metadata

samples2ms(samples)

Description

Function to convert a number of samples to the equivalent duration in milliseconds. The sample rate at which the plug-in runs is taken into account.

Available in: Processor.

Arguments

samplesThe number of samples.number

Return Values

Returns the specified number of samples as duration in milliseconds.

Example

-- print the project sample rate in ms
function onNote(event)
	fs = getSamplingRate()
    print(samples2ms(fs), "ms")
end
See Also: ms2samples, ms2beat, beat2ms

1 Comment