Tag Info

New answers tagged

2

You can calculate the duration by counting the number of samples, and dividing by the sampling rate. For example, importing the stereo file="soundfile.wav" sr = Import[file, "SampleRate"]; {channels, samples} = Dimensions[Import[file, "Data"]]; duration = samples/sr // N


2

I looked in the code of new JLink package of the Mathematica 10.0.1: it has 2 more evaluations under the hood per each evaluation and discards the answer from the Kernel. One is a preEval method that sets the evaluation format and another is postEval. MathSessionTextPane.this.ml.evaluate("{JLink`Private`cfv, JLink`Private`sopts, JLink`Private`ddf} = ...



Top 50 recent answers are included