Login | |
|
 |
RE: Own3d Jukebox - 8/4/2008 5:11:32 PM
|
|
 |
|
| |
djredmar
Posts: 61
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
|
Looks nice man!
|
|
| |
|
|
|
 |
RE: Own3d Jukebox - 8/6/2008 1:44:50 PM
|
|
 |
|
| |
TomRiddle
Posts: 191
Score: 4
Joined: 2/7/2008
Status: offline
|
Thanks for the interest. I am going to update the original post tonight with some more minor enhancements. AMBience, I had a look at your original Sine and had a go at using one of those effects in the player but seemed to make it a bit top heavy and the waveform was obviously not responsive to the sound as it is. But anyway that might make another interesting project to do in vbscript. The only other features I can think that would make this script better are a volume control and maybe a repeat button. I am going to investigate if accessing the volume control via vbscript is feasible.
|
|
| |
|
|
|
 |
RE: Own3d Jukebox - 8/7/2008 2:05:53 AM
|
|
 |
|
| |
AMBience
Posts: 5
Score: 0
Joined: 7/24/2008
Status: offline
|
Hi Tom, Visualizations would indeed be cool, getting it to react to the music however would be impossable...I think! (never say never in VBS, is my motto) As for your code...Multiple "interesting" really :-) Very nice interface, good music taste, but I'm confused about the music player code. I'm guessing that's the only way to play music in pure VBS? Funny enough I have been experementing a lot with sound and music in HTAs recently. I've found that including a ClassID instead of the usual embedded sound in a HTA exposes some very nice commands to the DOM. Drop this into your HTML part of the HTA... <OBJECT ID="MyPlayer" WIDTH="0" HEIGHT="0" CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><PARAM NAME="AutoStart" VALUE="false"></OBJECT> This is Media player 6 (I use this for compatability and low resource use) You can now use these very cool commands...... [Loading] MyPlayer.Filename = "C:\Music\Reign in blood.mp3" [Setup] MyPlayer.Balance = 0 (-2000=Left 0=Middle 2000=Right) MyPlayer.Volume = 5000 (-5000=Silence 5000=Full blast) [Playing] MyPlayer.Play MyPlayer.Pause MyPlayer.Stop MyPlayer.CurrentPosition = 1.234 (milliseconds) [FX] MyPlayer.Rate = 1.5 (0.001= Very slow, 1=Normal, 1.999=Very fast) This last one changes the actual pitch of the music, so it's only good for sound FX (or a piano program :-) ) It took me ages to find out the boundries, even w3schools are very vague about them. You can also test all the above values, but you need to do it inside a fast loop (SetInterval 1) for any position type code, Like:- Sub PlayLoop() If MyPlayer.CurrentPosition => 3.123 then MyPlayer.CurrentPosition = 2.000 End Sub This will loop the song at that place forever.... Have fun!
|
|
| |
|
|
|
 |
RE: Own3d Jukebox - 8/7/2008 11:31:26 AM
|
|
 |
|
| |
TomRiddle
Posts: 191
Score: 4
Joined: 2/7/2008
Status: offline
|
Thanks, I will check out your code AMBience, if I can get all those extra controls working might be worth my while redesigning the interface, maybe copy something like a winamp player layout. It looks like the only other technique for volume control is sendkeys on sndvol32.exe but that's for the master volume so it might still be useful if clunky. Rock On
|
|
| |
|
|
|
 |
RE: Own3d Jukebox - 10/18/2008 1:44:25 AM
|
|
 |
|
| |
blksith0
Posts: 38
Score: 0
Joined: 10/17/2008
Status: offline
|
Cannot find file "C:/windows/rp.vbs" Thats what i get when I try to play the music.
|
|
| |
|
|
|
|
|