0
0

So I’ve started checking out the interactive music system by creating some very simple setups and auditioning the results using the FMOD music player.

The very first thing I want to be able to do is start and stop a single piece of music.

So I create a cue, and a theme, and a segment which points at the actual music file I want to play. The segment is set up as a start segment, it loops, and it’s a designated stop segment as well.

In the music player, I can begin the cue and the music plays. However, when I end the cue, shouldn’t the music stop immediately? I could understand if it continued to the end of the music segment and stopped – but it loops indefinitely. (Incidentally I think there needs to be an option to either try to finish the cue musically or just cut it dead with a user defineable fade. Not having the control to stop straight away is bad. Perhaps I’ve overlooked this option somewhere).

So I try creating a new, empty segment, and linking the first segment to it using ‘target conclusion’. I understand this to mean ‘when the cue is ended, link to the segment indicated’. The new segment is a designated stop segment, so, upon finding that the segment doesn’t contain anything, the cue should end. It doesn’t. It loops just like before.

What am I missing here? Thanks for any help :)

  • You must to post comments
0
0

[quote="PeteWard":p1akqsha]So I’ve started checking out the interactive music system by creating some very simple setups and auditioning the results using the FMOD music player.

The very first thing I want to be able to do is start and stop a single piece of music.

So I create a cue, and a theme, and a segment which points at the actual music file I want to play. The segment is set up as a start segment, it loops, and it’s a designated stop segment as well.

In the music player, I can begin the cue and the music plays. However, when I end the cue, shouldn’t the music stop immediately?
[/quote:p1akqsha]
Hi Pete,

It sounds like you are pretty close, from what you describe it should be working. Are you using the latest version of FMOD Designer? If not, I’d suggest downloading it from the website (I’ve tested the current version works as you’d expect it to).

When there are no active cues, the music system attempts to end gracefully (in a musically manner) – the music system does this by ‘targeting’ a stop segment. In this state, the system will follow the stop path (shown in red) to a ‘stop segment’. If the segment currently playing is a ‘stop’ segment, the system will stop (at the end of the loop).

To recap, what you need to do is:

  • add a segment (empty or with a finishing sample)
  • set the ‘stop’ status in the segment tray to ‘on’. A target will appear.
  • press the target in the system tray
  • draw a link from any segment to the ‘stop’ segment

Now when the system is playing and all cues become inactive, the system will follow the red links to the ‘stop’ segment.

[quote:p1akqsha]
So I try creating a new, empty segment, and linking the first segment to it using ‘target conclusion’. I understand this to mean ‘when the cue is ended, link to the segment indicated’. The new segment is a designated stop segment, so, upon finding that the segment doesn’t contain anything, the cue should end. It doesn’t. It loops just like before.

What am I missing here? Thanks for any help :)[/quote:p1akqsha]

Check the priority of the links from the segment. If the ‘Loop’ link has first position in the segment’s link list (above the ‘stop’ path), then it will always loop.

I’ve made a basic demo of the start and stop mechanism using 1 cue. I’ve put it here:

http://52.88.2.202/files/music-demo.fdp

Hope this helps!

cheers,
Templar

  • You must to post comments
0
0

Hi Templar,

Thanks for the fast response! I am using version 4.15.03 of the Designer.

I’ve taken your test example and put in my own music loop, which is quite long. Nothing else has changed. When I use the FMOD music player to audition the cue, it loops correctly, but when I end the cue, the music continues until the end of the segment.

I understand why this is happening – the system thinks that to be musical, it has to play until the end of the current segment, THEN branch to a targeted stop segment. However, this means that I don’t have the power to stop the music whenever I want even if the result is not ‘musical’.

Perhaps there could be a few options to set on stop segments –

  • wait for end of segment (stop the music when the segment has played out)
  • stop at once (stop with the following fade options)
  • fade type
  • fade length

Also, allowing the user to specify their own fade types and times for theme crossfades would be good :)

  • You must to post comments
0
0

[quote="PeteWard":2fvlgtcd]

Perhaps there could be a few options to set on stop segments –

  • wait for end of segment (stop the music when the segment has played out)
  • stop at once (stop with the following fade options)
  • fade type
  • fade length

Also, allowing the user to specify their own fade types and times for theme crossfades would be good :)
[/quote:2fvlgtcd]

The ability to exit a segment early is on the development horizon. I believe fade type and length has also been considered, and will be available in a future release.

You might try investigating the ‘default transition’ functionality that is currently available – making a theme (with a fast default transition time) containing an empty ‘stop’ segment, may give you the fast stop you are looking for…though you would need to cue it.

The alternative is to do the ‘fast stop’ (closing the Music System) in code =)….though this seems a little extreme!

  • You must to post comments
0
0

Hi Templar,

Has there been any update on this?

Currently getting around the problem by creating another cue and theme to transition to – which works fine. But having the option to define where segments end would be very handy.

Cheers,

Matt

  • You must to post comments
0
0

I believe (early) transition points are scheduled for the next major release, at the end of October (ish).

cheers,
Templar

  • You must to post comments
0
0

Any updates on this? I’m also in need of a way to simply ‘stop all music from playing right now, even if it isn’t graceful’ – and as noted, doing it from code appears the only way…

  • You must to post comments
0
0

[quote="Symbiotic":3avyijpz]Any updates on this? I’m also in need of a way to simply ‘stop all music from playing right now, even if it isn’t graceful’ – and as noted, doing it from code appears the only way…[/quote:3avyijpz]
To stop all music immediately, call MusicSystem::reset().

We’re aiming to get a simple implementation of transition points out within the next few weeks.

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.