Changes

Line 464: Line 464:     
==The XO as an audio signal generator==
 
==The XO as an audio signal generator==
The doorbell, remote doorbell and Teletype show how to generate an audio tone in Turtle Art, the following code in the Pippy Activity can generate a tone of variable duration (from Guzman Trinidad).
+
The doorbell, remote doorbell and Teletype show how to use the Python block to generate an audio tone in Turtle Art.
 +
 
 +
[[File:2tone python.jpg]]
   −
import pippy
  −
f= input ("Ingrese la frecuencia a generar (Hz):")
  −
t= input ("Ingrese el intervalo de tiempo (s):")
  −
pippy.sound.playSine(f, 5000, t, 0)
  −
pippy.sound.audioOut()
      
The volume level can be amplified with a CD or tape player or amplified PC speakers. This can be used for resonance experiments including Chladni plates.
 
The volume level can be amplified with a CD or tape player or amplified PC speakers. This can be used for resonance experiments including Chladni plates.
       +
===Gliding tone===
 
Here is the program to generate a sawtooth gliding tone, be sure to load the Python block with the inbuilt Python code sample <i> sinewave.py </i>
 
Here is the program to generate a sawtooth gliding tone, be sure to load the Python block with the inbuilt Python code sample <i> sinewave.py </i>
   −
[[File:Glidingtone.jpg]]  [[File:2tone python.jpg]]
+
[[File:Glidingtone.jpg]]   
    
[[File:Turtle Art Activity gliding tone.doc]] ta project as doc
 
[[File:Turtle Art Activity gliding tone.doc]] ta project as doc
       +
===Mouse slider tone===
 
Here is the code to use the mouse to adjust a slider which sets the tone. Be sure to load the first Python block with the inbuilt Python sample <i>push_mouse_event.py</i> and the second with the inbuilt Python code sample <i> sinewave.py </i>
 
Here is the code to use the mouse to adjust a slider which sets the tone. Be sure to load the first Python block with the inbuilt Python sample <i>push_mouse_event.py</i> and the second with the inbuilt Python code sample <i> sinewave.py </i>
   Line 489: Line 488:     
[[File:Glidingtoneoutput.jpg]]
 
[[File:Glidingtoneoutput.jpg]]
 +
 +
 +
===Using Pippy to generate a tone===
 +
The doorbell, remote doorbell and Teletype show how to generate an audio tone in Turtle Art, the following code in the Pippy Activity can generate a tone of variable duration (from Guzman Trinidad).
 +
 +
import pippy
 +
f= input ("Ingrese la frecuencia a generar (Hz):")
 +
t= input ("Ingrese el intervalo de tiempo (s):")
 +
pippy.sound.playSine(f, 5000, t, 0)
 +
pippy.sound.audioOut()
    
==FSK Teletype==
 
==FSK Teletype==
2,486

edits