TrackInnerSelectionState

TrackInnerSelectionState

ピアノロールの選択状態。

TrackInnerSelectionState オブジェクトにアクセスするためには以下をお使いください。

  • JavaScript では SV.getMainEditor().getSelection()
  • Lua では SV:getMainEditor():getSelection()

継承

メソッド

clearAll() → {boolean}

継承元:

この選択状態が対応しているすべてのオブジェクトタイプについて、該当するオブジェクトの選択を解除します。選択に変更があった場合は真を返します。

戻り値:
boolean

clearGroups() → {boolean}

継承元:

すべての NoteGroupReference の選択を解除します。選択範囲に変更があれば真を返します。

戻り値:
boolean

clearNotes() → {boolean}

すべてのノートの選択を解除します。選択が変更された場合、 真を返します。

戻り値:
boolean

clearPitchControls() → {boolean}

すべてのピッチコントロールの選択を解除します。

(2.1.2 からサポート)

戻り値:
boolean

getIndexInParent() → {number}

継承元:

現在のオブジェクトの、親の中での添え字を取得します。Lua では、添え字は 1 から始まります。JavaScript では、添え字は 0 から始まります。

戻り値:
number

getParent() → {NestedObject|undefined}

継承元:

NestedObject を取得します。現在のオブジェクトが親に付いていない場合、undefined を返します。

戻り値:
NestedObject | undefined

getSelectedGroups() → {array}

継承元:

選択された NoteGroupReference の配列を、 選択順にしたがって取得します。

戻り値:

an array of NoteGroupReference

array

getSelectedNotes() → {array}

選択された Note の配列を、選択順に取得します。

戻り値:

An array of Note

array

getSelectedPitchControls() → {array}

選択されたピッチコントロールオブジェクトの配列を取得します。

(2.1.2 からサポート)

戻り値:
array

getSelectedPoints(parameterType) → {array}

指定されたパラメータタイプの選択されたオートメーションポイントの配列を取得します。

選択されたオートメーションポイントの値を取得するには、返された位置を Automation#get に渡してください。

パラメータ:
名前 細細
parameterType string

The parameter type (e.g., "pitchDelta", "loudness", etc.)

戻り値:

An array of Blick positions

array

hasSelectedContent() → {boolean}

継承元:

選択されているものがあるかどうか確認します。

戻り値:
boolean

hasSelectedGroups() → {boolean}

継承元:

NoteGroupReference が1つ以上選択されているか確認します。

戻り値:
boolean

hasSelectedNotes() → {boolean}

選択されている Note がひとつ以上あるかどうか確認します。

戻り値:
boolean

hasSelectedPitchControls() → {boolean}

選択されたピッチコントロールオブジェクトがあるかどうか確認します。

(2.1.2 からサポート)

戻り値:
boolean

hasUnfinishedEdits() → {boolean}

継承元:

選択されたオブジェクトに未完了の編集があるかどうか確認します。

例えば、ユーザがいくつかのノート / 制御点をドラッグしており、まだマウスを離していない場合、真を返します。

戻り値:
boolean

isMemoryManaged() → {boolean}

継承元:

現在のオブジェクトがメモリ管理されているかどうか(スクリプト環境によってガベージコレクションされるか)を確認します。

戻り値:
boolean

registerClearCallback()

継承元:

registerSelectionCallback()

継承元:

selectGroup(reference)

継承元:

選択にNoteGroupReference を追加します。

引数は、現在開いているプロジェクトに含まれている必要があります。

パラメータ:
名前 細細
reference NoteGroupReference

selectNote(note)

Note を選択します。ノートは、ピアノロールで開かれている NoteGroupReference の中になければなりません(MainEditorView#getCurrentGroup を参照)。

パラメータ:
名前 細細
note Note

selectPitchControls(controls)

ピッチコントロールオブジェクトを選択します。

(2.1.2 からサポート)

パラメータ:
名前 細細
controls array

Array of PitchControlPoint or PitchControlCurve objects

selectPoints(parameterType, positions)

指定されたパラメータタイプのオートメーションポイントを選択します。

パラメータ:
名前 細細
parameterType string

The parameter type

positions array

Array of Blick positions to select

unselectGroup(reference) → {boolean}

継承元:

NoteGroupReference の選択を解除します。選択範囲に変更があれば真を返します。

パラメータ:
名前 細細
reference NoteGroupReference
戻り値:
boolean

unselectNote(note) → {boolean}

Note の選択を解除します。選択が変更された場合、 真を返します。

パラメータ:
名前 細細
note Note
戻り値:
boolean

unselectPitchControls(controls)

ピッチコントロールオブジェクトの選択を解除します。

(2.1.2 からサポート)

パラメータ:
名前 細細
controls array

Array of PitchControlPoint or PitchControlCurve objects

unselectPoints(parameterType, positions)

指定されたパラメータタイプのオートメーションポイントの選択を解除します。

パラメータ:
名前 細細
parameterType string

The parameter type

positions array

Array of Blick positions to unselect