Showing posts with label music. Show all posts
Showing posts with label music. Show all posts

Monday, January 26, 2009

Beats Per Minute (BPM) software on Linux

Google Fodder: This is one of those blog posts you write so people will find SOMETHING on the topic when they Google it.

I was trying to sort out a playlist on the iPod that would be suitable for a long (couple of hours) fast, walk. Heart pounding stuff for uphill or down, mindfull that music with at least 100 beats / minute was best for a variety of physical pursuits, including keeping time while administering CPR.

I Googled around a bit and found that Amarok had a "BPM" column, so using "sudo apt-get install amarok" in a terminal, I installed Amarok on my Ubuntu 8.10 Linux laptop system and found......that it was just a column. It wouldn't calculate the BPM's for me. I would have to sort that out myself. Ta.

Back to Google. Located "bpm calc 4 amarok". It's a script that drives 'soundstretch' to work out the BPM for songs for use in Amarok. It adds the info directly to the music database! Great! Sounds like what I need.

I installed "bpm calc 4 amarok" and found that the author only supports MySQL databases, not the SQLite database Amarok uses by default. Well, I'm not adding the complexity of MySQL setup, admin and network access to my chosen problem. Not yet anyway. Maybe another day.

I reviewed options and chose another path. Maybe Windows.

Pistonsoft's "BPM Detector" looked promising and it's free. I downloaded it and was going to boot to Windows Vista, but instead decided to install the "WINE" support for running Windows apps on Linux. I had recently been very happy with DosBox on Linux for running my old DOS games, so maybe WINE was as good as that by now.

The result was that both the installer and the app itself work well with WINE.

In \home\steve\desktop, I ran "wine BMPdetector_setup.exe" and followed the installer prompts. I de-selected adding icons or things to the taskbar. Not necessary without a real Windows desktop UI and an unnecessary potential source of error for the install.

Then, to actually run the installed program, I entered:

wine "C:\\Program Files\\Pistonsoft BPM Detector\\bpmdetector.exe"

...and the app runs and gives me BPM values for each song. That done, I created a shortcut / launcher on the desktop so all I have to do now is click on an icon to start BPM Detector. I don't appear to be able "Select All" in a list and batch the BPM caculations, but it works fine if I click on each song one at a time. It can play the songs, too. No problems. Now at least I can get the BPM value for a given song and manually enter it into Amarok. Overall, the MySQL solution and "bpm calc 4 amarok" would have been better and faster if I had MySQL already running and knew more about how to drive it. That "if" was too big for me today. This alternative will get the job done, too.....

Here's a screen shot. Click on it to see a larger version.

Tuesday, April 15, 2008

World (begins to) end on Thursday.....and other news. Plus a song.

I haven't read any newspapers this morning, so I'm probably missing a HUGE story.

I do know Sir Doug Graham has resigned as Chair of the failed finance company Lombard Finance. I have a lot of respect for Graham as he was the Minister of Justice in the last National government who oversaw the move to MMP and also the Treaty Settlements minister who moved the treaty settlements process into a higher gear.

On to the real news: The world begins to end on Thursday.

Yes. You've (probably) heard it here first. "Church of God" pastor, Ronald Weinland is telling anyone who will listen that the end time is here and now. In fact, in this radio interview with a UK Sports station last week, he declares that the first of the "Seven Trumpets" heralding the end times will occur in the Middle East on April 17th. Day after tomorrow. As I write this post, Mr. Weinland is likely on board a jet making his way there to bear witness. Now I'm not sure which one of the 400-ish "Church of God" fragments Weinlands leads. After Worldwide Church of God founder, Herbert W Armstrong, died in 1986 and his son, Garner Ted Armstrong, was discredited through gambling and sex romps with co-eds at the church's "Ambassador College", the church sort of fell apart.

Anyway, Weinland says we will see the first of the "Seven Trumpets" day after tomorrow, then the proverbial will REALLY hit the fan in 2008 and by the end of this year we will see the "the demise of the United States and beginning of man's final war." Ultimately, I think he says there are supposed to be maybe 3,000 people who will go forward into the new world after the apocalypse to come. I may be a bit hazy on the details here as these "Noah's Ark" earth-cleansing apocalypses tend to blur one into the other. You can download Robert Weinland's book here. It's in English, Dutch, Spanish and Italian, so presumably these folks will have an edge as the lights go out. You best get to it or you may not have time to finish it unless you're among the 3,000 in which case it will be history not prophecy, so why bother.

The YouTube version:



Savage Teen Beating and Aftermath

The other news item that got me this weekend comes from the United States. Eight teenagers (6 females / two males) invited a girl they all knew over to one of their grandparents home then proceeded to beat the living daylights out of her in a sustained attack over a 30-minute period. She suffered concussion and bruising over her entire body. They could have killed her. They videoed the whole thing so they could upload it to YouTube or whatever later. This Fox News item on Youtube is one of the better overviews I've seen of this horrifying crime. (Fox? Yeah...I know). Don't watch if you're squeamish. It's not pretty.



The US public is outraged and some are baying for more blood - this time the perps'. The parents of the perpetrators are defensive and obviously shell-shocked. This article on Tampa Bay Online is fairly comprehensive with respect to the response. If you've been following it, you've seen the court appearance and the circus surrounding the release of each on bail. The parents of the victim, understandably and justifiably distraught, blame the Internet for what happened.

It gets worse. A US-based talk-show host known as "Dr. Phil" has apparently paid for or otherwise secured the bail of one of the girls charged in return for an exclusive on her story. The video of a Dr. Phil minder blocking access to the girl by other media is eye-opening on several levels.

I'm hoping this whole episode of teenage rage doesn't become a political football. Gangs of kids have been beating on other kids since forever. It's not right. Never was right. The media circus around this story is bad enough without the additonal dimension of cheque-book pseudo-journalism causing more damage to all concerned - perps, victim, the parents of both, while the "blame the internet" knee-jerk mantra gets more tuneless utterance.

Zimbabwe

Looks like the expected partial recount in the presidential election in Zimbabwe will give the Mugabe regime one more opportunity to stuff the ballot boxes enough to see their man win. Voters are already being softened up by a preliminary campaign of violence and intimidation. The opposition has called for a general strike to begin today. Mugabe's forces are mobilising to meet the challenge, setting up police checkpoints.

South African President, Thabo Mbeke, who had attempted to mediate and been ignored by Mugabe, has proven himself yet again to be an impotent apologist for Mugabe. It is damaging Mbeke's reputation at home

What would you do if you lived there? Would you have yet reached the point where you could no longer afford to be beaten down? Would you be at the point where you felt you had nothing to lose?

I guess we'll find out over the next several days.

...and now the song....

Meanwhile, this song intruded into my world today and I decided I really like it. Have a listen if you haven't already. The band is Opshop and the song is "One Day".