1 (edited by scottywz 2005-06-29 00:39)

Topic: Show currently playing song in signature/some talk about music & sigs

I use Windows® Media Player 10 to listen to music on my computer, and I'm wondering if there's a way that I can show what song is playing in my user signature. Any ideas?

Re: Show currently playing song in signature/some talk about music & sigs

Fairly easy to accomplish with xmms, don't know about media player.

http://www.ic-gallery.com/stuff/song.php

Re: Show currently playing song in signature/some talk about music & sigs

i would have though the easiest way would be to get audioscrobbler http://www.audioscrobbler.com/download.php then try a sig thing for that http://wiki.audioscrobbler.com/index.php/ScrobblerSig(THx)

4 (edited by scottywz 2005-06-14 23:46)

Re: Show currently playing song in signature/some talk about music & sigs

You should have put the URL ending in (THX) in [url ] tags.

Re: Show currently playing song in signature/some talk about music & sigs

you got the idea

Re: Show currently playing song in signature/some talk about music & sigs

Yesterday it wouldn't work. Today, it works partly.

Re: Show currently playing song in signature/some talk about music & sigs

why don't you combine the 2 images in your signature so we don't have all that blank bit

8 (edited by scottywz 2005-06-15 21:42)

Re: Show currently playing song in signature/some talk about music & sigs

I've considered that. Oh, and thanks for telling me about the audioscrobbler thing.

Re: Show currently playing song in signature/some talk about music & sigs

Yes, please make your signature images a bit smaller. Half that size would be desirable.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Show currently playing song in signature/some talk about music & sigs

Nibbler(cpg) wrote:

Fairly easy to accomplish with xmms, don't know about media player.

http://www.ic-gallery.com/stuff/song.php

how do you do it with XMMS?

Re: Show currently playing song in signature/some talk about music & sigs

XMMS has a plugin called "Song Change" that runs a command you specify when the song changes. I set it to the command

php send.php "%s"

the script base64 encodes the title to keep the special chars, and calls a file on the server with ?song=whatever that decodes and writes it to a text file. The file song.php makes the graphic when called.

$im = imagecreatetruecolor(600, 30);
$bg = imagecolorallocate($im, 255, 255, 255);
imagecolortransparent($im, $gb);
$textcolor = imagecolorallocate($im, 0, 0, 255);
$song = file_get_contents('song.txt');
$song = $song ? $song : '[Offline]';
imagestring($im, 5, 0, 0, "Now playing: $song", $textcolor);
header("Content-type: image/png");
imagepng($im);

You need to be running php locally to use this method of course , but I'm sure there are other ways,

Re: Show currently playing song in signature/some talk about music & sigs

that audioscrobbler should work with anything (audioscrobbler has loads of plugins), and once you have the code to get the data, you can make it pretty, all the writing in my sig is done by php and imo its pretty neat and clean smile

13 (edited by scottywz 2005-06-16 20:00)

Re: Show currently playing song in signature/some talk about music & sigs

Rickard wrote:

Yes, please make your signature images a bit smaller. Half that size would be desirable.

Yes. I just left the empty space in the 1st one in case I needed it but I'll remove the blank space. smile And I just did.

Now if only I could combine the 2 or something... (And I just did. smile )

14 (edited by shinko_metsuo 2005-06-16 23:46)

Re: Show currently playing song in signature/some talk about music & sigs

Nibbler(cpg) wrote:

XMMS has a plugin called "Song Change" that runs a command you specify when the song changes. I set it to the command

php send.php "%s"

the script base64 encodes the title to keep the special chars, and calls a file on the server with ?song=whatever that decodes and writes it to a text file. The file song.php makes the graphic when called.

$im = imagecreatetruecolor(600, 30);
$bg = imagecolorallocate($im, 255, 255, 255);
imagecolortransparent($im, $gb);
$textcolor = imagecolorallocate($im, 0, 0, 255);
$song = file_get_contents('song.txt');
$song = $song ? $song : '[Offline]';
imagestring($im, 5, 0, 0, "Now playing: $song", $textcolor);
header("Content-type: image/png");
imagepng($im);

You need to be running php locally to use this method of course , but I'm sure there are other ways,

Thanks
I've been meaning to set up a server.

edit: I have a server set up with the pages. What command do I set "sound changer" to

15 (edited by erissiva 2005-06-17 02:40)

Re: Show currently playing song in signature/some talk about music & sigs

I just use Musikcube. wink

16

Re: Show currently playing song in signature/some talk about music & sigs

This thread inspired me to signup at audioscrobbler, I like the fact they run Debian.

I used to use Winamp on Windows, currently I use amaroK on KDE.

I don't plan on adding the currently playing song to my sig, I prefer simple sigs.

What I did was add my playlist to my feeds site: http://hcgtv.info/bert/

17 (edited by Nibbler(cpg) 2005-06-17 09:52)

Re: Show currently playing song in signature/some talk about music & sigs

The command is

php send.php "%s"

The %s is the track title, and you can get that parameter from inside the php script using $argv[1]

Edit: ewww, coldplay sad

Re: Show currently playing song in signature/some talk about music & sigs

i think your in the minory look at the chart on the right - http://www.audioscrobbler.com/ wink coldplay rule tongue

19 (edited by scottywz 2005-06-17 17:02)

Re: Show currently playing song in signature/some talk about music & sigs

I know. smile

20

Re: Show currently playing song in signature/some talk about music & sigs

Coldplay is hot right now, I still prefer the old Rock & Roll though wink

21 (edited by scottywz 2005-06-17 21:57)

Re: Show currently playing song in signature/some talk about music & sigs

I added some extra space (just 24 pt/px worth) to use if I need extra space for quotes and stuff. smile

Re: Show currently playing song in signature/some talk about music & sigs

the background on it is terrible, i can't read it at all

23 (edited by scottywz 2005-06-17 22:12)

Re: Show currently playing song in signature/some talk about music & sigs

I'm opening up my image program again... thanks for the feedback. Can you read it now?

Re: Show currently playing song in signature/some talk about music & sigs

hcgtv wrote:

Coldplay is hot right now, I still prefer the old Rock & Roll though wink

I liked - and interviewed - Solas. (However, I think some of that was already obvious. smile )

Re: Show currently playing song in signature/some talk about music & sigs

well the only other thing you listen to is "Microsoft - Windows Welcome music" tongue