Logic ProのScripter MIDIプラグインのGetParameter関数

GetParameter()関数は「var PluginParameters」で定義したパラメータから情報を取得します。パラメータの変数では、型、範囲の最小値と最大値、定義する範囲内でのデフォルト値などを指定できます。Scripter MIDIプラグインのコントロールを作成するも参照してください。

GetParameterの引数名は、定義したPluginParametersの名前の値と一致する必要があります。

対応するチュートリアル設定を読み込んで、スクリプトエディタにスクリプトを表示してください。コードおよびコメントの構文構造とレイアウトの理解に役立ちます。スクリプトエディタを使うを参照してください。

チュートリアルスクリプト5: ベロシティスライダ

「/*」の後ろのテキストは、JavaScriptコードについて説明するコメントを示します。

function HandleMIDI(event) {event.velocity = GetParameter("Note Velocity"); /* retrieves "Note Velocity" information from the defined "Note Velocity" parameter */event.send(); /* sends the note event */}var PluginParameters = [{name:"Note Velocity", type:"lin", minValue:1, maxValue:127, numberOfSteps:126, defaultValue:80"}]; /* create a linear parameter called "Note Velocity" with a range of 1 to 127, and a default value of 80 */

ガイドをダウンロード:

Logic Proユーザガイド: Apple Books

Logic Pro音源: Apple Books

Logic Proエフェクト: Apple Books

Morty Proxy This is a proxified and sanitized view of the page, visit original site.
役に立ちましたか?
入力可能な文字数: 250
入力可能な文字数は 250 です。
フィードバックありがとうございます。
Morty Proxy This is a proxified and sanitized view of the page, visit original site.