元编程参考文档

节奏型

19 个节点

本页内容 19

轮换节奏型

函数

Patterns played one a cycle in turn: verse, verse, chorus.

签名
轮换节奏型(节奏型: Pattern 数组) -> Pattern
Pattern Alternate(Pattern[] patterns)

参数

名称类型默认值说明
节奏型Pattern 数组—The patterns, in order.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

琶音化

函数

Every chord played as an arpeggio across its own time.

签名
琶音化(节奏型: Pattern, 模式: Arpeggio Mode) -> Pattern
Pattern Arpeggiate(
    Pattern pattern,
    ArpeggioMode mode = ArpeggioMode.Up)

参数

名称类型默认值说明
节奏型Pattern—The pattern, with chords written as [c, e, g].
模式Arpeggio ModeUpWhich way the notes run.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

随机删减

函数

Steps dropped at random, the same ones every time for the same seed: a hi-hat line that breathes.

签名
随机删减(节奏型: Pattern, 概率: 数字, 种子: 整数) -> Pattern
Pattern Degrade(
    Pattern pattern,
    double probability = 0.5,
    int seed = 0)

参数

名称类型默认值说明
节奏型Pattern—The pattern.
概率数字0.5The chance each step is dropped, 0 to 1.
种子整数0Which random choices.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

欧几里得节奏

函数

A pattern spread over some steps by Euclid's algorithm, the rhythm of much of the world's music: 3 over 8 is the tresillo.

签名
欧几里得节奏 -> Pattern
    节奏型: Pattern
    击数: 整数
    步数: 整数
    旋转: 整数
Pattern Euclid(
    Pattern pattern,
    int hits = 3,
    int steps = 8,
    int rotation = 0)

参数

名称类型默认值说明
节奏型Pattern—What plays on each hit.
击数整数3How many hits.
步数整数8Over how many steps.
旋转整数0Steps it is turned left by.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

每隔

函数

Every nth cycle - the first, then every n after - another pattern plays instead: a fill at the end of a phrase, a variation every fourth bar.

签名
每隔(节奏型: Pattern, 间隔: 整数, 替代: Pattern) -> Pattern
Pattern Every(Pattern pattern, int n = 4, Pattern instead)

参数

名称类型默认值说明
节奏型Pattern—What usually plays.
间隔整数4How often the other plays.
替代Pattern—What plays every nth cycle.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

加快

函数

A pattern played faster: 2 fits it twice into each cycle.

签名
加快(节奏型: Pattern, 倍数: 文本) -> Pattern
Pattern Fast(Pattern pattern, string factor = "2")

参数

名称类型默认值说明
节奏型Pattern—The pattern.
倍数文本2How many times faster, as a number or fraction.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

轮转节奏型

函数

Each cycle starts a step further into the pattern, so it walks round on itself.

签名
轮转节奏型(节奏型: Pattern, 等分数: 整数) -> Pattern
Pattern Iter(Pattern pattern, int divisions = 4)

参数

名称类型默认值说明
节奏型Pattern—The pattern.
等分数整数4How many places it walks through before it comes back.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

错位叠加

函数

A pattern with a copy of itself laid over it, a little later and moved in pitch: an echo, a canon, a harmony a step behind.

签名
错位叠加(节奏型: Pattern, 时间: 文本, 半音: 整数) -> Pattern
Pattern Off(
    Pattern pattern,
    string time = "1/8",
    int semitones = 7)

参数

名称类型默认值说明
节奏型Pattern—The pattern.
时间文本1/8How much later the copy plays, as a fraction of a cycle.
半音整数7How far the copy is moved; drums stay.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

回文

函数

A pattern forwards one cycle and backwards the next.

签名
回文(节奏型: Pattern) -> Pattern
Pattern Palindrome(Pattern pattern)

参数

名称类型默认值说明
节奏型Pattern—The pattern.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

节奏型

函数

Reads a pattern: steps share a cycle; [ ] groups, , stacks, < > alternates by cycle, * and / change speed, ! repeats, @ and _ lengthen, (3,8) spreads by Euclid, ? drops at random, | chooses at random, .. runs a range, { } steps layers in polymeter; ~ rests. Steps are notes (c4, eb, f#3), MIDI keys, or drums (bd sd hh oh cp rim lt mt ht cr rd cb).

签名
节奏型(文本: 文本) -> Pattern
Pattern Parse(string text = "bd [~ bd] sd ~, hh*8")

参数

名称类型默认值说明
文本文本bd [~ bd] sd ~, hh*8The pattern.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

重复步

函数

Every step played several times in its own time: a quarter note becomes two eighths.

签名
重复步(节奏型: Pattern, 次数: 整数) -> Pattern
Pattern Ply(Pattern pattern, int times = 2)

参数

名称类型默认值说明
节奏型Pattern—The pattern.
次数整数2How many times each step plays.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

反转节奏型

函数

Each cycle of a pattern played backwards.

签名
反转节奏型(节奏型: Pattern) -> Pattern
Pattern Reverse(Pattern pattern)

参数

名称类型默认值说明
节奏型Pattern—The pattern.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

音阶节奏型

函数

A pattern of numbers read as degrees of a scale: "0 2 4 7" in C major is C E G C, and the same numbers in D Dorian are another tune.

签名
音阶节奏型 -> Pattern
    节奏型: Pattern
    主音: 文本
    模式: Scale Mode
Pattern Scale(
    Pattern pattern,
    string tonic = "C4",
    ScaleMode mode = ScaleMode.Major)

参数

名称类型默认值说明
节奏型Pattern—The pattern of degrees, 0 the tonic.
主音文本C4The note degree 0 is, such as C4.
模式Scale ModeMajorThe scale.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

平移节奏型

函数

A pattern moved later in time by a fraction of a cycle; a negative amount moves it earlier.

签名
平移节奏型(节奏型: Pattern, 周期: 文本) -> Pattern
Pattern Shift(Pattern pattern, string cycles = "1/4")

参数

名称类型默认值说明
节奏型Pattern—The pattern.
周期文本1/4How far, as a number or fraction of a cycle, such as 1/4.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

放慢

函数

A pattern played slower: 2 spreads it over two cycles.

签名
放慢(节奏型: Pattern, 倍数: 文本) -> Pattern
Pattern Slow(Pattern pattern, string factor = "2")

参数

名称类型默认值说明
节奏型Pattern—The pattern.
倍数文本2How many times slower.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

叠加节奏型

函数

Patterns played together: drums, bass and chords as one groove.

签名
叠加节奏型(节奏型: Pattern 数组) -> Pattern
Pattern Stack(Pattern[] patterns)

参数

名称类型默认值说明
节奏型Pattern 数组—The layers.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

摇摆

函数

Swing: in each beat-sized slice of the cycle, the off-beat is pushed late.

签名
摇摆(节奏型: Pattern, 幅度: 文本, 细分: 整数) -> Pattern
Pattern Swing(
    Pattern pattern,
    string amount = "1/6",
    int subdivision = 4)

参数

名称类型默认值说明
节奏型Pattern—The pattern.
幅度文本1/6How late, as a fraction of a slice: 1/6 puts the off-beat on the last triplet.
细分整数4Slices a cycle: 4 swings the eighths of a bar of 4/4.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

节奏型转音乐

函数

Some cycles of a pattern as music, for the Euterpea nodes, Render Music and Play Part.

签名
节奏型转音乐 -> Music
    节奏型: Pattern
    循环数: 整数
    循环长度: 文本
Music ToMusic(
    Pattern pattern,
    int cycles = 4,
    string cycleLength = "1")

参数

名称类型默认值说明
节奏型Pattern—The pattern.
循环数整数4How many cycles.
循环长度文本1How long a cycle lasts, in whole notes: 1 is a bar of 4/4.

返回

音乐Music
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐

移调节奏型

函数

Every note of a pattern moved by some semitones; drums stay.

签名
移调节奏型(节奏型: Pattern, 半音数: 整数) -> Pattern
Pattern Transpose(Pattern pattern, int semitones = 12)

参数

名称类型默认值说明
节奏型Pattern—The pattern.
半音数整数12How far; 12 is an octave.

返回

节奏型Pattern
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
节奏型
所属包
音乐