;ò
Y²Q@c           @   s3  d  Z  d Z d Z y e Wn d d f \ Z Z n Xy; d k Z d k Z d k Z d k Z d k	 l
 Z
 l Z Wn1 y e i i d e ƒ Wn e GHn X‚  n Xe i d i e i ƒ d Z e i ƒ  d Z d	 „  Z d k Z d
 k	 l Z d k l Z l Z d „  Z e d j o e e i d ƒ n d S(   sý  coerce brainwaves to a particular beat frequency

   the theory is that by playing, say, 500 Hz into the left ear and 505 Hz
   into the right, your brain picks up on the 'beat frequency' of 5 Hz and
   will attempt to 'tune' itself to that frequency. You can thus supposedly
   control your level of consciousness, producing certain chemicals on
   demand, even assist an out-of-body experience. We shall see.
   The levels, IIRC:
    Beta: 14 Hz+
    Alpha: 8 - 14 Hz
    Delta: 4 - 8 Hz
    Theta: 0 - 4 Hzs<  
    brainwave - coerce brainwaves to a particular beat frequency
    Copyright (C) 2004  John Comeau <jc@jcomeau.com>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    s5   Not all needed libraries found, upgrade or check pathi   i    N(   s   gpls	   jclicenses   %s
iÿÿÿÿc          G   s   d  S(   N(    (   s   whatever(    (    s   ./brainwave.pys
   DebugPrint8   s    (   s   arcane(   s   midis   pymidic          G   s©  d d g } yJ xC t |  d ƒ t i j p t |  d ƒ t i j o |  d }  q WWn f  }  n Xt |  ƒ d j  oM t i i	 d t
 ƒ t i i	 d t
 ƒ t i i	 d t
 ƒ t i d ƒ n t ƒ  o t t _ n t i t i d d	 ƒ ƒ } y | |  d } WnE t i i	 d
 |  d ƒ t i i	 d | d ƒ | | d } n Xy t |  d ƒ } Wn] t i i	 d |  d ƒ t i i	 d t | d ƒ ƒ t i i	 d ƒ t | d ƒ } n Xy t |  d ƒ } Wn- t i i	 d ƒ t i i	 d ƒ d } n Xt i d d ƒ } t i | d d ƒ t i | d d ƒ t i | d d ƒ t i | d d ƒ t i | d | | ƒ t i	 | d | d f ƒ t d ƒ o t i d ƒ n t d ƒ o t i	 | d | d f ƒ n t i	 | d | d f ƒ | d j oT t i | d ƒ t i	 | d | d f ƒ t i	 | d | d f ƒ t i | ƒ nM t i d ƒ t i	 | d | d f ƒ t i	 | d | d f ƒ t i | ƒ d S(   s-   generate slightly different notes in each ears   C5i   i    i   s-   Usage: %s NOTE BEAT_FREQUENCY [DURATION(ms)]
s*   Example: %s C#5 5 500 # plays for 1/2 sec
s*            %s C#5 5 # plays until control-C
s   alls   midis#   Could not map note %s to MIDI note
s   Using %s instead
i   s*   Could not understand beat frequency of %s
s   Using frequency %f instead
s*   If this is undesirable, Control-C to stop
s*   No duration or invalid duration specified
s&   Playing note forever until key is hit
s	   /dev/midis   wbs   Flutei   i   i@   s-   Delaying before starting tone to right ear...i   s7   Shutting down tone to left ear before starting right...i‘   iè  s   Hit <ENTER> to stop...N(    s   defaultss   types   argss   typess   ListTypes	   TupleTypes   lens   syss   stderrs   writes   selfs   exits
   DebugPrints   midis   arcanes   ReverseDicts   NoteMappings   notess   notes   floats   beat_frequencys   durations   pymidis   opens
   midihandles   SetChannelPrograms   SetChannelPans   SetChannelPitchFrequencys   times   sleeps   closes   pause(   s   argss   notes   beat_frequencys   defaultss   durations
   midihandles   notes(    (    s   ./brainwave.pys	   brainwaveA   sp      4


s   __main__(   s   __doc__s	   Copyrights   errormessages   Trues   Falses   syss   oss   typess   res   com.jcomeaus   gpls	   jclicenses   stderrs   writes   argvs   splits   seps   selfs   originalselfs
   DebugPrints   times   arcanes   com.jcomeau.midis   midis   pymidis	   brainwaves   __name__(   s   gpls
   DebugPrints   Falses   pymidis	   Copyrights   originalselfs   oss   selfs   errormessages	   brainwaves   midis   syss   res	   jclicenses   arcanes   times   Trues   types(    (    s   ./brainwave.pys   ?   s0   $				>