Music Player as SubScene - any music you like! Demo includes Airpods as CUAs

Other Music Player as SubScene - any music you like! Demo includes Airpods as CUAs

There are quite a few great audio options available for VaM, I just wanted something lightweight, portable and easy to use, with a UI that was fairly unobtrusive, and didn't rely on images or custom Unity assets - and let me play anything I wanted.

I wanted to be able to fade out audio, but when triggered have the next track come back in at the volume I'd selected* and used a combination of MacGruber's very excellent LogicBricks https://hub.virtamate.com/resources/logicbricks.1975/ , AcidBubble's Timeline https://hub.virtamate.com/threads/timeline.94/ and Hazmhox' VamOverlays https://hub.virtamate.com/resources/vamoverlays.2438/

It's difficult to imagine using VaM without those plugins!

I've chosen buttons for volume, not a slider because I find sliders a bit awkward in VR. The design is outwardly simple and it's easy to load music

This is a 10 track player, although that number can be increased. It simply looks for audio files loaded into a scene and numbered as 1 to 10. So as long as you name your music file as e.g., 7 it will find it. Caution, there *have* to be 10 tracks (although they can be just 0.1s of silence if you only want say 5 tunes).

EDIT: Added 15 track and 25 track versions.

In other words, as long as you're prepared to type 1 to 10 (or up to 25), it'll play anything you want.

Instructions for 10 Track Player:

1) Load audio 1-10 into scene.
2) Load subscene from var (save as your own if you want). Don't worry if you don't load the audio first, just reload the subscene.
3) Position the UI where you want. The atom to move is: Music_UI_Parent
4) To select a playback mode, press one of the green buttons. Press red to stop and reset.

Depending on plugin load sequence, an error may show, only on first load - just load SubScene again.


The triggers you need to fade-in/out can be found in button atom Test_Fade and its plugin (or look in Logic_Music/Timeline)

The number of tracks playable can also be changed in MacGruber's Sequence choice plugin: #2 in Logic_Music.

In the demo scene, the UI toggle is an invisible button hovering in front of the phone

Any probs, let me know in the Discussion tab!


EDIT: Bug spotted and fixed, will update when resource approved

EDIT: Default playback is whichever play button you select - my preferred default is random

EDIT: All seems to be working now :) ?


Airpods CUAs included, about the right size - turn off collision.

"Air Pods 3D Model" (https://skfb.ly/ozYGG) by Dumb Yet Creative is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/)

And nearly forgot: thanks Nabuhiro for the phone asset! https://hub.virtamate.com/resources/iphone.5766/

*I built this prior to Hal9001 releasing his excellent supplemental LogicBricks2 including ValueMapRelay, which supports this function, instead of using many relays. There's no reason to replace these relays, but were I starting from scratch, I'd use both MacGruber's and Hal9001's (y)




MP_Demo_1.jpg
MP_Demo_2.jpg
MP_Demo_3.jpg
MP_Demo_4.jpg
Author
CabaretNoir
Downloads
2,393
Views
2,406
Dependencies
7
Packages
4
Total Size
2.35 MB
Version
2024-06-25
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from CabaretNoir

Click the links below to support the other creators whose content was used to make this resource!

Credits

Creator Support Link
MacGruber MacGruber
hazmhox hazmhox
Acid Bubbles Acid Bubbles
CabaretNoir CabaretNoir
Blazedust Blazedust
Nabuhiro Nabuhiro

Latest updates

  1. Bug Fix and added 15 track and 25 track versions

    Fixed an issue where the shuffle play button was sometimes unresponsive (never noticed before)...
  2. Another bug fix...

    Sorry Mods, and sorry to anyone who already downloaded this. Shuffle is fine, it's just been a...
  3. Bug Fix

    Not long after writing the words "because it works", I realised it didn't all work properly ...
Back
Top Bottom