Popular recipes tagged "meta:requires=winsound"http://code.activestate.com/recipes/tags/meta:requires=winsound/2013-08-13T21:08:45-07:00ActiveState Code RecipesPachebel Cannon in C (Python)
2013-08-13T21:08:45-07:00Bhttp://code.activestate.com/recipes/users/4187518/http://code.activestate.com/recipes/578640-pachebel-cannon-in-c/
<p style="color: grey">
Python
recipe 578640
by <a href="/recipes/users/4187518/">B</a>
(<a href="/recipes/tags/c/">c</a>, <a href="/recipes/tags/cannon/">cannon</a>, <a href="/recipes/tags/in/">in</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/pachebel/">pachebel</a>).
</p>
<p>only works in windows</p>
music module (Python)
2013-08-02T02:37:01-07:00Andrew Wayne Teesdale Jr.http://code.activestate.com/recipes/users/4187305/http://code.activestate.com/recipes/578620-music-module/
<p style="color: grey">
Python
recipe 578620
by <a href="/recipes/users/4187305/">Andrew Wayne Teesdale Jr.</a>
(<a href="/recipes/tags/beep/">beep</a>, <a href="/recipes/tags/music/">music</a>).
</p>
<p>a module for musical beeps</p>
Samuel F. B. Morse's Code (Python)
2012-12-06T04:20:31-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578364-samuel-f-b-morses-code/
<p style="color: grey">
Python
recipe 578364
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/code/">code</a>, <a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/morse/">morse</a>, <a href="/recipes/tags/morse_code/">morse_code</a>, <a href="/recipes/tags/morse_practice_oscillator/">morse_practice_oscillator</a>, <a href="/recipes/tags/sound/">sound</a>).
</p>
<p>Many people have heard of Morse['s] Code, and it still is a helpful skill to have in certain context, as advanced as technology has become. The following recipe shows two sample ways that it can be implemented and shows some diversity in how problems can be solved in Python or many other languages for that matter.</p>
Command Line Windows Alarm Clock (Python)
2012-12-05T23:53:49-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578362-command-line-windows-alarm-clock/
<p style="color: grey">
Python
recipe 578362
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/alarm/">alarm</a>, <a href="/recipes/tags/clock/">clock</a>, <a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/windows/">windows</a>).
</p>
<p>Using primitive but simple calculations, the alarm program below will find the offset to the time specified, sleep, and awake to run an alarm until terminated. This Windows recipe utilizes the <code>msvcrt</code> and <code>winsound</code> modules to operate and has limited use elsewhere.</p>
Countdown Timer (Python)
2012-12-06T03:24:35-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578363-countdown-timer/
<p style="color: grey">
Python
recipe 578363
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/sound/">sound</a>, <a href="/recipes/tags/timer/">timer</a>, <a href="/recipes/tags/utility/">utility</a>).
</p>
<p>Ever wanted to set a timer that went off after a specified number of hours / minutes / seconds? This Windows recipe runs on the command line and does that with the arguments it accepts. Simple but effective, the program works well for remembering food in the oven among other things.</p>
Flash_N_Fade Using Standard Text Mode Python For Linux And Windows... (Python)
2012-07-15T18:38:43-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578216-flash_n_fade-using-standard-text-mode-python-for-l/
<p style="color: grey">
Python
recipe 578216
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/fade/">fade</a>, <a href="/recipes/tags/flash/">flash</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/sound/">sound</a>, <a href="/recipes/tags/windows/">windows</a>).
</p>
<p>This DEMO shows how to fade text in shades of grey and also flash with inverse_flash along with simultaneous differing frequency beeps.</p>
<p>There are 2 code snippets that WILL need to be separated before use. One is a Linux version and the other a Windows 32 bit version. There is an AMIGA version but that is for much later.</p>
<p>There are NO notes inside the code so you will have to see the code as to how it works. It is SOOO simple that notes are/were unnecessary...</p>
<p>Bazza, G0LCU...</p>
Morse Code (Python)
2012-01-12T23:45:12-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578012-morse-code/
<p style="color: grey">
Python
recipe 578012
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/example/">example</a>, <a href="/recipes/tags/experiment/">experiment</a>, <a href="/recipes/tags/morse/">morse</a>, <a href="/recipes/tags/morse_code/">morse_code</a>, <a href="/recipes/tags/program/">program</a>, <a href="/recipes/tags/sound/">sound</a>).
Revision 3.
</p>
<p>After seeing another recipe recently that helps people with Morse Code, I was inspired to clean up the following code just a bit to make it worthy for the rest of the world. After being executed, it waits for lines of text to be entered, compiles each one in turn into timing codes, and plays them back with a simple execution</p>
GUITAR TAB MUSIC SCORE WRITER (Python)
2010-07-08T00:24:46-07:00James Coliinshttp://code.activestate.com/recipes/users/4167379/http://code.activestate.com/recipes/577296-guitar-tab-music-score-writer/
<p style="color: grey">
Python
recipe 577296
by <a href="/recipes/users/4167379/">James Coliins</a>
.
</p>
<p>Writes a tab style score for guitar players, the music is encoded in a tree structure.</p>
Blobby Planet (Python)
2008-10-01T19:01:35-07:00James Coliinshttp://code.activestate.com/recipes/users/4167379/http://code.activestate.com/recipes/576521-blobby-planet/
<p style="color: grey">
Python
recipe 576521
by <a href="/recipes/users/4167379/">James Coliins</a>
.
</p>
<p>Creates an imaginary planet with a fractal geography</p>
Egg Timer (Python)
2012-07-04T01:03:27-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510390-egg-timer/
<p style="color: grey">
Python
recipe 510390
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>This program can actually time anything you want,
not just eggs. Unfortunately, it only runs on Windows.</p>
Alarm Clock (Python)
2012-07-04T01:05:12-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510387-alarm-clock/
<p style="color: grey">
Python
recipe 510387
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>This program can act an an alarm clock on a Windows machine.</p>
URL Refresher (Python)
2006-02-28T16:51:27-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/474101-url-refresher/
<p style="color: grey">
Python
recipe 474101
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>This recipe will open a certain URL approximately every 0.5 second using your default browser. It continues to do so until a timeout occurs which has been specified (like the URL) by the user in number of minutes. The timeout starts a reminder that ends once the program has received input. The program then pauses until a key is struck or exits if ESC is pressed.</p>
Check your Windows sound system (Python)
2003-06-20T04:17:38-07:00Anandhttp://code.activestate.com/recipes/users/760763/http://code.activestate.com/recipes/206549-check-your-windows-sound-system/
<p style="color: grey">
Python
recipe 206549
by <a href="/recipes/users/760763/">Anand</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
</p>
<p>Find out if the sound hardware on your windows PC is working
properly.</p>