p5.js で The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. とでてマイクのデータをとれないとき

事象 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. とでてマイクのデータをとれないときがある。 ユーザーの操作ない状態でマイクのデータをとれないと。 解決方法 以下のようにすればとれる。(コンソールにwarningは出たままだが) function setup()…