Bitcoin Forum
April 26, 2024, 06:21:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Bounty: Play sound file when block is generated  (Read 4050 times)
sethsethseth (OP)
Sr. Member
****
Offline Offline

Activity: 257
Merit: 250


Not trusting third parties with my private keys


View Profile
April 19, 2011, 09:05:39 PM
 #1

I want a custom sound file to play when I generate a block on windows.  10btc Bounty.

SealsWithClubs poker room has  over 400 players online. Buy in from .01 to 60btc.      BTCSportsMatch lets you bet sports with vig free lines!  Best kept secret in bitcoin....          LocalBitcoins.com is very user-friendly now for bank transfers.  You don't have to live close to trade when in the same currency area.           
Electrum client is awesome. Try it. And please stop sending bitcoins to sites run by security newbies, or don't complain when you lose everything.
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714112471
Hero Member
*
Offline Offline

Posts: 1714112471

View Profile Personal Message (Offline)

Ignore
1714112471
Reply with quote  #2

1714112471
Report to moderator
1714112471
Hero Member
*
Offline Offline

Posts: 1714112471

View Profile Personal Message (Offline)

Ignore
1714112471
Reply with quote  #2

1714112471
Report to moderator
1714112471
Hero Member
*
Offline Offline

Posts: 1714112471

View Profile Personal Message (Offline)

Ignore
1714112471
Reply with quote  #2

1714112471
Report to moderator
Anonymous
Guest

April 19, 2011, 10:13:26 PM
 #2

I want a custom sound file to play when I generate a block on windows.  10btc Bounty.

awesome. Now what is an appropriate sound for a bitcoin block?

A cash register ?

Depending on your miner you might not hear the sound for a long time.  Smiley

tcatm
Sr. Member
****
Offline Offline

Activity: 337
Merit: 265


View Profile
April 19, 2011, 10:20:23 PM
 #3

Depending on your miner you might not hear the sound for a long time.  Smiley

Yep, it should temporarily turn off the fans, too... Smiley
PLATO
Sr. Member
****
Offline Offline

Activity: 493
Merit: 250


Don't trust "BBOD The Best Futures Exchange"


View Profile
April 20, 2011, 03:55:49 AM
 #4

awesome. Now what is an appropriate sound for a bitcoin block?

http://themushroomkingdom.net/sounds/wav/smb3_coin.wav

All posts by me after 2012 were a compromised account. Probably by "BBOD The Best Futures Exchange". SORRY Y'ALL
sethsethseth (OP)
Sr. Member
****
Offline Offline

Activity: 257
Merit: 250


Not trusting third parties with my private keys


View Profile
April 21, 2011, 06:20:12 PM
 #5

YES! coin drop, cash register, firework.... Plz donate guys, i'm sure this will get done with just a little more action

SealsWithClubs poker room has  over 400 players online. Buy in from .01 to 60btc.      BTCSportsMatch lets you bet sports with vig free lines!  Best kept secret in bitcoin....          LocalBitcoins.com is very user-friendly now for bank transfers.  You don't have to live close to trade when in the same currency area.           
Electrum client is awesome. Try it. And please stop sending bitcoins to sites run by security newbies, or don't complain when you lose everything.
gigabytecoin
Sr. Member
****
Offline Offline

Activity: 280
Merit: 252


View Profile
April 21, 2011, 09:07:05 PM
 #6

I want a custom sound file to play when I generate a block on windows.  10btc Bounty.

awesome. Now what is an appropriate sound for a bitcoin block?

A cash register ?

Depending on your miner you might not hear the sound for a long time.  Smiley



How about one of the casino/lottery winning sound bytes? Those things were specially created to make you feel elated when you hear them, and people already associate it with money.

Some kind of fast, high pitched, major arpeggio would be good.
NghtRppr
Sr. Member
****
Offline Offline

Activity: 504
Merit: 252


Elder Crypto God


View Profile WWW
April 22, 2011, 07:51:56 PM
 #7

I could do this pretty easily if I just made it play a sound file when your balance increases.
sethsethseth (OP)
Sr. Member
****
Offline Offline

Activity: 257
Merit: 250


Not trusting third parties with my private keys


View Profile
April 23, 2011, 04:35:15 PM
 #8

I really want the sound to happen when the blocks are generated, not a day later when they are confirmed though....

SealsWithClubs poker room has  over 400 players online. Buy in from .01 to 60btc.      BTCSportsMatch lets you bet sports with vig free lines!  Best kept secret in bitcoin....          LocalBitcoins.com is very user-friendly now for bank transfers.  You don't have to live close to trade when in the same currency area.           
Electrum client is awesome. Try it. And please stop sending bitcoins to sites run by security newbies, or don't complain when you lose everything.
LMGTFY
Hero Member
*****
Offline Offline

Activity: 644
Merit: 502



View Profile
April 23, 2011, 04:56:23 PM
 #9

I really want the sound to happen when the blocks are generated, not a day later when they are confirmed though....
On *nix I'd pipe the miner's output to a log file (which I do anyway) and then run a scheduled task every minute or so. The task would need to do some magic (this assumes some like DiabloMiner, which normally shows hash rate until a block is generate, then displays a line containing the word "Block"):

Look at the penultimate line of the log file, and do something like...
If the line contains the string "Block" then...
Code:
grep -E 'Block [0-9]+' -o | awk '{print $2}'
... and then compare the value returned (the block number) with the previous value, if a previous value exists, and if it's different (or there is no previous value) then store the new value and play a sound file.

If I had to do this in Windows I'd end up installing Cygwin or similar, but I'm sure that someone with Windows-fu could do a better job than me.

Disclaimer: rough, untested pseudo-code. The grep bit works, nothing else carries any warranty, guarantee, assurance or promise. Your milage may vary, do not drive or operate heavy machinery, DO NOT TAUNT HAPPY FUN BALL!

This space intentionally left blank.
sethsethseth (OP)
Sr. Member
****
Offline Offline

Activity: 257
Merit: 250


Not trusting third parties with my private keys


View Profile
April 26, 2011, 11:38:12 PM
 #10

geez how much bounty does it take to get simple stuff done around here?  I've paid out a 50btc bounty before, but this seems like a 10min job....

SealsWithClubs poker room has  over 400 players online. Buy in from .01 to 60btc.      BTCSportsMatch lets you bet sports with vig free lines!  Best kept secret in bitcoin....          LocalBitcoins.com is very user-friendly now for bank transfers.  You don't have to live close to trade when in the same currency area.           
Electrum client is awesome. Try it. And please stop sending bitcoins to sites run by security newbies, or don't complain when you lose everything.
Escalion
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 28, 2011, 09:51:42 AM
 #11

What system are you using, you was very unclear?

He basically just told you how to do it in linux with pipes....
A simple bash script wouldnt be hard.

For Windows it would require the output to a log, and a seperate worker checking the log every x seconds, at least until a sound is introduced in the client.
LMGTFY
Hero Member
*****
Offline Offline

Activity: 644
Merit: 502



View Profile
April 28, 2011, 01:08:30 PM
 #12

What system are you using, you was very unclear?

He basically just told you how to do it in linux with pipes....
A simple bash script wouldnt be hard.

For Windows it would require the output to a log, and a seperate worker checking the log every x seconds, at least until a sound is introduced in the client.
They're definitely using Windows, I don't know which version.

The proposal I made above could be made to work on Windows but you'd need to install Cygwin or similar.

This space intentionally left blank.
shooter_mcgavin
Member
**
Offline Offline

Activity: 76
Merit: 10



View Profile
May 11, 2011, 07:55:11 PM
 #13

I can write this easily. Tell me what miner you are using and what platform you would like it written for. I can provide both source and binary if you wish.

If you think I've been helpful, toss me a few bitcoin -  1J2bbukPKFrwEfk4iHueKfLfFBXLSNGnTi
sethsethseth (OP)
Sr. Member
****
Offline Offline

Activity: 257
Merit: 250


Not trusting third parties with my private keys


View Profile
May 12, 2011, 02:23:51 AM
Last edit: May 12, 2011, 02:44:28 AM by sethsethseth
 #14

This is for 64bit windows 7.  Is it possible to have it work with multiple miners?  I am currently deciding if phoenix gives enough boost over GUI miner to switch, and i've switched a bunch of times in the last few months and I want the code to work if I switch miners.

SealsWithClubs poker room has  over 400 players online. Buy in from .01 to 60btc.      BTCSportsMatch lets you bet sports with vig free lines!  Best kept secret in bitcoin....          LocalBitcoins.com is very user-friendly now for bank transfers.  You don't have to live close to trade when in the same currency area.           
Electrum client is awesome. Try it. And please stop sending bitcoins to sites run by security newbies, or don't complain when you lose everything.
shooter_mcgavin
Member
**
Offline Offline

Activity: 76
Merit: 10



View Profile
May 12, 2011, 05:04:27 AM
 #15

This is for 64bit windows 7.  Is it possible to have it work with multiple miners?  I am currently deciding if phoenix gives enough boost over GUI miner to switch, and i've switched a bunch of times in the last few months and I want the code to work if I switch miners.

Depending on the incentive, I can code in support for multiple miners. It's just extra lines of code.

If you think I've been helpful, toss me a few bitcoin -  1J2bbukPKFrwEfk4iHueKfLfFBXLSNGnTi
unfinishe
Full Member
***
Offline Offline

Activity: 126
Merit: 100



View Profile
May 12, 2011, 09:34:21 AM
 #16

Ok, so I probably didn't need to start a repository for this, but I've never used git or github before, so I figured it'd be fun to try it out.

https://github.com/downloads/unfinishe/Bitcoin-Miner-Ding/ding.zip

I hope that this works. What you do is:

In one cmd window, run your miner from the command-line, except add the following onto the end.

Code:
 > output.txt 2>&1

This sends the output of your miner to a file.

Then in another cmd window, run ding.exe [word], which will scan the file every couple seconds to see whether the output includes the [word] in it. If it does, it will play ding.wav. Just use whatever word signifies in the output that a block has been generated in your miner.

It could definitely be written better, but hopefully it does the job!

Check out the results from my Bitcoin Survey Project!
https://bitcointalk.org/index.php?topic=88927.0
nereer
Member
**
Offline Offline

Activity: 84
Merit: 10


Why settle for the lesser evil?


View Profile
May 12, 2011, 10:35:48 AM
 #17


+1

classic. first sound I thought of when I saw this thread Smiley

If you agree that Bitcoin needs a dedicated Q & A site please sign up for the Bitcoin StackExchange site!
shooter_mcgavin
Member
**
Offline Offline

Activity: 76
Merit: 10



View Profile
May 12, 2011, 03:19:54 PM
Last edit: May 12, 2011, 03:47:35 PM by shooter_mcgavin
 #18

sethsethseth, I sent you a PM with the binary file in a zip format. Let me know how it works for you, it should be pretty solid. If anyone else would like to join in on the bounty, please send me a PM. I will consider making it open to the public if it turns out to be a needed feature.



Donations are always nice though :] 

1J2bbukPKFrwEfk4iHueKfLfFBXLSNGnTi

If you think I've been helpful, toss me a few bitcoin -  1J2bbukPKFrwEfk4iHueKfLfFBXLSNGnTi
Herodes
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
May 13, 2011, 07:12:22 AM
 #19

I have now implemented the request feature, compiled a client binary for win 7 64 bit, and e-mailed it to seth. I talked with him on irc earlier on. Later I might submit this as a patch to the official client if anyone is interested. It wasn't a big job at all, when I first got to coding, but setting up the entire environment for compiling took a long time.

As it is now, it checks for "0/unconfirmed", and once that message pops up in the client, the client will play a sound of your choice. Currently this is just a file named test.wav in your directory. I have just tested it on my win 7 64 bit system, and the only files altered are the ui.cpp and the makefile.

Not sure if more people are interested, then let me know, and I may put out the source. I will at some point anyhow, but I tought I'd refine it a bit more, even if it works now.

There is a glitch tough, the send coin menu item and the adress book item seems to no longer behave perfectly graphically speaking, sometimes when moving the client around the screen, or resizing it, the graphic in the menu line is affected and looks a bit odd, I don't know why this is, but will research it later on.

Complete source is available for the topic starter, and also instructions for how to set up the environment for compiling were sent to him, although I must frankly say that these procedures are a bit daunting for a non-programmer.

Let me know what you all think, and I will check in on this thread later. And please do not complain that I have not put up a binary and/or source yet. I will, just waiting for feedback from the topic starter.

The libraries I have used are windows specific, so this solution will most likely not work for any other OS at this point.
sethsethseth (OP)
Sr. Member
****
Offline Offline

Activity: 257
Merit: 250


Not trusting third parties with my private keys


View Profile
May 13, 2011, 09:37:59 AM
 #20

How does a month go by and then suddenly three people try to do this in one day!  TheManOfTown's method seems to be the best, as it works with any miner and multiple mining rigs on the eligius pool.  Testing it now shipping coins back and forth to roommates computers to hear the action.  if you guys have good sounds post them.

SealsWithClubs poker room has  over 400 players online. Buy in from .01 to 60btc.      BTCSportsMatch lets you bet sports with vig free lines!  Best kept secret in bitcoin....          LocalBitcoins.com is very user-friendly now for bank transfers.  You don't have to live close to trade when in the same currency area.           
Electrum client is awesome. Try it. And please stop sending bitcoins to sites run by security newbies, or don't complain when you lose everything.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!