コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

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.

Dan V. (130 ポイント) General Discussion
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!
...