元編程參考文件

Euterpea 音樂

42 個節點

本頁內容 42

漸快

函數

Quickening evenly so the phrase lasts 1 - amount times as long (Euterpea's Accelerando).

簽名
漸快(音樂: Music, 幅度: 數字) -> Music
Music Accelerando(Music music, double amount = 0.25)

參數

名稱型別預設值說明
音樂Music—The phrase.
幅度數字0.250.25 takes three quarters as long; below 1.

返回

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

重音

函數

Every note struck harder or softer by a factor (Euterpea's Dyn (Accent x)).

簽名
重音(音樂: Music, 倍數: 數字) -> Music
Music Accent(Music music, double factor = 1.2)

參數

名稱型別預設值說明
音樂Music—The phrase.
倍數數字1.21.2 is a fifth harder.

返回

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

奏法

函數

Each note sounding for only part of its length - 0.5 is staccato, 1 legato - while the rhythm stays where it was.

簽名
奏法(音樂: Music, 比例: 數字) -> Music
Music Articulate(Music music, double fraction = 0.5)

參數

名稱型別預設值說明
音樂Music—The music.
比例數字0.5How much of each note sounds.

返回

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

和絃

函數

Pieces of music all at once (Euterpea's chord).

簽名
和絃(部件: Music 陣列) -> Music
Music Chord(Music[] parts)

參數

名稱型別預設值說明
部件Music 陣列—The pieces.

返回

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

和絃(根音)

函數

A chord built on a root: a triad, a seventh, a suspension.

簽名
和絃(根音) -> Music
    根音: Note Name
    性質: Chord Quality
    八度: 整數
    時值: Note Value
Music ChordOf(
    NoteName root = NoteName.C,
    ChordQuality quality = ChordQuality.Major,
    int octave = 4,
    NoteValue value = NoteValue.Half)

參數

名稱型別預設值說明
根音Note NameCThe chord's root.
性質Chord QualityMajorIts kind.
八度整數4The root's octave.
時值Note ValueHalfHow long it is held.

返回

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

漸強

函數

Growing louder evenly across the phrase, ending 1 + amount times as loud (Euterpea's Crescendo).

簽名
漸強(音樂: Music, 幅度: 數字) -> Music
Music Crescendo(Music music, double amount = 0.5)

參數

名稱型別預設值說明
音樂Music—The phrase.
幅度數字0.50.5 ends half again as loud.

返回

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

擷取

函數

The first part of the music, up to a length (Euterpea's cut).

簽名
擷取(音樂: Music, 長度: 文字) -> Music
Music Cut(Music music, string length = "1")

參數

名稱型別預設值說明
音樂Music—The music.
長度文字1How much to keep, such as 1 for a bar of 4/4 or 3/4.

返回

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

自然音階移調

函數

Every note moved by steps of the key's scale rather than by semitones: up a third in C major moves C to E and D to F.

簽名
自然音階移調(音樂: Music, 級數: 整數) -> Music
Music DiatonicTranspose(Music music, int steps = 2)

參數

名稱型別預設值說明
音樂Music—The music.
級數整數2Scale steps; negative is down.

返回

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

漸弱

函數

Growing softer evenly across the phrase, ending 1 - amount times as loud (Euterpea's Diminuendo).

簽名
漸弱(音樂: Music, 幅度: 數字) -> Music
Music Diminuendo(Music music, double amount = 0.5)

參數

名稱型別預設值說明
音樂Music—The phrase.
幅度數字0.50.5 ends half as loud.

返回

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

鼓

函數

A drum hit on the General MIDI kit.

簽名
鼓(鼓: Drum Sound, 時值: Note Value) -> Music
Music Drum(
    DrumSound drum = DrumSound.BassDrum,
    NoteValue value = NoteValue.Quarter)

參數

名稱型別預設值說明
鼓Drum SoundBass drumWhich drum.
時值Note ValueQuarterHow long until the next thing in the line.

返回

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

力度

函數

Played softer or louder: a MIDI velocity, 1 to 127.

簽名
力度(音樂: Music, 力度: 整數) -> Music
Music Dynamics(Music music, int velocity = 64)

參數

名稱型別預設值說明
音樂Music—The music.
力度整數64How hard each note is struck; 64 is mezzo-forte, 100 forte.

返回

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

從 MIDI 讀取

函數

Music read out of a MIDI document - each channel a part on its instrument (Euterpea's fromMidi).

簽名
從 MIDI 讀取(MIDI: MidiDocument) -> Music
Music FromMidi(MidiDocument midi)

參數

名稱型別預設值說明
MIDIMidiDocument—The MIDI document.

返回

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

從樂譜讀取

函數

Music read out of a score written in Cantus numbered notation, so it can be transposed, repeated or combined like any other music.

簽名
從樂譜讀取(樂譜: Musical Score) -> Music
Music FromScore(FScoreSheet score)

參數

名稱型別預設值說明
樂譜Musical Score—The score sheet, from Parse.

返回

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

樂器

函數

Played on a General MIDI instrument (Euterpea's instrument); the innermost instrument a note is inside wins.

簽名
樂器(音樂: Music, 樂器: General Midi Instrument) -> Music
Music Instrument(
    Music music,
    GeneralMidiInstrument instrument = GeneralMidiInstrument.AcousticGrandPiano)

參數

名稱型別預設值說明
音樂Music—The music.
樂器General Midi InstrumentAcoustic grand pianoThe instrument.

返回

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

倒影

函數

The melody upside down about its first note (Euterpea's invert): a step up becomes a step down.

簽名
倒影(音樂: Music) -> Music
Music Invert(Music music)

參數

名稱型別預設值說明
音樂Music—The music.

返回

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

調號

函數

The music in a key: its ornaments and diatonic transpositions step through that key's scale (Euterpea's KeySig).

簽名
調號(音樂: Music, 主音: Note Name, 調式: Scale Mode) -> Music
Music KeySignature(
    Music music,
    NoteName tonic = NoteName.C,
    ScaleMode mode = ScaleMode.Major)

參數

名稱型別預設值說明
音樂Music—The music.
主音Note NameCThe key note.
調式Scale ModeMajorThe scale.

返回

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

連奏

函數

Every note held over into the next (Euterpea's Legato).

簽名
連奏(音樂: Music, 比例: 數字) -> Music
Music Legato(Music music, double fraction = 1.1)

參數

名稱型別預設值說明
音樂Music—The phrase.
比例數字1.11.1 holds each note a tenth longer.

返回

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

長度

函數

How long the music lasts, as a fraction of a whole note (Euterpea's dur): 1 is a bar of 4/4.

簽名
長度(音樂: Music) -> 文字
string Length(Music music)

參數

名稱型別預設值說明
音樂Music—The music.

返回

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

連線

函數

Pieces of music one after another (Euterpea's line).

簽名
連線(部件: Music 陣列) -> Music
Music Line(Music[] parts)

參數

名稱型別預設值說明
部件Music 陣列—The pieces, in order.

返回

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

力度記號

函數

The phrase played at a written dynamic, ppp to fff (Euterpea's StdLoudness).

簽名
力度記號(音樂: Music, 記號: Standard Dynamic) -> Music
Music Loudness(
    Music music,
    StandardDynamic marking = StandardDynamic.MF)

參數

名稱型別預設值說明
音樂Music—The phrase.
記號Standard DynamicMFThe dynamic.

返回

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

音符

函數

A note: a pitch held for a note value.

簽名
音符(音名: Note Name, 八度: 整數, 時值: Note Value) -> Music
Music Note(
    NoteName name = NoteName.C,
    int octave = 4,
    NoteValue value = NoteValue.Quarter)

參數

名稱型別預設值說明
音名Note NameCThe note's name.
八度整數4Its octave; middle C is C4.
時值Note ValueQuarterHow long it lasts.

返回

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

音符(文字)

函數

A note written as text: a pitch such as C4, F#3 or Bb2, and a length such as 1/4, 3/16, 1/4. or qn.

簽名
音符(文字)(音高: 文字, 時長: 文字) -> Music
Music NoteOf(string pitch = "C4", string length = "1/4")

參數

名稱型別預設值說明
音高文字C4The pitch, in scientific notation, or a MIDI key.
時長文字1/4The length, as a fraction of a whole note or Euterpea's name for it.

返回

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

音符序列

函數

A line of notes written as text, one after another: pitches and lengths separated by spaces, each note pitch:length (the length defaulting to the one before), and r for a rest - C4:qn E4 G4 C5:hn r:qn.

簽名
音符序列(音符: 文字) -> Music
Music Notes(string notes = "C4:qn E4 G4 C5:hn")

參數

名稱型別預設值說明
音符文字C4:qn E4 G4 C5:hnThe notes.

返回

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

延後

函數

The music after a stretch of silence (Euterpea's offset) - how a canon's second voice enters late.

簽名
延後(音樂: Music, 延遲: 文字) -> Music
Music Offset(Music music, string delay = "1")

參數

名稱型別預設值說明
音樂Music—The music.
延遲文字1How long to wait, such as 1 for a bar of 4/4.

返回

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

裝飾音

函數

Every note of the phrase ornamented - a trill, a mordent, a turn, a rolled chord - with neighbours from the key in force.

簽名
裝飾音(音樂: Music, 裝飾音: Ornament Kind) -> Music
Music Ornament(
    Music music,
    OrnamentKind ornament = OrnamentKind.Trill)

參數

名稱型別預設值說明
音樂Music—The phrase.
裝飾音Ornament KindTrillWhich ornament.

返回

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

演奏

函數

The music as the notes it plays: when each starts, how long it sounds, which key, how hard, on what (Euterpea's perform).

簽名
演奏(音樂: Music, 每分鐘拍數: 數字) -> Music Event 陣列
MusicEvent[] Perform(Music music, double beatsPerMinute = 120)

參數

名稱型別預設值說明
音樂Music—The music.
每分鐘拍數數字120Quarter notes a minute.

返回

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

去除開頭

函數

The music without its first part, up to a length (Euterpea's remove).

簽名
去除開頭(音樂: Music, 長度: 文字) -> Music
Music Remove(Music music, string length = "1")

參數

名稱型別預設值說明
音樂Music—The music.
長度文字1How much to drop.

返回

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

重複

函數

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

簽名
重複(音樂: Music, 次數: 整數) -> Music
Music Repeat(Music music, int times = 2)

參數

名稱型別預設值說明
音樂Music—The music.
次數整數2How many times.

返回

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

休止符

函數

Silence for a note value.

簽名
休止符(時值: Note Value) -> Music
Music Rest(NoteValue value = NoteValue.Quarter)

參數

名稱型別預設值說明
時值Note ValueQuarterHow long.

返回

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

逆行

函數

The music backwards in time (Euterpea's retro).

簽名
逆行(音樂: Music) -> Music
Music Retrograde(Music music)

參數

名稱型別預設值說明
音樂Music—The music.

返回

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

漸慢

函數

Slowing evenly so the phrase lasts 1 + amount times as long; what follows starts that much later (Euterpea's Ritardando).

簽名
漸慢(音樂: Music, 幅度: 數字) -> Music
Music Ritardando(Music music, double amount = 0.5)

參數

名稱型別預設值說明
音樂Music—The phrase.
幅度數字0.50.5 takes half again as long.

返回

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

儲存 MIDI

函數

Saves the music as a Standard MIDI File, creating the folder if it is not there (Euterpea's writeMidi).

簽名
儲存 MIDI(音樂: Music, 路徑: 文字, 每分鐘拍數: 數字) -> 文字
string SaveMidi(
    Music music,
    string path,
    double beatsPerMinute = 120)

參數

名稱型別預設值說明
音樂Music—The music.
路徑文字—Where to write it; a .mid name is conventional.
每分鐘拍數數字120Quarter notes a minute.

返回

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

音階

函數

The notes of a scale, rising from its tonic, each for a note value.

簽名
音階 -> Music
    主音: Note Name
    調式: Scale Mode
    八度: 整數
    時值: Note Value
    包含高八度: 真否
Music Scale(
    NoteName tonic = NoteName.C,
    ScaleMode mode = ScaleMode.Major,
    int octave = 4,
    NoteValue value = NoteValue.Eighth,
    bool includeOctave = true)

參數

名稱型別預設值說明
主音Note NameCThe scale's first note.
調式Scale ModeMajorWhich scale.
八度整數4The tonic's octave.
時值Note ValueEighthEach note's length.
包含高八度真否TrueWhether to end on the tonic an octave up.

返回

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

縮放時值

函數

Every note's length multiplied, without changing the tempo marking (Euterpea's scaleDurations): 2 doubles each length.

簽名
縮放時值(音樂: Music, 倍數: 文字) -> Music
Music ScaleLengths(Music music, string factor = "2")

參數

名稱型別預設值說明
音樂Music—The music.
倍數文字2The multiplier, as a number or fraction.

返回

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

秒數

函數

How long the music lasts in seconds at a tempo.

簽名
秒數(音樂: Music, 每分鐘拍數: 數字) -> 數字
double Seconds(Music music, double beatsPerMinute = 120)

參數

名稱型別預設值說明
音樂Music—The music.
每分鐘拍數數字120Quarter notes a minute.

返回

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

圓滑奏

函數

Every note but the last held over into the next, as under a slur (Euterpea's Slurred).

簽名
圓滑奏(音樂: Music, 比例: 數字) -> Music
Music Slurred(Music music, double fraction = 1.1)

參數

名稱型別預設值說明
音樂Music—The phrase.
比例數字1.1How long each slurred note is held.

返回

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

斷奏

函數

Every note of the phrase short, sounding for a fraction of its length (Euterpea's Staccato).

簽名
斷奏(音樂: Music, 比例: 數字) -> Music
Music Staccato(Music music, double fraction = 0.5)

參數

名稱型別預設值說明
音樂Music—The phrase.
比例數字0.50.5 sounds half of each note.

返回

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

速度

函數

Played faster or slower (Euterpea's tempo): 2 is twice as fast and half as long, 1/2 half as fast.

簽名
速度(音樂: Music, 倍數: 文字) -> Music
Music Tempo(Music music, string factor = "2")

參數

名稱型別預設值說明
音樂Music—The music.
倍數文字2The speed, as a number or fraction such as 3/2.

返回

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

然後

函數

One piece, then another (Euterpea's :+:).

簽名
然後(先: Music, 後: Music) -> Music
Music Then(Music first, Music second)

參數

名稱型別預設值說明
先Music—What comes first.
後Music—What comes after.

返回

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

轉為 MIDI

函數

The music as a MIDI document: one track per instrument, drums on channel 10 (Euterpea's toMidi).

簽名
轉為 MIDI(音樂: Music, 每分鐘拍數: 數字) -> MidiDocument
MidiDocument ToMidi(Music music, double beatsPerMinute = 120)

參數

名稱型別預設值說明
音樂Music—The music.
每分鐘拍數數字120Quarter notes a minute.

返回

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

移調

函數

Every note moved up or down by semitones (Euterpea's transpose); 12 is an octave.

簽名
移調(音樂: Music, 半音: 整數) -> Music
Music Transpose(Music music, int semitones = 12)

參數

名稱型別預設值說明
音樂Music—The music.
半音整數12How far up; negative is down.

返回

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

同時

函數

Two pieces at once (Euterpea's :=:).

簽名
同時(上聲部: Music, 下聲部: Music) -> Music
Music With(Music top, Music bottom)

參數

名稱型別預設值說明
上聲部Music—One piece.
下聲部Music—The other.

返回

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