社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票

I have a music playlist of some looping midi files and I'm trying to figure out how to have this playlist select a different "sampler instrument" each time it is event-triggered. 

I'm trying to randomly alternate which audio sample is used for the MIDI music playlists, so I have the playlist targeted to a *random* container with a library of different audio samples. I want it to be like a sampler instrument that chooses a random instrument.

However, when I play the music playlist, it randomly selects a sample for each MIDI note - I'm wanting it to randomly select a sample for each segment in the playlist and use that sample for the entire MIDI segment, if that makes sense.

分类:General Discussion | 用户: Dan V. (130 分)
修改于 用户:Dan V.

2 个回答

0 投票
Hi, you might consider using the Blend Container as a container for your different instruments,

then create a Blend Track and use an LFO set to Random mode to pick a different instrument to play for each note.

More directly but Hacky's approach is to create a PD+Heavy plugin that outputs an RTPC value to drive the Switch Group every time a note is played,

enabling random selection of content under the Switch Group. However,

I think using Random LFO should be enough for your needs :)
用户: Hou Chenzhong (Audiokinetic) (6.0k 分)
Thank you! So I'm not looking to switch instruments for each note but specifically for each music segment. I don't think the LFO will accomplish this but I am gonna mess around with a switch group and PD plugin.
0 投票
 
已采纳

Hey Dan, 

That's a good question. You could probably achieve this by creating a plugin that sets an RTPC randomly, and then use that RTPC to control what instrument is being played. 

Creating a PD patch would be a quick way to make it. 

For controlling what instrument is playing, you could connect the RTPC to volume. However, if you want to avoid having all instruments playing at the same time, you could also connect it to priority and kill the other instruments. 

Let us know if this works! 

用户: Mads Maretty S. (Audiokinetic) (40.2k 分)
采纳于 用户:Dan V.
Great idea! I haven't worked with pure data before but that video seems like a good walk through. Do you think it's better to use the plugin-generated-RTPC to drive priority (like you said), or to drive a switch group that contains switch tracks of each instrument?
Follow up question - how can I create the proper dll and xml files for my plugin on a mac? Heavy seems to only create .dylib, .bundle, .a, .h files for me when I follow the wwise compiling instructions.
Hey Dan. You're right, using a Switch container would definitely be better! Make sure to let us know how it goes.

About Heavy on Mac, I haven't yet tried it. So I'll have to get back to you on that.
Hi there,
To build the plugin dll and xml for the Authoring tool.
You need to compile it using Visual Studio under Windows.
That's because Wwise under macOS is actually running under a Windows emulator called wine.

Also when deploying the Authoring tool plugin,
remember not to follow hvcc's documentation on github,
as it's outdated.

You will need to deploy the dll and xml to the following address:
/Library/Application Support/Audiokinetic/Wwise\ 2019.2.6.7381/Authoring/x64/Release/bin/Plugins

Use the Finder to find it,
where the SDK version is filled out according to your situation.

I hope this helps.
Ah! Bummer but thank you for clarifying and for the additional info. Appreciate the help!
...