Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25318

Re: howto do a robust simple cross platform beep

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 <rosuav@gmail.com>
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 <mailman.2110.1342227619.4697.python-list@python.org> <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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2119.1342291754.4697.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sun, Jul 15, 2012 at 3:54 AM, Dieter Maurer <dieter@handshake.de> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

howto do a robust simple  cross platform  beep Gelonida N <gelonida@gmail.com> - 2012-07-14 03:00 +0200
  Re: howto do a robust simple  cross platform  beep Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-14 03:19 +0000
    Re: howto do a robust simple  cross platform  beep Dieter Maurer <dieter@handshake.de> - 2012-07-14 19:54 +0200
    Re: howto do a robust simple cross platform beep Chris Angelico <rosuav@gmail.com> - 2012-07-15 04:49 +1000
      Re: howto do a robust simple cross platform beep Hans Mulder <hansmu@xs4all.nl> - 2012-07-15 02:39 +0200
        Re: howto do a robust simple cross platform beep Chris Angelico <rosuav@gmail.com> - 2012-07-15 11:07 +1000
  Re: howto do a robust simple  cross platform  beep Miki Tebeka <miki.tebeka@gmail.com> - 2012-07-14 11:43 -0700
  Re: howto do a robust simple  cross platform  beep Miki Tebeka <miki.tebeka@gmail.com> - 2012-07-14 11:43 -0700
  Re: howto do a robust simple  cross platform  beep rantingrickjohnson@gmail.com - 2012-07-14 18:15 -0700
    Re: howto do a robust simple  cross platform  beep Gelonida N <gelonida@gmail.com> - 2012-07-24 23:39 +0200
    Re: howto do a robust simple cross platform beep Chris Angelico <rosuav@gmail.com> - 2012-07-25 07:52 +1000
  Re: howto do a robust simple  cross platform  beep rantingrickjohnson@gmail.com - 2012-07-14 18:15 -0700

csiph-web