Jump to content



Photo
* * * * * 4 votes

Add Music / Audio to older tables : Mini-Script Tutorial

Add Music to tables script mp3 VPX HiRez00

  • Please log in to reply
33 replies to this topic

#21 Defcon Norris

Defcon Norris

    Hobbyist

  • Members
  • PipPip
  • 40 posts

  • Flag: Spain

  • Favorite Pinball: Cactus Canyon

  • 360 Gamer Tag: Defcon Norris

Posted 15 February 2021 - 02:23 PM

Thanks for the tips!  :love39: 

 

Any way to stop the intro song with start button? I have a 10 second intro so as not to overlap the first song

 

 

P.D: Ok! only add the StopSound Line. Example:

 

Sub Table1_KeyDown(ByVal KeyCode)
    If KeyCode = RightMagnaSave Then NextTrack
    If KeyCode = LeftMagnaSave Then EndMusic
    If keycode = StartGameKey Then StopSound "Intro"  :ph34r: (load to sound Manager)--
    If keycode = StartGameKey Then PlayMusic "first song.mp3"

 


Edited by Defcon Norris, 15 February 2021 - 02:47 PM.


#22 scarBrick

scarBrick

    Hobbyist

  • Members
  • PipPip
  • 19 posts

  • Flag: Australia

  • Favorite Pinball: Scared Stiff

Posted 16 October 2021 - 02:33 PM

Hey HiRez00,

 

Late in the piece I know.....

 

Thanks for posting this. It really resonated with me.

 

Just a simple “Here’s one I prepared earlier” example, but it was enough to get me started on importing some sounds and music, adding it to a table and including some basic logic linking the music to both events and ball number.

 

Also 100% agree with your opening words “'thank you' to all the VPX tables makers and scripting gurus here”, and those that maintain the engines (Vpx, vpinmame, dmdext and more).

 

Cheers, sB



#23 GGPinball

GGPinball

    Neophyte

  • Members
  • Pip
  • 1 posts
  • Location:New Jersey

  • Flag: United States of America

  • Favorite Pinball: Jaws

  • PS3 Gamer Tag: PC Gamer
  • 360 Gamer Tag: PC Gamer

Posted 30 December 2021 - 01:36 PM

Yo HiRez!!

Thanks for this mod. I've been using it recently on a lot of EMs and its made the world of difference for me.

A question for you.. is there a way to incorporate your code into a table that uses the magnas for LUT as well? I believe you did this with playboy but I keep getting some type of syntx error in the playlist area. 



#24 V3L3TIN3

V3L3TIN3

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: United States of America

  • Favorite Pinball: freddy a nightmare on elm st

Posted 09 January 2022 - 06:16 PM

OMG thank you for this thread!! Just added black metal to one of my favorite tables GORGAR! SO SO EPIC NOW! Thank you HiRez00 i owe you a beer



#25 debeiArcade

debeiArcade

    Neophyte

  • Members
  • Pip
  • 3 posts

  • Flag: Italy

  • Favorite Pinball: All

  • PS3 Gamer Tag: None
  • 360 Gamer Tag: None

Posted 03 April 2022 - 10:25 PM

Hi Hi-Rez, thanks to you I solved a music problem in Cyclone table. You script allow me to add two "circus" songs. 



#26 jogrady7

jogrady7

    Enthusiast

  • Platinum Supporter
  • 72 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 05 April 2022 - 01:18 AM

Another possibility to 

 

Easily Add Music To Any Table



#27 RKip455

RKip455

    Hobbyist

  • Platinum Supporter
  • 18 posts
  • Location:Sweet Home North Alabama

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 18 July 2022 - 09:30 PM

I got a syntex error 

 

Sub NextTrack

 

Any thought... script copied as posted by OP



#28 funkatron101

funkatron101

    Hobbyist

  • Members
  • PipPip
  • 13 posts

  • Flag: United States of America

  • Favorite Pinball: Attack from Mars, Bride of Pinbot, Monster Bash

Posted 27 January 2023 - 01:36 PM

Nevermind, I see the answer in a previous post.


Edited by funkatron101, 27 January 2023 - 03:28 PM.


#29 funkatron101

funkatron101

    Hobbyist

  • Members
  • PipPip
  • 13 posts

  • Flag: United States of America

  • Favorite Pinball: Attack from Mars, Bride of Pinbot, Monster Bash

Posted 01 February 2023 - 04:57 AM

For volume, I figured it out (with help from looking at another table)

Add this under the HiRez00 comments

Const SongVolume = 0.3   ' 1 is full volume.

 

then instead of:

If musicNum = 0 Then PlayMusic "YourMusicTrack.mp3" End If

 

it should be

If musicNum = 0 Then PlayMusic "YourMusicTrack.mp3", SongVolume : End If



#30 Langolf51

Langolf51

    Neophyte

  • Members
  • Pip
  • 3 posts

  • Flag: France

  • Favorite Pinball: Pulp fiction

  • PS3 Gamer Tag: 01p
  • 360 Gamer Tag: 02p

Posted 18 March 2023 - 05:28 PM

Salut, J'ai essayé d'ajouter des titres avec votre script sur la table Disco Dancing (LTD do Brasil 1979) mais cela ne marche pas pour moi. Peut-être il y a une phrase du script qui empêche cela ? 



#31 Langolf51

Langolf51

    Neophyte

  • Members
  • Pip
  • 3 posts

  • Flag: France

  • Favorite Pinball: Pulp fiction

  • PS3 Gamer Tag: 01p
  • 360 Gamer Tag: 02p

Posted 18 March 2023 - 05:51 PM

Vous pouvez ajouter des titres. Mais si vous avez un titre d'intro ne pas oublier ce code. 

 

If KeyCode = RightMagnaSave Then NextTrack
If KeyCode = LeftMagnaSave Then EndMusic
If keycode = StartGameKey Then PlayMusic "your track\intro.ogg"


#32 dramaone

dramaone

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts

  • Flag: United Kingdom

  • Favorite Pinball: star wars

Posted 22 March 2023 - 12:35 PM

Hi,

 

any idea how to mod the scipt on the TNA table so that randomly selects tracks on a new ball?

 

thanks



#33 Urko

Urko

    Enthusiast

  • Silver Supporter
  • 309 posts

  • Flag: United Kingdom

  • Favorite Pinball: The Shadow

Posted 17 April 2024 - 11:42 PM

Great script, im having loads of fun with it., adding some optional backing music for my own use.



#34 kindofajerk

kindofajerk

    Neophyte

  • Members
  • Pip
  • 1 posts

  • Flag: United States of America

  • Favorite Pinball: Tenacious D

Posted 20 February 2025 - 02:50 AM

I know this is an old thread but thank you so much!  I just started messing with VPX and this is exactly what some tables need.  Going to have a lot of fun with this.







Also tagged with one or more of these keywords: Add, Music, to tables, script, mp3, VPX, HiRez00