ó Afc@s¬ddlZddlZddlZdZdeZdZiJdd6dd6dd 6dd 6d d 6d d 6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d!6d d"6d#d$6d#d%6d&d'6d&d(6d)d*6d)d+6d,d-6d,d.6d/d06d/d16d2d36d2d46d5d66d5d76d8d96d8d:6d;d<6d;d=6d>d?6d>d@6dAdB6dAdC6dDdE6dDdF6dGdH6dGdI6dJdK6dJdL6dMdN6dMdO6dPdQ6dPdR6dSdT6dUdV6dWdX6dYd6dZd[6d\d]6d^d_6d`da6dbdc6ddde6dfdg6dhdi6djdk6dld>6dmdn6dodp6dqdr6dsdt6dudv6dsdw6dxdx6dydz6Zd{d|Zd}„ZeeƒZ d~„Z d„Z d€„Z d„Z d‚„Zedƒkr¨e ƒndS(„iÿÿÿÿNiiis.-tAtas-...tBtbs-.-.tCtcs-..tDtdt.tEtes..-.tFtfs--.tGtgs....tHths..tItis.---tJtjs-.-tKtks.-..tLtls--tMtms-.tNtns---tOtos.--.tPtps--.-tQtqs.-.tRtrs...tStst-tTtts..-tUtus...-tVtvs.--tWtws-..-tXtxs-.--tYtys--..tZtzs-----t0s--..--t,s.----t1s.-.-.-s..---t2s..--..t?s...--t3s-.-.-.t;s....-t4s---...t:s.....t5s.----.t's-....t6s-....-s--...t7s-..-.t/s---..t8s-.--.-t(s----.t9t)t s..--.-t_siÈcCsod}xbtdƒD]T}ttjtj||dƒdƒ}|t|d?d@ƒt|d@ƒ7}qW|S(NtidgI@i0uiiÿ(trangetinttmathtsintpitchr(toctavetsinewaveRtval((s*/usr/lib64/python2.7/Demo/scripts/morse.pytmkwave<s (*c Csñddl}y#|jtjddƒ\}}Wn@|jk rqtjjdtjddƒtjdƒnXd}t}x‰|D]\}}|dkråddl }|j |dƒ}|j d ƒ|j d ƒ|j dƒn|d kr…tt|ƒƒ}q…q…W|sjddl}|jƒ}|jd ƒ|j d ƒ|j dƒ|j|_|j|_n|r…d j|ƒg} nttjjd ƒ} xF| D]>} t| ƒ} t| ||ƒt|dƒr¡|jƒq¡q¡W|jƒdS(Niÿÿÿÿiso:p:sUsage is, [ -o outfile ] [ -p octave ] [ words ] ... s-oR/iD¬is-pRHRJtwait(tgetopttsystargvterrortstderrtwritetexittNonet defaultwavetaifctopent setframeratet setsampwidtht setnchannelsRTRLtaudiodevtAudioDevt setoutratetstoptcloset writeframestwriteframesrawtjointitertstdintreadlinetmorsetplaythasattrRU( RVtoptstargstdevtwaveRRR_Rdtsourcetlinetmline((s*/usr/lib64/python2.7/Demo/scripts/morse.pytmainEsF #             cCsEd}x8|D]0}y|t|d7}Wq tk r<q Xq W|S(NRJs(tmorsetabtKeyError(RwtresR((s*/usr/lib64/python2.7/Demo/scripts/morse.pyRoms  cCsqxj|D]b}|dkr,t|t|ƒn0|dkrKt|t|ƒnt|ttƒt|tƒqWdS(NRR'(tsinetDOTtDAHtpause(RwRtRuR((s*/usr/lib64/python2.7/Demo/scripts/morse.pyRpws   cCs(x!t|ƒD]}|j|ƒq WdS(N(RKRj(RttlengthRuR((s*/usr/lib64/python2.7/Demo/scripts/morse.pyR}scCs(x!t|ƒD]}|jtƒq WdS(N(RKRjtnowave(RtRR((s*/usr/lib64/python2.7/Demo/scripts/morse.pyR€…st__main__(RWRMRdR~RtOCTAVERzR‚RTR^RyRoRpR}R€t__name__(((s*/usr/lib64/python2.7/Demo/scripts/morse.pytsf$     (