[Simulink]音のピッチをノブ等で変える際のエラーの対処方法
1 view (last 30 days)
Show older comments
■やりたいこと
下図ブロック線図のようにノブを使ってピッチを変えたい
■課題
nsemitonesを外部入力にするとエラーを起こす
■エラー内容
コンポーネント: MATLAB Function | カテゴリ: Coder エラー
すべての入力は定数でなければなりません。
-------------------------------------------------------------------------------------------------

(しかしながら、まだ内容理解できていません…)
よろしくお願いいたします。
0 Comments
Accepted Answer
takemoto
on 13 Jul 2021
エラーの原因を調べ切れていませんが、シミュレーション中のピッチパラメータを可変とす例題としては、以下が使えそうです。
ブロックを置き換えると(添付)、実行中にピッチを変えることはできますが、いかがでしょうか?
0 Comments
More Answers (0)
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!