I am new to Arduino and do not have much experience with C. I am trying to generate triangle or sine pulses within a sketch. I need to produce a pulse of one full wavelength triggered by a digital input pin read in a loop or by generating an interrupt from a signal change on a pin. I have found some useful code to produce the sine or triangle waves with wavetables and PWM but can not figure out how to generate a single pulse at a precise time within a loop that is polling the input pin or when an interrupt is generated. I am sure I could find the answer if I look long enough but I have a satellite internet connection and it is unbelievably slow. I am hoping that someone can point me closer to the solution than I can get by hours and hours of searching. I have a sketch by Adrian Freed that I can get to produce tones but can not figure out how to get it to produce single wavelength pulses. here is the link to the sketch. Maybe someone can suggest how to get this to produce the pulses that I need in response to an input pin.
http://adrianfreed.com/content/arduino-sketch-high-frequency-precision-sine-wave-tone-sound-synthesis