A Brackets extension to add Music For Programmers to the editor.
##Introduction
This extension adds background music to Brackets (currently using Music for Programming, but other sources could be added). We created it in order to quickly learn how extensions are built in Brackets. We also like music :)
The extension adds a new button to the toolbar for starting and stopping the music.
##Add more music!
This extension streams msuic from HTML5 Audio tag compatible URIs. At this time the assumption is that one URI maps to one playlist, using Music for Programming's precendent of combining multiple tracks into a single file.
To add more music, edit the playlist.json
file by adding a JSON object in the following format:
{
"url": "http://datashat.net/music_for_programming_20-uberdog.mp3",
"name": "Uberdog",
"link": "https://soundcloud.com/uberdog"
}
Note: Due to our black magic programming techniques, entries at the bottom of the list will play first.
##Testing/Debugging
You can either install this extension directly from GitHub
(File > Extension Manger > Install from URL... > https://github.com/cdot-brackets-extensions/brackets-wavelength/archive/master.zip
),
or put brackets-wavelength in your local extensions folder.
Some tips from https://github.com/adobe/brackets/wiki/How-to-write-extensions on how to do that:
- Open your extensions folder by selecting "Help > Show Extensions Folder" in Brackets
- Inside the
user
folder(*), create place thebrackets-wavelength folder
.
* Note: Because it's easy to delete extensions from this location via Extension
Manager, in the long run it's safer to develop inside the src/extensions/dev
folder. You can do this by modifying the permissions of a regular installed build
to make that folder writable, or by cloning the Brackets source
and using that copy.