ONSONG CHARTS AVAILABLE NOW! LEARN MORE HERE
Read The Bleepin’ Manual
Doin' the Internet Thing
Oof. Internet Settings. Yeah. Good Luck with That.
Okay so settlin' up Internet settings ain't exactly a trip to Disneyland, BUT—if you actually pull it off—you get to search the entire bleepin' internet for content inside OnSong. Sounds rad, right? Here's the catch: OnSong's like "Nah, we can't just hand you these settings" because apparently there's this whole legal thing with websites & their terms of use that you gotta pinky-swear to. Don't say we didn't warn ya.
If you leave these fields blank like some kind of rebel, congrats—the in-app internet search dies a slow, sad death & you'll hafta use the Smuggle Stuff into OnSong the Safari Way instead. Living that extended remix life, amirite.
P.S.—OnSong nerds out with somethin' called Regular Expressions—basically a pattern language that lets you tell the app "Hey, extract JUST the lyrics from all this gnarly HTML soup." If you know what you're doin', these are sick. If you don't... well, buckle up.
Ready to configure OnSong to raid random websites? Here's the dealio:
Searchin' Stuff (a.k.a. Search Parameters)
OnSong hits up Microsoft Bing to find content on the internet. Your search query goes straight to Bing's brain, but you can toss in extra parameters here—like telling it which website to dig through. This example tells it "yo, only look in the chords folder":
site:http://www.domain.com/chords
Wanna geek out on advanced Bing search tricks?
Title Extraction (a.k.a. Title Pattern)
This regex gets unleashed on the page's title tag to yank out the actual song title. Check it: this pattern grabs Brown Eyed Girl from the chaos of Brown Eyed Girl By Van Morrison:
(.+?)(?=(( +Chords)|( +By)))
Who Made This? (a.k.a. Byline Pattern)
Same vibe—regex goes hunting in the page title to snag the artist or byline. This one pulls Van Morrison outta Brown Eyed Girl - Van Morrison:
(?<=[\-])(.+?)(?=\|+\s*)
The Actual Song Content (a.k.a. Content Pattern)
This regex digs into the full HTML & yanks out the song content. Usually it's chillin' in <pre></pre> tags. This pattern extracts whatever's between those tags:
(?<=<pre>)(.+?)(?=</pre>)
Finding the Chords (a.k.a. Chord Pattern)
Sometimes chords are dressed up in HTML tags like some kind of fancy schmancy markup. OnSong can hunt 'em down with regex too. In this example, <u></u> tags mark the chords, & this pattern grabs 'em & converts 'em into [bracketed] style:
<u>(.+?)</u>
How Your Chords Look (a.k.a. Chord Style)
When OnSong finds chords, they might be [bracketed] or just... plain text vibes floatin' over the lyrics. You get to pick which flavor the website uses. Bracket it up, or keep it chill & plain—your call.
Zap Those Annoying HTML Tags (a.k.a. Strip HTML Tags)
Most chord charts are clean plain-text stuff in <pre></pre> tags. But SOME websites get spicy & throw random HTML tags all over the place. Flip this switch on to nuke 'em. Default? Nah, it's off, so you're gonna see junk unless you enable it. You're welcome.