Changes

Jump to navigation Jump to search
Line 466: Line 466:  
The doorbell and remote doorbell showed how to generate an audio tone in Turtle Art, the following code in Pippy can also generate a tone (from Guzman Trinidad)
 
The doorbell and remote doorbell showed how to generate an audio tone in Turtle Art, the following code in Pippy can also generate a tone (from Guzman Trinidad)
   −
  import pippy*
+
  import pippy
 
   
  f= input ("Ingrese la frecuencia a generar (Hz):")
 
  f= input ("Ingrese la frecuencia a generar (Hz):")
   
  t= input ("Ingrese el intervalo de tiempo (s):")
 
  t= input ("Ingrese el intervalo de tiempo (s):")
   
  pippy.sound.playSine(f, 5000, t, 0)
 
  pippy.sound.playSine(f, 5000, t, 0)
   
  pippy.sound.audioOut()
 
  pippy.sound.audioOut()
  
2,486

edits

Navigation menu