It was fiddly but I got it to work....
You have to set the music channel for ball Rolling to 8 and the volume level to 1 to so ball sounds don't conflict with music and you can hear it:
Code:
ExecuteGlobal LoadExternalScript ("ZBRrollingballsoundslib.vbs")
'*****************************
'*****************************
' TO ADJUST TO YOUR NEEDS
'*****************************
'*****************************
'ZRBrampHeight=18
'ZRBtablewide = 520
ZRBsoundballchan = 8
ZRBvolNormLevel = 1
'ZRBrollingSound="zfx_ballrollingb2"
'ZRBPitchTunning=-40
ZRBrampSoundballchan = 6 'set to -1 to disable rampsound roll
'ZRBrampVolNormLevel = 0.80
'ZRBrampRollingSound="zfx_ballrolramp"
'ZRBrampPitchTunning=40
'*****************************
'*****************************
' =====================================================================================
' =====================================================================================
' =====================================================================================
Here is the table:
https://www.dropbox.com/s/9m917i5cpskln ... J.fpt?dl=0If you put an apostrophe in front of all the "playmusic" code
you will hear the rolling sounds clearly...
you can do this by using the replace function and replace all "playmusic" with " 'playmusic"
''''''''''''''''''''''''''''''''''''''''''''''''''
I know George has created music volume mixer code.
But the simple code from the manual is
Code:
PlayMusic( <Integer> Channel, <String> MusicName, <Boolean> Repeat, <Float> Volume, <Integer> StartDelay )
Apparently FP has up to 8 channels for playing music, that is why I chose 8 (so hopefully less likely to conflict with other music)
So as an example:
Code:
PlayMusic 2, "MultiballMusic", TRUE, 0, 2
This will Playmusic in channel 2 named "multiballmusic" , it will repeat it when finished, it will play at volume of 0 which is default (1 being the loudest) and there will be a 2 second delay before it plays...