Jump to content



Photo
- - - - -

mp3 file


  • Please log in to reply
8 replies to this topic

#1 vader

vader

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: ---------

  • Favorite Pinball: TFTC

Posted 25 May 2010 - 09:45 PM

hi wink.gif

trying to build a table / learn how to script these.
thanks to a really good howto I've already gotten the score-counting to work, as well as other things.
but I can't figure out why I don't get mp3s/wavs (as music) to play.
I've put two files into the /music/ subdir, and added the line

PlayMusic "swtr.wav"
or
PlayMusic "swtr.mp3"

into the script. but it won't start once I test the table... what am I doing wrong? wink.gif

Edited by vader, 25 May 2010 - 09:45 PM.


#2 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 25 May 2010 - 10:05 PM

PlayMusic "swtr.mp3"

is correct.

The folder named "Music" must be in the Visual Pinball folder. Don't put the mp3 files in their own folder and then in the Music folder.




Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#3 vader

vader

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: ---------

  • Favorite Pinball: TFTC

Posted 25 May 2010 - 10:15 PM

QUOTE (Bob5453 @ May 25 2010, 10:05 PM) <{POST_SNAPBACK}>
PlayMusic "swtr.mp3"

is correct.

The folder named "Music" must be in the Visual Pinball folder. Don't put the mp3 files in their own folder and then in the Music folder.



That's what I thought, but it just doesn't work wink.gif
C:\Program Files (x86)\Pinball\Music <<< here are the mp3s / wavs
C:\Program Files (x86)\Pinball\ << there or in its subs is everything else.

(btw: I use 9.07, and tables with roms I loaded work just fine, so it's not the installations fault, I'm afraid..)

maybe stupid question, but do I need to import these files somewhere or is there an mp3 plugin I need?
though wavs don't work -as music- either, but are fine when imported and used via playsound ..

#4 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 25 May 2010 - 11:19 PM

It will work if everything's done right. smile.gif

Here's a pic of my Visual Pinball file, notice that it has nothing to do with PinMame or ROMs.



Attached Files

  • Attached File  pic.jpg   174.26KB   115 downloads

Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#5 KEG

KEG

    Virtual Pinball Fan

  • Charter Member
  • 687 posts
  • Location:Philadelphia, Pa.

  • Flag: United States of America

  • Favorite Pinball: PINBOT

  • PS3 Gamer Tag: The_Real_KEG
  • 360 Gamer Tag: KEG

Posted 26 May 2010 - 12:27 AM

@Vader: Make sure your vp9.07.exe file is inside your Visual Pinball folder. If you run the 9.07 exe from your desktop and you dont have it in the VP folder, music or waves wont play.

Hope this helps.

#6 Theguyoverthere

Theguyoverthere

    Enthusiast

  • Charter Member
  • 391 posts
  • Location:Seattle, WA

  • Flag: United States of America

  • Favorite Pinball: Black Rose and Simpsons Pinball Party

Posted 26 May 2010 - 05:51 AM

QUOTE (vader @ May 25 2010, 03:15 PM) <{POST_SNAPBACK}>
QUOTE (Bob5453 @ May 25 2010, 10:05 PM) <{POST_SNAPBACK}>
PlayMusic "swtr.mp3"

is correct.

The folder named "Music" must be in the Visual Pinball folder. Don't put the mp3 files in their own folder and then in the Music folder.



That's what I thought, but it just doesn't work wink.gif
C:\Program Files (x86)\Pinball\Music <<< here are the mp3s / wavs
C:\Program Files (x86)\Pinball\ << there or in its subs is everything else.

(btw: I use 9.07, and tables with roms I loaded work just fine, so it's not the installations fault, I'm afraid..)

maybe stupid question, but do I need to import these files somewhere or is there an mp3 plugin I need?
though wavs don't work -as music- either, but are fine when imported and used via playsound ..


Hey, that's almost exactly how mine looks! Looks like we both used the same .msi file for installing VP originally smile.gif

#7 Liteuser

Liteuser

    Enthusiast

  • Members
  • PipPipPip
  • 403 posts
  • Location:USA

  • Flag: United States of America

  • Favorite Pinball: TFTC

Posted 26 May 2010 - 06:20 AM

You may want to try to re-encode the mp3 music file in Audacity or some other sound program. I have found that only some MP3's don't play in VP unless you export/re-encode a new mp3 file from it. I don't know why it works but It works here anyway, maybe it's the MP3 quality? Best of luck with it anyway. wink.gif



#8 vader

vader

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: ---------

  • Favorite Pinball: TFTC

Posted 26 May 2010 - 10:31 AM

Hi.

Thx all of you for your help dblthumb.gif

-putting the 9.07 directly into the folder solved the problem.
-re-encoding some mp3s will surely help avoiding the mickey-mouse-sounds some of them make

biggest problem now: which theme to use/ruin first? wink.gif

#9 s1500

s1500

    Enthusiast

  • Members
  • PipPipPip
  • 396 posts
  • Location:twin cities

  • Flag: ---------

  • Favorite Pinball: Fun House

Posted 29 August 2011 - 01:17 AM

When I export an mp3 file from Audacity & try to play it in 9.12(via PlayMusic), it goes way too fast. Everything sounds like happy hardcore. Is there a specific sampling rate, etc I should use?