Categories
Entertainment Hacks Mac Music Web

Lyrics for Last.fm

Ever since I installed MobileScrobbler on my iPhone, I’ve been using Last.fm a lot … like almost every day, and for hours at a time. Here’s my profile. Last.fm “scrobbles” (keeps track of what you listen to, and uploads that info) your music, and my iPhone automatically does this when I listen to anything in the iPod feature, and so does my Mac when I listen to anything in iTunes. Why do I want to do this? For posterity, as you might imagine, but Last.fm also provides music recommendations in the form of a personalized radio station. And the personalized radio station is what I really love. I mean, you press play, and you’ve got all sorts of new stuff to listen to, and the percentage of it that I like is much higher than listening to anything else. And it’s more interactive, because I can teach the system my preferences by pressing either the “Love” or “Ban” buttons.

Anyway, MobileScrobbler lets me read lyrics while I listen to songs… Which I LOVE doing. That Mac version however, does -not- do this. I was able however, to find a Greasemonkey script that adds lyrics to the song page on Last.fm, and therefore enables a workaround. (Greasemonkey is a FireFox plugin that I use daily… it let’s you add things to, and modify websites. People make scripts to make all sorts of websites do all sorts of cool things. Check out http://userscripts.org for examples).

My workaround is this: Listen in the Last.fm app. When I want to read lyrics for the current song, just click the link in the app to open up the song page at last.fm. The greasemonkey script shows the lyrics right there for me. Works.

Oh, and then I can also comment on the song right there too, another feature I’d like to see added to the Last.fm Mac client.

Categories
Entertainment Featured Hacks Mac Music Productivity

Applescript: Fade iTunes to Selected Track

Ever playing music for other people from iTunes? And want to change the song without everyone noticing? Trying to do a manual fade is tough. This script lets you select the next song you want to play, and then fade the volume out and in to that track. Download: itunes-fade-to-selected-track.zip


property initialVolume : null
tell application "iTunes"
set speed to 5 -- lower means slower fade
if sound volume = 0 then -- if volume is all the way down, fade in
play
set initialVolume to 60
repeat until (sound volume) is greater than or equal to (initialVolume - speed)
set sound volume to (sound volume + speed)
end repeat
set sound volume to initialVolume
else -- fade out, skip to selected track, fade in
set initialVolume to (get sound volume)
repeat until (sound volume - speed) is less than or equal to 0
set sound volume to (sound volume - speed)
end repeat
set sound volume to 0
play selection
repeat until (sound volume + speed) is greater than or equal to initialVolume
set sound volume to (sound volume + speed)
end repeat
end if
end tell

Categories
Found Hacks Media Mobile Personal Web

Blogging from the iPhone

I’ve been looking for a way to blog from my iPhone, especially because I wasn’t having much luck with the WP-mail plugin that allows you to post by email.

Anyway, I’m writing right now on my iPhone using a plugin called WPhone, which you can find here: http://wphoneplugin.org

You can now expect a lot more posts from me here!

Categories
Hacks Mac

Applescript: Number Selected Tracks Sequentially

I think you can tell from the title what this simple applescript does. I’m sure this code could be made much shorter, but I’m really a novice, and this works pretty well, albeit there are no foolproofs.  

Here’s what it does: You select some songs that are already in order (how? see below), say 12 songs that you already arranged. You then run the script… it numbers them 1 of 12, 2 of 12, 3 of 12… and so on up to 12 of 12. You now have a nicely organized album.Album not in order?

Instructions: Select all the album tracks. Make a new playlist from selection (cmd+shift+N). Click the title bar above the first column, in other words: sort by number in playlist. Then, you can rearrange the songs as you like. Now select all the songs, and finally run the script.Ahh, finally some home-brewed automation for sorting out this messy iTunes library. 

--Number Selected Tracks Sequentially
--A simple applescript from Rex Pechler
--http://rex.fm
--
--2007

tell application "iTunes"
if selection is not {} then
set sel to selection
set these_files to {}
set numtracks to the count of sel
set trackcount to 0
with timeout of 30000 seconds
repeat with this_track in sel
if class of this_track is file track then
set trackcount to trackcount + 1
set the track number of this_track to trackcount
set the track count of this_track to numtracks
end if
end repeat
end timeout
else
set count to 0
end if
end tell

Download: the applescript as text or as a binary app.

Categories
Hacks

Google Calculator still amazes me

At my school, we have a daily upload limit of 2 GB to prevent excessive filesharing. I’ve found various ways around this for using BitTorrent, but I’ve gotten in trouble a couple times as well. Anyway, one of the easiest ways to prevent going over the limit is to set a maximum upload speed in your BitTorrent client that would be equivalent to 2 GB over 24 hours. Normally calculating this is a little tricky for me: I always get confused by the KB versus Kb thing, and such differences really make me doubt my calculations. Anyway, I just typed “2 GB / 24 Hours” into a Google search. Here’s what I got:

That was so much easier! I love you Google Search!