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
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: 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