FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Linguagem \ Ambiente \ Bibliotecas \ Comparação
 
   
   
Back  
   
  Referência para Processing (BETA) version 91+. Se você tem uma versão anterior, utilize a documentação inclusa em seu software. Se você encontrar quaisquer erros ou tiver quaisquer comentários, leve ao nosso conhecimento.  
Class   PSound
   
Nome  

volume()

   
Exemplos  
PSound mySound; 
 
void setup() { 
  mySound = loadSound("arigato.wav"); 
  mySound.loop(); 
} 
 
void draw() { 
  // Sets the volume to 0.0 (silent) when the 
  // mouse is on the left edge of the window 
  // and to 1.0 (maximum) when the mouse is on 
  // the right edge of the window. 
  mySound.volume(float(mouseX)/width); 
} 

Descrição   Sets the volume of the sound playback where setting the parameter to 1.0 is the sound's actual loudness with descending numbers decreasing the volume until the parameter reaches 0.0, which is the smallest valid value.
   
Sintaxe  
sound.volume(amp)
   
Parâmetros  
sound   PSound: any variable of type PSound

amp   float: value between 0.0 and 1.0

   
Utilização   Web & Applicações
   
 
 






   
 
Original em inglês atualizado em: Fri Jul 15 16:36:02 PDT 2005
Tradução para o Português do Brasil: Luiz Ernesto Merkle
Atuallizada em: 30 de novembro de 2005, 9h00 (BRST)
 
 








Creative Commons License
 
  Processing é um projeto aberto iniciado por Ben Fry e Casey Reas  
  © Info