Most viewed recipes tagged "music"http://code.activestate.com/recipes/tags/music/views/2016-12-30T19:06:32-08:00ActiveState Code RecipesUse PyAudio to play a list of WAV files (Python)
2015-10-22T18:24:08-07:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/579116-use-pyaudio-to-play-a-list-of-wav-files/
<p style="color: grey">
Python
recipe 579116
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/python2/">python2</a>, <a href="/recipes/tags/sound/">sound</a>).
</p>
<p>This recipe shows how to use PyAudio, a 3rd-party Python audio toolkit, to play a list of WAV files on your computer. This is an enhanced version of a basic WAV code example on the PyAudio site. You can specify either one WAV filename on the command line, like this:</p>
<p>py pyaudio_play_wav.py chimes.wav</p>
<p>or specify a text file containing names of WAV files to play, like this:</p>
<p>py pyaudio_play_wav.py -f wav_fil_list.txt</p>
<p>The only dependency is PyAudio, which you can install with pip.</p>
A command-line musical alarm clock (Python)
2016-12-30T19:06:32-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/580739-a-command-line-musical-alarm-clock/
<p style="color: grey">
Python
recipe 580739
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/alarm/">alarm</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/clock/">clock</a>, <a href="/recipes/tags/multimedia/">multimedia</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/playsound/">playsound</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/time/">time</a>, <a href="/recipes/tags/utilities/">utilities</a>, <a href="/recipes/tags/utility/">utility</a>).
</p>
<p>This is a simple musical alarm clock in Python. You pass a command-line argument specifying the time in minutes after which the alarm should go off. When that time arrives, it plays a musical sound.</p>
Music Downloader (Python)
2013-05-25T06:52:51-07:00Christian Careagahttp://code.activestate.com/recipes/users/4186639/http://code.activestate.com/recipes/578530-music-downloader/
<p style="color: grey">
Python
recipe 578530
by <a href="/recipes/users/4186639/">Christian Careaga</a>
(<a href="/recipes/tags/download/">download</a>, <a href="/recipes/tags/downloader/">downloader</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/program/">program</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/python_scripts/">python_scripts</a>, <a href="/recipes/tags/selenium/">selenium</a>, <a href="/recipes/tags/urllib/">urllib</a>, <a href="/recipes/tags/urllib2/">urllib2</a>).
</p>
<p>A Python Program i wrote that downloads music from the web</p>
Pachebel 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>
Music Downloader with Wx GUI! (Python)
2013-11-05T02:52:29-08:00Christian Careagahttp://code.activestate.com/recipes/users/4186639/http://code.activestate.com/recipes/578681-music-downloader-with-wx-gui/
<p style="color: grey">
Python
recipe 578681
by <a href="/recipes/users/4186639/">Christian Careaga</a>
(<a href="/recipes/tags/beautifulsoup/">beautifulsoup</a>, <a href="/recipes/tags/downloader/">downloader</a>, <a href="/recipes/tags/gui/">gui</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/urllib/">urllib</a>, <a href="/recipes/tags/urllib2/">urllib2</a>, <a href="/recipes/tags/wxpyton/">wxpyton</a>).
</p>
<p>Just type in a song and the artist and the program will get the YouTube video, convert it to an mp3 then download it!
It has a high quality function and a medium quality function and also the user can choose the directory and name they want the file to be saved to!</p>
<p>It is the first time I've used threads and my second time with WxPython! I used BeautifulSoup for the scraping and I'm pretty familiar with that.just thought id share it with you guys and see if you have any feedback or suggestions!</p>
<p>also you may get an error saying self.convhtml doesn't exist just wait then retry</p>
<p>Here is a link to an screenshot:</p>
<p><a href="http://adf.ly/XJaoU" rel="nofollow">http://adf.ly/XJaoU</a></p>
<p>if you want you can checkout the Github page:</p>
<p><a href="http://adf.ly/XGL6P" rel="nofollow">http://adf.ly/XGL6P</a></p>
<p>also you will need to make a folder called Files and put a file called dir.txt and in the file write /Files. this is where the music will be downloaded to!</p>
<p>I just made the .exe so you can just use that and its easier!
Here:
<a href="http://adf.ly/XRjRH" rel="nofollow">http://adf.ly/XRjRH</a></p>
Music player (JavaScript)
2013-05-18T18:18:15-07:00Granning Stolinehttp://code.activestate.com/recipes/users/4186069/http://code.activestate.com/recipes/578517-music-player/
<p style="color: grey">
JavaScript
recipe 578517
by <a href="/recipes/users/4186069/">Granning Stoline</a>
(<a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/playlist/">playlist</a>).
Revision 2.
</p>
<p>Music player</p>
Reorganize mp3 from an ipod to a Artist/Album{s}/songs structure (Python)
2010-04-20T23:24:57-07:00Benjamin Sergeanthttp://code.activestate.com/recipes/users/4039626/http://code.activestate.com/recipes/577204-reorganize-mp3-from-an-ipod-to-a-artistalbumssongs/
<p style="color: grey">
Python
recipe 577204
by <a href="/recipes/users/4039626/">Benjamin Sergeant</a>
(<a href="/recipes/tags/ipod/">ipod</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/rip/">rip</a>).
</p>
<p>mp3 that you copied from an ipod are weirdly organized on disk. This recipe will move them to a sane and classic structure (the one iTune use). Written during a boring / long meeting :)</p>