Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was listening to Survivor - "Eye of the Tiger" and writing some documentation in Vim and noticed that the cursor not flashing to the beat started to annoy me. Can this be fixed?

I'm using Terminator and bash.

share|improve this question
17  
What a delightfully horrible idea, +1 :). –  terdon Jan 16 '13 at 17:46
4  
What would be hardest I suspect is programmatically determining what the "beat" of the song is. –  K.A Jan 16 '13 at 17:58
10  
I need clarification on this question. @StephenMartin, do you want the beats to be just the monotonic "duh, duh, duh, duh, duh" implied in the melody? Or do you want it to be the irregular "DUNT! duh, duh, DUNT! duh, duh DUNT! dun dun duuuuuuuuuh"? Or do you want the pizzicato tympani beats as in "tztztztztztztztz"? Also, we need a way to indicate beat intensity in Terminator with variable blink brightness or something if you want the irregular beats. –  ÃŁŁǫǛȉЖΦΤїҪ Jan 16 '13 at 21:18
3  
While you're at it, I want the cursor color to change appropiate to the lyrics when I'm playing Jimi's Bold As Love. –  ott-- Jan 16 '13 at 21:38
2  
@allquixotic I see it flashing every half beat for the duna duna duna intro, but staying on for the power chord hits. Then when it hits the the main beat hitting on the regular bpm but again pausing in the on position for the power chords. –  Shutupsquare Jan 16 '13 at 21:48

2 Answers 2

Check out my Rhythmbox plugin, rbpitch for changing the pitch/tempo/speed of the playing song. I know it's a hack, and you'll have to manually work out the correct tempo to set to get it to flash in sync with your cursor, but for this extremely important and practical task, I thought it would be important to give you a temporary workaround until someone figures out how to work a gstreamer pipeline using the beat detection plugin into bash or whatever virtual terminal you're using.

You know, now that you mention it, doing this wouldn't be all that extremely hard, and I could probably code it up in about a day using SoundTouch's BPMDetect class.

Stop giving me ideas for how to look busy coding while actually wasting time.

share|improve this answer
11  
Dude,Im glad you acknoledge the importance of this question. I will try your workaround as a temporary messure but feel that the cursor should adjust to the tempo of the track. I dont care if it only matches for this one track as its the only track I own and I listen to it constantly on a loop. –  Shutupsquare Jan 16 '13 at 20:34
#!/bin/bash
trap 'tput cnorm' EXIT
states=("$(tput civis)" "$(tput cnorm)")
state=0
while :; do
    printf %s "${states[state=!state]}"
    sleep .1
done

Music synchronization an exercise for reader.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.