Most viewed recipes tagged "modulation" Code RecipesAmplitude Modulation - Tremolo, Was:- An Audio/Sound Snippet For Linux... ;o) (Python) 2012-01-21T14:18:28-08:00Barry Walker <p style="color: grey"> Python recipe 578013 by <a href="/recipes/users/4177147/">Barry Walker</a> (<a href="/recipes/tags/amplitude/">amplitude</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/mod/">mod</a>, <a href="/recipes/tags/modulation/">modulation</a>, <a href="/recipes/tags/sound/">sound</a>, <a href="/recipes/tags/tremolo/">tremolo</a>). Revision 2. </p> <p>This IS for the big guns as well as the amatuer...</p> <p>I am always being told that too many comments inside any code is bad and that professional coders are clever enough to work out what a program does without comments...</p> <p>So here goes! This snippet of code hits /dev/dsp in Linux and has no comments as to what it does. Make sure that /dev/dsp is available in your Linux install - if not then install oss.compat from your repository.</p> <p>It needs Python 2.6 minimum, but may well work on a much earlier version</p> <p>Don't run the code first but have a go at working out what it does and see if you are correct... ;o)</p> <p>You can email me if you think you are/were correct:- <a href="" rel="nofollow"></a></p> <p>Bear in mind I don't think this has ever been done before by hitting the /dev/dsp __directly__.</p> <p>NOTE:- NO imports are required at all!!!</p> <p>It runs for about 7 seconds before exiting...</p> <p>Another BIG PLUS for Linux.</p> <p>(I have a feeling poeple on here might like this, possibly even vote it up. ;)</p> <p>Answer now at the bottom of this page...</p> <p>Enjoy...</p> <p>Bazza, G0LCU...</p>