Reference+
Name
frames()
Class
SoundFile
Description
Returns the number of frames of this soundfile.
Examples
import processing.sound.*; SoundFile file; void setup() { size(640, 360); background(255); // Load a soundfile from the data folder of the sketch and get the number of frames file = new SoundFile(this, "sample.mp3"); println("Frames= " + file.frames() + " frames"); } void draw() { }
Syntax
soundfile.frames()
Return
int
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.