music
OSdata.com: programming text book 

OSdata.com

adding songs

summary

    You can go to YouTube and search for the songs you want to add to your player. The YouTube code is the 11 character code after watch?v=.

    Add each song as a new item in your select/case statement (remember the breaks).

    Once you have done this, you will have out-programmed the famous Google programmers! You have just built a front end user interface for Google’s YouTube web site that adds obviously useful features that Google’s famous engineers and programmers couldn’t figure out!

    For your convenience, I am also sharing the work I have done in weeding through hundreds of YouTube videos. This list includes all of the 2011 Grammy song winners, many of the songs at the top of the current Billboard charts, and a variety of other songs.

    You can obtain a larger list of songs from the This Side of Sanity data base.

license

    This is example code from This Side of Sanity, released under Apache License 2.0.

    Copyright 2012, 2013, 2014 Milo

    Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Google

summary

    You can go to YouTube and search for the songs you want to add to your player. The YouTube code is the 11 character code after watch?v=.

    Add each song as a new item in your select/case statement (remember the breaks).

    Once you have done this, you will have out-programmed the famous Google programmers! You have just built a front end user interface for Google’s YouTube web site that adds obviously useful features that Google’s famous engineers and programmers couldn’t figure out!

    For your convenience, I am also sharing the work I have done in weeding through hundreds of YouTube videos. This list includes all of the 2011 Grammy song winners, many of the songs at the top of the current Billboard charts, and a variety of other songs.

    The start time column will be explained in the upcoming step: setting start time.

    When you see two copies of the same song, one is the offficial video (with lower quality sound) and one is a version with better sound (but lacking the official video). You decide whether pretty pictures or better sound is more important to you.

    The times listed are a guide. You may decide to cut the beginning and end differently. It is your personal music player, after all.

    The next step, local server, explains how to set up your music player on your own computer, if you don’t have access to your own web site.

    You can obtain a larger list of songs from the This Side of Sanity data base.

pop

titleartistYouTube codelengthstart
Born This WayLady GagaIGj4_CFgH4c2440
Born This Way (extended video)Lady GagawV1FrqwZyKw4290
Dearestthe Black KeysqT1rCv-fokA1210
DominoJessie JgfmQuSoys7g2300
Domino (official video)Jessie JUJtB55MaoD02290
FireworkKaty PerryvlLgvQErn6o2290
Firework (official video)Katy PerryQGJuMBdaqIw2340
Fucking PerfectPinkcSDZCK3PKKw2140
Fucking Perfect (official video)Pinkn1bcQMCZ5gU2390
Good FeelingFlo RidaaFZMmCzAl1g2380
GrenadeBruno MarsSR6iYWJxHqs2200
I Will Always Love YouWhitney HoustonH9nPf7w7pDI2725
ImagineLady GagauQRuYS_h-Vs2760
ImagineDavid ArchuletatqknGd3Atko1280
It Will RainBruno Marsr-KcgmuIf742550
Moves Like JaggerMaroon 5 Featuring Christina AguilerasuRsxpoAc5w2020
Moves Like jagger (official video)Maroon 5 Featuring Christina AguileraiEPTlhBmwRg23632
Not Over YouGavin DeGrawkBdarl_Bzbw2200
Rolling in the DeepAdeleeLEX82mLnCM2370
Rolling in the Deep (official video)AdelerYEDA3JcQqw2260
Set Fire To The RainAdeleFlsBObg-1BQ2400
Sexy and I Know ItLMFAOwyx6JDQCslE2000
Someone Like You (official video)AdelehLQl3WQQoQ02810
Stronger (What Doesn’t Kill You)Kelly ClarksonvEZDP_NVklc2230
The One That Got AwayKaty PerryfDTouU0iABA2260
Turn Me OnDavid Guetta Featuring Nicki MinajYVw7eJ0vGfM2020
We Found LoveRihanna featuring Calvin HarriskqaGZYDGcUw2230
Work Out (official video)J. Cole6PN78PS_QsM2380
Yoü And ILady GagajAliPG4kKNI3050
Yoü And I (official video)Lady GagaX9YMU0WeBwU3740

hip-hop/rap

titleartistYouTube codelengthstart
All Of The LightsKanye West featuring Rihanna, Kid Cudi, FergijjDdGKBhTuo3020
All Of The Lights (official video)Kanye West featuring Rihanna, Kid Cudi, FergiHAfFfqiYLp03215
Bad GirlsM.I.A.2uYs0gJD-LE23512
Dance (A$$) (official video)Big Sean Featuring Nicki Minajpn1VGytzXus2180
Good FeelingFlo RidaaFZMmCzAl1g2380
International Love (official video)Pitbull Featuring Chris BrownCdXesX6mYUE2490
Make Me ProudDrake featuring Nicki MinajAP6ps5CxgVk2200
Niggas in ParisJay-Z and Kanye WestD3C3XkRZX2M2460
OtisJay-Z and Kanye Westnkx3CaBnrz81710
Otis (official video)Jay-Z and Kanye WestBoEKWtgJQAU1800
Rack CityTygaWDBC3NNbMIc1540
Rack City (official video - explicit)TygaAE3yia1AJeQ1920
Sexy and I Know ItLMFAOwyx6JDQCslE2000
SunriseChildish GambinoDc6rf8Ou2cw2210
Work Out (official video)J. Cole6PN78PS_QsM2380
You See MeChildish GambinoxJFBGpCNvRQ2550
Young, Wild & FreeWiz Khalifa Featuring Snoop Dogg and Bruno Mars0lYOUIDkjUA2060
Young, Wild & Free (official video)Wiz Khalifa Featuring Snoop Dogg and Bruno MarsWa5B22KAkEk2500

rock

titleartistYouTube codelengthstart
(I Can’t Get No) Satisfactionthe Rolling Stones3a7cHPy04s82430
(I Can’t Get No) SatisfactionDevo8I09xjQgMAI1649
A Day in the Lifethe BeatlesP-Q9D4dcYng2800
Aten RaCruxshadowsR4hPpohxuG41750
Blood and Rosesthe Smithereens2_MqvYipkrs2170
Break On Through (to the other side)the Doors6BIjCW2_Uik1490
Cactus TreeJoni MitchellFMszEPnstgQ2750
The CaveMumford and Sonsx6rYPHmSzcE20835
CrossroadsEric ClaptonTMR_3BJCmh83320
Dear Mr. FantasyTrafficvxVlN-LzIks3280
Dearestthe Black KeysqT1rCv-fokA1210
Dreadlock Holiday10ccN5xm3F-s6xE2660
Eight Miles Highthe ByrdsWH6UnvSlahc2180
HoloceneBon IverMjxA25Tj1Ks3320
Holocene (official video)Bon IverMjxA25Tj1Ks3320
Howlin’ For Youthe Black KeysA3scl0fl0zE191 0
Howlin’ For You (movie trailer)the Black KeysTLSpj7q6_mM/td>1930
I Can See For Milesthe WhoBKGRijV8U3s2580
I Feel FreeCream2fLn9Z1G_LE1730
I Wanna Be a CowboyBoys Don’t CrySHCsbrc8xKA2310
I Want to Hold Your Handthe Beatlesiim6s8Ea_bE1670
ImagineLady GagauQRuYS_h-Vs2760
ImagineJohn LennonXLgYAHHkPFs18915
Jack Strawthe Grateful DeadnHRRjt2lU_42820
Jackal HeadCruxshadows3umyXjRUIXw3900
Kryptonite3 Doors DownTpl6ncyxLGw2350
Kryptonite (official video)3 Doors DownxPU8OAjjS4k2350
Like a Rolling StoneBob Dylanhk3mAX5xdxo3680
Like A VirginMadonnaOI-LFxf9oB02190
Like A Virgin (Extended Dance Remix)Madonnan1tHs-2-BqI3700
Lonely Boythe Black Keysa_426RiwST81940
Mr. SoulBuffalo Springfield_Y9aFr2GuuA1620
People Are Strangethe Doorsawi14wDTxNw1320
Playing In The Bandthe Grateful DeadE-AhJhiBYxs4580
Pumped Up KicksFoster the PeopleyjD89r_mOsY2390
Pumped Up Kicks (official video)Foster the PeopleSDTZ7iX4vTQ2560
Smoke Two Joints (live)Bob MarleyH6cVmx5bOaU2105
Stupid Girlgarbage1N29vkIT3eo2270
Suffragette CityDavid BowiezLnPd7lzT4g2070
These Are Days10,000 ManiacsQlCS-qf7yaM2180
They Call Us The Working ClassWalter TroutY8yM-Et02700
Twilight ZoneGolden EarringeP05iSzpz944690
Walkthe Foo Fighters4PkcfQtibmU26263
White Limo (official video)the Foo FightersebJ2brErERQ2070
Who Knows Where The Time GoesFairport Conventionn2xODjbfYw83110
Wild Boys (single)Duran DuraniRNmnxlYm3Q2560
Wild Boys (official video)Duran DurangCWyYOOS8FQ4630
You Really Got Methe KinksdvyDWGF290M1200

country

titleartistYouTube codelengthstart
(Ghost) Riders in the Skythe OutlawsEhqD-ejBMyk3520
Barton Hollowthe Civil WarsODOOo-R6kg820327
Before He CheatsCarrie UnderwoodGUO9Hok7wBY1940
Don’t Want This Night To EndLuke BryankJq7qQP_Gvk2160
MeanTaylor SwiftV3HAAQGR77A2500
Mean (official video)Taylor SwiftV3HAAQGR77A2500
YouChris Young1dSIj2gyPAE2550

blues

titleartistYouTube codelengthstart
AlbatrossFleetwood Mac featuring Peter GreenViqr6KHwJjc1960
Boogie Chillin’John Lee Hooker7OdPtbyK16I5100
Born Under a Bad SignAlbert KingBKY8KIt9kqc3550
Can’t Let GoKoko Taylorjj2RnzstMp03680
Crazy BluesMamie Smithqaz4Ziw_CfQ2050
CrossroadsEric ClaptonTMR_3BJCmh83320
Death LetterSon HouseMDCNbacVt5w2070
Don’t Owe You A ThingGary Clark Jr.ECbgzgvfG4Y2310
Dust My BroomElmore JamesaKo80b-QfK01760
Forty Four BluesEric ClaptonDkjzZR7iaTk2700
Good Morning Little SchoolgirlSonny Boy Williamson IZj293l5w2MU1920
Hellhound on my TrailRobert Johnson3UVgH9JqSnQ1580
Hide AwayFreddie Kingua3s1W7XF-82880
Hoochie Coochie ManMuddy Waters_HjjF59vWRk1720
The House is a Rockin’Stevie Ray VaughanX9wD-vv1sRU1410
How Many More Years?Howlin’ WolfILFjY2mbarg3130
I Ain’t DrunkAlbert CollinsNjVfc8-Y7sQ3960
I’d Rather Go BlindEtta Jamest1adWlI7t8g4430
JukeLittle WalteruiGpv-UeiDI1690
Mannish BoyMuddy Watersw5IOou6qN1o3130
Mellow Down EasyRod Piazza And The Mighty FlyersAUYC0Rg495Y2500
Memphis BluesW C HandyZGqBmlZR3dc1790
New Prison BluesPeg Leg Howellq5aj8E1AxKQ1950
One Bourbon, One Scotch, and One BeerJohn Lee HookerBIvka3SSv9Y1990
Pinetop’s Boogie-WoogiePine Top PerkinsFHlM2Qr9TZQ1660
Roadhouse Bluesthe Doors and John Lee Hooker2xzFWm9uXJo3990
Same Old BluesEric ClaptonrhrqZP_qVyU4110
San-Ho-ZayFreddie King0oCQUSjnOhs3440
Six Strings DownJimmie VaughanbzePqXEJrBY3770
Stepping OutJohn MayallO1cDGA2IgFg3450
Stormy MondayT-Bone WalkerhVR8lg1YLuc6050
Sweet Home ChicagoEric Clapton, Buddy Guy, Robert Cray, John Mayer, Hubert Sumlin, Jimmie Vaughan, Johnny Winter2N-_9Lc9Jnw4250
The Thrill is GoneB.B. KingjrFChQUQihE3220
TigermanKim WilsonnM9f94xO_Nk2600
Voodoo Chile (Slight Return)Stevie Ray VaughanUs1xjUO0PTc6420
Why I Sing The BluesB.B. King3gUnP2NIGgE3380

dance/electronica

titleartistYouTube codelengthstart
AugustUKF Dubstep MixSFu2DfPDGeU4900
Born This WayLady GagaIGj4_CFgH4c2440
Born This Way (extended video)Lady GagawV1FrqwZyKw4290
Hotel NacionalGloria EstefanBet3Lb4LQDQ2130
Indigo ChildrenPusciferxwNoH6zjc9Q3440
LevelsAviciigNYL7-Tu6fQ3360
Like A Virgin (Extended Dance Remix)Madonnan1tHs-2-BqI3700
Safe From HarmMassive AttackMyHVLiBlqkE3210
Safe From Harm (official video)Massive AttackPKtTmZnVhhI2930
Scary Monsters and Nice SpritesSkrillexWSeNSzJ2-Jw2430
Scary Monsters and Nice Sprites VJ MixSkrillexWwskvQfdQyA2480
Stompboxthe Qemists0IvGLah8MW83440
Turn Me OnDavid Guetta Featuring Nicki MinajYVw7eJ0vGfM2020

jazz

titleartistYouTube codelengthstart
500 Miles HighChick Coreab3yAq20qSm45460
MarrakeshAcoustic AlchemyXVyU7_f6usk2500
The Lady In My LifeGeorge BensonalnR86Z-otY2710

Christian/gospel

titleartistYouTube codelengthstart
BlessingsLaura Story1CSVqHcdhXQ2930
Hello FearKirk FranklinrHf6b8LUYCw3352
JesusLe’Andria JohnsoneDZpQ0VbpWo2280

R&B

titleartistYouTube codelengthstart
Body and SoulTony Bennett & Amy Winehouses_O8OdHTNE42000
Body and Soul (official video)Tony Bennett & Amy Winehouse_OFMkCeP6ok2000
Fool For YouCee Lo Green and Melanie FionalWG6hYNfRTw2240
GrenadeBruno MarsSR6iYWJxHqs2200
I Will Always Love YouWhitney HoustonH9nPf7w7pDI2725
Is This LoveCorinne Bailey RaetVxaf2booV82050
It Will RainBruno Marsr-KcgmuIf742550
RespectAretha Franklin6FOUqQt3Kg01464
Rolling in the DeepAdeleeLEX82mLnCM2370
Rolling in the Deep (official video)AdelerYEDA3JcQqw2260
Set Fire To The RainAdeleFlsBObg-1BQ2400
Someone Like You (official video)AdelehLQl3WQQoQ02810
What’s Going On?Marvin GayeFHoLn_QCnRM5460

reggae

titleartistYouTube codelengthstart
Dreadlock Holiday10ccN5xm3F-s6xE2660
I Shot the SheriffBob MarleyvmpCHHFzgM82270
Smoke Two JointsBob MarleyvUsv4Lb7EQs2230
Smoke Two Joints (live)Bob MarleyH6cVmx5bOaU2105

other

titleartistYouTube codelengthstart
HoloceneBon IverMjxA25Tj1Ks3320
Holocene (official video)Bon IverMjxA25Tj1Ks3320
I See The LightMandy Moore and Zachary LeviZMJFxFZgc_82210

    You can obtain a larger list of songs from the This Side of Sanity data base.

see full player in action

return to explanation of simple player

contact
comments, suggestions, corrections, criticisms

please contact us

your name:
email address:
phone number:
message:

return to table of contents
free downloadable college text book

previous page next page
previous page next page

Google


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    †UNIX used as a generic term unless specifically used as a trademark (such as in the phrase “UNIX certified”). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.

    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2012 Milo

    Created: February 16, 2012 (using code started in September 2011)

    Last Updated: May 14, 2012


return to table of contents
free downloadable college text book

previous page next page
previous page next page