Package pype :: Module beep
[frames] | no frames]

Module beep

source code

Interface to audio card via pygame
Functions
 
Logger(s, *args) source code
 
beep(freq=-1, msdur=-1, vol=0.5, risefall=20, wait=1, play=1, disable=None)
Beep the speaker using sound card.
source code
 
warble(base, t, volume=1, fmper=25, driver=None)
Make a nice warbling sound - cheapo FM
source code
Function Details

beep(freq=-1, msdur=-1, vol=0.5, risefall=20, wait=1, play=1, disable=None)

source code 

Beep the speaker using sound card.

Parameters:
  • freq - (Hz/None) tone frequency (None for noise)
  • msdur - (ms) tone duration
  • vol - (0-1) volume
  • risefall - (ms) envelope rise and fall
  • wait - (bool) block until sound has been played
  • play - (bool) true: play now; false: synthesize and cache for later
Returns:
nothing

warble(base, t, volume=1, fmper=25, driver=None)

source code 

Make a nice warbling sound - cheapo FM

Parameters:
  • base - (Hz) base frequency
  • t - (ms) duration
  • volume - (0-1) volume
  • fmper - (ms) period of modulation frequency
Returns:
nothing