| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### speed()
Examples |  |
    BSound clong;

    void setup() {
      clong = loadSound("clong.wav");
      repeat(clong);
    }

    void loop() {
      if(mousePressed) {
        speed(clong, 5.0);
      } else {
        speed(clong, 1.0);
      }
    }
Description |  | Changes the playback speed of the selected object. A parameter value of 1.0 makes no changes, 0.5 halves the speed, and 2.0 doubles the speed.
Syntax |  |
    speed(object, s);
Parameters |  |
object |  | BSound: the name of the sound object
s |  | float: new speed multiplier
Usage |  | Web & Application
Related |  | BSound volume()

| © 2003- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |