Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; '(although': 0.09; 'subject:howto': 0.09; 'windows,': 0.09; 'alarm': 0.16; 'clock.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'invokes': 0.16; 'one)': 0.16; 'picks': 0.16; 'subject:simple': 0.16; 'wrote:': 0.17; 'do.': 0.21; 'received:209.85.214.174': 0.21; 'clock': 0.22; 'recognize': 0.22; '15,': 0.23; 'random': 0.24; 'command': 0.24; 'header:In-Reply-To:1': 0.25; '(see': 0.27; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'invoke': 0.29; 'up.': 0.31; 'file': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'screen': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'visual': 0.36; 'useful': 0.36; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'application': 0.40; 'header:Received:5': 0.40; 'easy': 0.60; 'skip:u 10': 0.60; 'jul': 0.65; 'madness': 0.84; 'modes:': 0.84; 'plays': 0.84; 'hate': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5HIFKQl6N+HkR14ZTE3oAtbVfPK/ct/V5autjvg0sVs=; b=PW9N3++7DCuAvz1CiaLsxp/y7BQ56qFpVYvyaonWcZ6QM8LVfyXVRgqqFIP/6mGrgF mUxooyV/SOu4DZX3FmlG0moFKfYmmGoYzpFptl3qe+iJHM+/3jvVTqhH9VrPdkr58Lbi 1wfO7VEKeXT3rY7vuJOuUEe/81jdXHdAikDTQPvuatrAlRsOr7cEjTc/xrdeImUad/RW Oi2cciP58L8rjRPNiWgVh815vA5WH/t39k9u/L+nPoqdMo74sEMavoCTxRKcbC6DU4s8 14rcvYTn+FSw3tKGcmvF201FV0+Qv9tMovLWReRfuhQ94Qu06B298hhPVgW+6MX/96eR 3UTA== MIME-Version: 1.0 In-Reply-To: <87ipdq8bz6.fsf@handshake.de> References: <5000e530$0$29995$c3e8da3$5496439d@news.astraweb.com> <87ipdq8bz6.fsf@handshake.de> Date: Sun, 15 Jul 2012 04:49:11 +1000 Subject: Re: howto do a robust simple cross platform beep From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342291754 news.xs4all.nl 6874 [2001:888:2000:d::a6]:40531 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25318 On Sun, Jul 15, 2012 at 3:54 AM, Dieter Maurer wrote: > I, too, would find it useful -- for me (although I do not hate myself). > > Surely, you know an alarm clock. Usually, it gives an audible signal > when it is time to do something. A computer can in principle be used > as a flexible alarm clock - but it is not so easy with the audible signal... > An audible signal has the advantage (over a visual one) that you can > recognize it even when you are not looking at the screen (because you > are thinking). > > Unfortunately, I had to give up. My new computer lacks a working > speaker... There's a simple cheat you can do. Just invoke some other application to produce the sound! My current alarm clock comes in two modes: it either picks a random MIDI file from Gilbert and Sullivan's "Ruddigore", or it plays the "Alice: Madness Returns" theme; in each case it just invokes the file with its default association (see the "start" command in Windows, or "gnome-open" in, well, GNOME). Of course, working speaker IS a prerequisite. ChrisA