元編程參考文件

音樂

32 個節點

本頁內容 32

Articulate

函數

Each note sounding for Fraction of its length - 0.5 staccato, 1 legato - while still taking its whole length in time.

簽名
Articulate(Music: Music, fraction: 數字) -> Music
Music Articulate(Music Music, double fraction)

參數

名稱型別預設值說明
MusicMusic—
fraction數字—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Cut

函數

The first Length of the music, a note crossing the cut shortened to end on it (Euterpea's cut).

簽名
Cut(Music: Music, length: Duration) -> Music
Music Cut(Music Music, Duration length)

參數

名稱型別預設值說明
MusicMusic—
lengthDuration—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Equals

函數

此節點沒有文件說明。

過載 1/2

簽名
Equals(Music: Music, obj: 任意) -> 真否
bool Equals(Music Music, object obj)

參數

名稱型別預設值說明
MusicMusic—
obj任意—

返回

結果真否

過載 2/2

簽名
Equals(Music: Music, other: Music) -> 真否
bool Equals(Music Music, Music other)

參數

名稱型別預設值說明
MusicMusic—
otherMusic—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Length

函數

How long the music lasts, in whole notes, taking tempo changes into account (Euterpea's dur).

簽名
Length(Music: Music) -> Duration
Duration Length(Music Music)

參數

名稱型別預設值說明
MusicMusic—

返回

結果Duration
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Get Hash Code

函數

此節點沒有文件說明。

簽名
GetHashCode(Music: Music) -> 整數
int GetHashCode(Music Music)

參數

名稱型別預設值說明
MusicMusic—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

In Key

函數

The music in a key, which its ornaments and diatonic transposition read their steps from.

簽名
InKey(Music: Music, tonic: Note Name, mode: Scale Mode) -> Music
Music InKey(Music Music, NoteName tonic, ScaleMode mode)

參數

名稱型別預設值說明
MusicMusic—
tonicNote Name—
modeScale Mode—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Instrument

函數

Played on a General MIDI instrument (Euterpea's instrument).

簽名
Instrument -> Music
    Music: Music
    instrument: General Midi Instrument
Music Instrument(Music Music, GeneralMidiInstrument instrument)

參數

名稱型別預設值說明
MusicMusic—
instrumentGeneral Midi Instrument—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Invert

函數

The melody turned upside down about Axis - an interval up becomes the same interval down (Euterpea's invertAt); about the first note when no axis is given (invert).

簽名
Invert(Music: Music, axis: 可選 Pitch) -> Music
Music Invert(Music Music, Pitch? axis)

參數

名稱型別預設值說明
MusicMusic—
axis可選 Pitch—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Map Pitches

函數

Every pitch passed through Map, rests and structure unchanged (Euterpea's mMap over pitches).

簽名
MapPitches(Music: Music, map: Func<Pitch, Pitch>) -> Music
Music MapPitches(Music Music, Func<Pitch, Pitch> map)

參數

名稱型別預設值說明
MusicMusic—
mapFunc<Pitch, Pitch>—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Offset

函數

The music after Delay of silence (Euterpea's offset).

簽名
Offset(Music: Music, delay: Duration) -> Music
Music Offset(Music Music, Duration delay)

參數

名稱型別預設值說明
MusicMusic—
delayDuration—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Percussion

函數

Played on the drum kit: every note's key chooses a drum.

簽名
Percussion(Music: Music) -> Music
Music Percussion(Music Music)

參數

名稱型別預設值說明
MusicMusic—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Perform

函數

The music as timed events, at Beats Per Minute quarter notes a minute (Euterpea's perform with its default context: a grand piano at velocity 100, articulation 1).

簽名
Perform -> IReadOnlyList<Music Event>
    Music: Music
    beatsPerMinute: 數字
IReadOnlyList<MusicEvent> Perform(
    Music Music,
    double beatsPerMinute = 120)

參數

名稱型別預設值說明
MusicMusic—
beatsPerMinute數字120

返回

結果IReadOnlyList<Music Event>
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Phrase

函數

The music played with Euterpea's phrase attributes, the last first.

簽名
Phrase(Music: Music, attributes: Phrase Attribute 陣列) -> Music
Music Phrase(Music Music, params PhraseAttribute[] attributes)

參數

名稱型別預設值說明
MusicMusic—
attributesPhrase Attribute 陣列—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Range

函數

The lowest and highest key any note reaches, after transpositions; null for music with no notes.

簽名
Range(Music: Music) -> 可選 (Pitch, Pitch)
(Pitch, Pitch)? Range(Music Music)

參數

名稱型別預設值說明
MusicMusic—

返回

結果可選 (Pitch, Pitch)
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Remove

函數

The music without its first Length, a note crossing the cut shortened to begin on it (Euterpea's remove).

簽名
Remove(Music: Music, length: Duration) -> Music
Music Remove(Music Music, Duration length)

參數

名稱型別預設值說明
MusicMusic—
lengthDuration—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Repeat

函數

The music Times times over (Euterpea's times).

簽名
Repeat(Music: Music, times: 整數) -> Music
Music Repeat(Music Music, int times)

參數

名稱型別預設值說明
MusicMusic—
times整數—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Retrograde

函數

The music backwards in time (Euterpea's retro): a line reversed, and in a chord the shorter part shifted so every part still ends together.

簽名
Retrograde(Music: Music) -> Music
Music Retrograde(Music Music)

參數

名稱型別預設值說明
MusicMusic—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Scale Lengths

函數

Every length multiplied by Factor, without a tempo marking (Euterpea's scaleDurations).

簽名
ScaleLengths(Music: Music, factor: Duration) -> Music
Music ScaleLengths(Music Music, Duration factor)

參數

名稱型別預設值說明
MusicMusic—
factorDuration—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Tempo

函數

Played Factor times as fast (Euterpea's tempo); 2 is twice as fast and half as long.

簽名
Tempo(Music: Music, factor: Duration) -> Music
Music Tempo(Music Music, Duration factor)

參數

名稱型別預設值說明
MusicMusic—
factorDuration—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Then

函數

This, then Next.

簽名
Then(Music: Music, next: Music) -> Music
Music Then(Music Music, Music next)

參數

名稱型別預設值說明
MusicMusic—
nextMusic—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

To Midi

函數

The music as a Standard MIDI File document: a conductor track with the tempo, then one track per instrument, drums on channel 10 (Euterpea's toMidi).

簽名
ToMidi -> MidiDocument
    Music: Music
    beatsPerMinute: 數字
    ticksPerQuarterNote: 整數
MidiDocument ToMidi(
    Music Music,
    double beatsPerMinute = 120,
    int ticksPerQuarterNote = 480)

參數

名稱型別預設值說明
MusicMusic—
beatsPerMinute數字120Quarter notes a minute.
ticksPerQuarterNote整數480The file's time resolution.

返回

結果MidiDocument
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

To String

函數

The music written as Euterpea writes it: c 4 qn :+: (e 4 qn :=: g 4 qn).

簽名
ToString(Music: Music) -> 文字
string ToString(Music Music)

參數

名稱型別預設值說明
MusicMusic—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Transpose

函數

Every note Semitones higher (Euterpea's transpose).

簽名
Transpose(Music: Music, semitones: 整數) -> Music
Music Transpose(Music Music, int semitones)

參數

名稱型別預設值說明
MusicMusic—
semitones整數—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Velocity

函數

Played at a MIDI velocity, 1 (barely) to 127 (as hard as possible).

簽名
Velocity(Music: Music, velocity: 整數) -> Music
Music Velocity(Music Music, int velocity)

參數

名稱型別預設值說明
MusicMusic—
velocity整數—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

With

函數

This and Other together.

簽名
With(Music: Music, other: Music) -> Music
Music With(Music Music, Music other)

參數

名稱型別預設值說明
MusicMusic—
otherMusic—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

With Cut

函數

Both together, cut to the shorter (Euterpea's /=:).

簽名
WithCut(Music: Music, other: Music) -> Music
Music WithCut(Music Music, Music other)

參數

名稱型別預設值說明
MusicMusic—
otherMusic—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Chord

函數

Every piece at once (Euterpea's chord).

簽名
Chord(parts: IEnumerable<Music>) -> Music
Music Chord(IEnumerable<Music> parts)

參數

名稱型別預設值說明
partsIEnumerable<Music>—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

From Midi

函數

Reads music out of a MIDI document: each channel's notes as a chord of lines, each note placed at its time by a rest before it, on the instrument its channel was set to; channel 10 is drums (Euterpea's fromMidi, simplified).

簽名
FromMidi(document: MidiDocument, grid: 整數) -> Music
Music FromMidi(MidiDocument document, int grid = 64)

參數

名稱型別預設值說明
documentMidiDocument—
grid整數64

返回

結果Music

備註

Lengths are quantized to Grid of a whole note - 1/64 by default - since MIDI times are ticks and music lengths are fractions.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Empty

函數

No music: a rest of no length, the identity of both Music.Then and Music.With.

簽名
Empty() -> Music
Music Empty()

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Line

函數

Each piece after the one before (Euterpea's line).

簽名
Line(parts: IEnumerable<Music>) -> Music
Music Line(IEnumerable<Music> parts)

參數

名稱型別預設值說明
partsIEnumerable<Music>—

返回

結果Music
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Op Equality

函數

此節點沒有文件說明。

簽名
op_Equality(left: Music, right: Music) -> 真否
bool op_Equality(Music left, Music right)

參數

名稱型別預設值說明
leftMusic—
rightMusic—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂

Op Inequality

函數

此節點沒有文件說明。

簽名
op_Inequality(left: Music, right: Music) -> 真否
bool op_Inequality(Music left, Music right)

參數

名稱型別預設值說明
leftMusic—
rightMusic—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音樂
所屬包
音樂