Build Your Own Arcade Controls Forum

Software Support => DOS/WinCab => Topic started by: RPO R6V on August 29, 2006, 10:06:30 pm

Title: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: RPO R6V on August 29, 2006, 10:06:30 pm
Yet another question or request.  Hope I'm not being a big pain in the arse!  I posted this question to the general Audio/Jukebox/MP3 message board, but since I selfishly want it for WinCab since that's what I'm using, I'll paraphrase it here:

Has anyone else heard Sirius satellite radio's channel called "Classic Vinyl"?  Sometimes when they play a song (usually after a station ID) you hear, just before the song, the sound of a phonograph needle touching down on a vinyl record, complete with clicks and pops as though the record were not very clean - then, about one second later, the song starts to play while the clicks and pops continue in the background for just a couple of seconds at most and then fade out, leaving just the usual sound quality of as though you were listening to a CD.  Could WinCab do this somehow? 
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: Chris on August 29, 2006, 10:22:13 pm
Hm.  There's a message for a song starting that you can key a sound effect off, but it's triggered when the music actually starts.  I'd need to add a message to the beginning of the delay.  You can already set the inter-song delay time in jukebox.ini, then you just need to create the sound effect with the desired length and fade built into it.

Since the sound effect will start when the song isn't playing, it won't be affected by the Volume When Playing setting which is usually 0.

This message is trivial to add.  I'll put it in for the next update, which will come "any day now" after I iron out a touchscreen problem.  If you can slip me your E-mail address at celamantia@charter.net, I can send you a test version before I fix the touchscreen (assuming you don't need a touchscreen).

--Chris
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: RPO R6V on August 29, 2006, 10:42:41 pm
You've got mail (or should soon).  Thanks!
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: Chris on August 30, 2006, 08:52:33 am
Trying to think of the best way to do this.  I had a huge post here about it but decided to make it a topic of its own.
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: ebateman21 on August 30, 2006, 10:47:59 am
In order for this to sound like the Sirius effect, a crossfade would have to be implemented between the sound effect and the song, which leads me to the next question...are there any bells and whistles available to plug in to the Allegro MP3 engine? I haven't found very much support/documentation for allegMP3 online.

ebateman21
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: Chris on August 30, 2006, 10:57:25 am
In order for this to sound like the Sirius effect, a crossfade would have to be implemented between the sound effect and the song

Not really.  The song itself doesn't crossfade, it starts at full volume.  The delay length is known ahead of time.  So if you use a 2-second delay, you create a 5 or 6 second sound effect and build the fade into the sound effect itself.

To make this work well, though, you really need to have several effects and have the juke pick one randomly.  It won't take long for the exact pop/hiss pattern to become really noticeable over and over.   That won't be in the next version, but in the next major revision it should be doable.

Quote
which leads me to the next question...are there any bells and whistles available to plug in to the Allegro MP3 engine? I haven't found very much support/documentation for allegMP3 online.
Not that I'm aware of... certainly nothing an end-user can plug in.
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: ebateman21 on August 30, 2006, 11:22:17 am
So the sound effect could actually play over the song?

Here is an example of what the SFX might sound like...

record.mp3
 (http://home.earthlink.net/~ebateman21/wincab/record.mp3)
That's the first time I've ever isolated and enhanced record noise! :)

ebateman21
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: Chris on August 30, 2006, 11:27:47 am
So the sound effect could actually play over the song?
Sure.  There is a separate volume setting for sound effects when songs are playing, and by default it's set to 0 to disable sound effects when the music is on.  But it's only checked when the sound effect starts... so if the sound starts before the song does, it can play on top of it.

--Chris
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: Chris on September 11, 2006, 03:40:22 pm
Okay, this is all in and working beautifully, right down to the clicks playing under the beginning of the song and fading out. I may even make it part of the default "classic" skin.  Look for a release tonight.  Still have a touchscreen issue to fix.

--Chris
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: RPO R6V on September 14, 2006, 09:34:58 pm
Chris has made this part of the latest release and it's great!   :applaud:
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: jdsabin1 on June 10, 2007, 01:07:01 am
Older post but just found WinCab. Have it working but don't see anywhere in the ini file where I can insert this sound effect to have it play/fade in when each MP3 plays.

Any assistance would be most appreciated.

Thanks!
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: xk on June 10, 2007, 06:20:27 am
The sounds are found in the SKN files.
Look in the skin folder and check out the numeric.skn file for an example
*SOUNDS* are the last section as below.


##########################################################
#
# Sounds Section
#
# Sets sound effects to respond to jukebox messages.
# To respond to a message being "un-set", put a minus sign
# before the message name.  The message BTN_ANY will
# respond to any BTN message.  See readme.txt for a list
# of available messages.
#
##########################################################

[Sounds]
BTN_COIN1=coin.wav
BTN_COIN2=coin.wav
BTN_COIN3=coin.wav
BTN_COIN4=coin.wav
MSG_PRESONG=recpop.wav
MSG_INVALID=invalid.wav
Title: Re: Could WinCab add the "pops & clicks" of vinyl to the beginning of MP3's?
Post by: jdsabin1 on June 12, 2007, 12:37:00 am
Thank you xk. Much appreciated!