Token导航 LogoToken导航TokenDH.com
开发可写文件clawhub未标认证来源可访问clear审计通过

flstudio-scriptingflstudio 脚本编写

Agent Skill

flstudio-scripting 用于辅助 Python 项目开发、测试和数据处理,适合在 OpenClaw 中需要阅读 Python 代码、运行测试或整理脚本流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

47,467

周安装

1,939

GitHub Stars

1

下载量

15,357
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:flstudio-scripting(flstudio 脚本编写)
来源仓库:https://github.com/delorenj/flstudio-scripting
安装命令:
openclaw skills install flstudio-scripting
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install flstudio-scripting

简介

FL Studio Python 脚本,用于 MIDI 控制器开发、钢琴卷帘操作、Edison 音频编辑、工作流程自动化以及使用 PyFLP 进行 FLP 文件解析。用于编程配置、设备定制、MIDI 传输、宏和保存文件操作。涵盖 14 个 MIDI 脚本模块以及钢琴卷帘、Edison 和 PyFLP 上下文中的所有 427 多个 API 函数。

SKILL.md

name
flstudio-scripting
description
FL Studio Python scripting for MIDI controller development, piano roll manipulation, Edison audio editing, workflow automation, and FLP file parsing with PyFLP. Use for programmatic configuration, device customization, MIDI transport, macros, and save file manipulation. Covers all 427+ API functions across 14 MIDI scripting modules plus piano roll, Edison, and PyFLP contexts.

FL Studio Python Scripting

Complete reference for FL Studio's Python API: MIDI controller scripting (14 modules, 427+ functions), piano roll note manipulation, Edison audio editing, and FLP file parsing with PyFLP.

Quick Start

Requirements

  • FL Studio 20.8.4+, Python 3.6+

Check API Version

import general
print(f"API Version: {general.getVersion()}")

Script Installation

Place scripts in Shared\Python\User Scripts folder.


Three Scripting Contexts

1. MIDI Controller Scripting

Purpose: Control FL Studio through hardware MIDI controllers and send feedback to devices. Runs: Continuously while FL Studio is open. Available modules: transport, mixer, channels, arrangement, patterns, playlist, device, ui, general, plugins, screen, launchMapPages, utils, callbacks

Entry points:

def OnInit():
    """Called when script starts."""
    pass

def OnDeInit():
    """Called when script stops."""
    pass

def OnMidiMsg(msg):
    """Called for incoming MIDI messages."""
    pass

def OnControlChange(msg):
    """Called for CC messages."""
    pass

def OnNoteOn(msg):
    """Called for note-on messages."""
    pass

def OnRefresh(flags):
    """Called when FL Studio state changes."""
    pass

2. Piano Roll Scripting

Purpose: Manipulate notes and markers in the piano roll editor. Runs: Once when user invokes through Scripts menu. Available modules: flpianoroll, enveditor

import flpianoroll
score = flpianoroll.score
for note in score.notes:
    note.velocity = 0.8  # Set all velocities to 80%

3. Edison Audio Scripting

Purpose: Edit and process audio samples in Edison. Runs: Once within Edison's context. Available modules: enveditor


API Module Reference Map

Navigate to the appropriate reference file based on what you need to control. Read these files ONLY when you need specific API signatures.

Core Workflow Modules

ModuleFunctionsWhat It ControlsReference
transport20Play, stop, record, position, tempo, loopingapi-transport.md
mixer69Track volume/pan/mute/solo, EQ, routing, effectsapi-mixer.md
channels48Channel rack, grid bits, step sequencer, notesapi-channels.md

Arrangement Modules

ModuleFunctionsWhat It ControlsReference
arrangement + patterns9 + 25Markers, time, pattern control, groupsapi-arrangement-patterns.md
playlist41Playlist tracks, live mode, performance, blocksapi-playlist.md

Device & Communication

ModuleFunctionsWhat It ControlsReference
device34MIDI I/O, sysex, dispatch, hardware refreshapi-device.md

UI & Application Control

ModuleFunctionsWhat It ControlsReference
ui + general71 + 24Windows, navigation, undo/redo, version, snapapi-ui-general.md

Plugins

ModuleFunctionsWhat It ControlsReference
plugins13Plugin parameters, presets, names, colorsapi-plugins.md

Specialized Hardware Display

ModuleFunctionsWhat It ControlsReference
screen + launchMapPages9 + 12AKAI Fire screen, launchpad page managementapi-screen-launchmap.md

Utilities, Constants & MIDI Reference

ModuleFunctionsWhat It ControlsReference
utils + constants21Color conversion, math, note names, MIDI tablesapi-utils-constants.md

Callbacks & FlMidiMsg

ModuleFunctionsWhat It ControlsReference
callbacks26All callback functions, FlMidiMsg class, event flowapi-callbacks.md

Non-MIDI Scripting APIs

Piano Roll & Edison

Note, Marker, ScriptDialog, score classes for piano roll manipulation plus Edison enveditor utilities. See piano-roll-edison.md

FLP File Parsing (PyFLP)

External library for reading/writing .flp project files without FL Studio running. Batch processing, analysis, automated generation. See pyflp.md


Common Patterns

Minimal MIDI Controller Skeleton

# name=My Controller
# url=https://example.com

import device
import mixer
import transport

def OnInit():
    if device.isAssigned():
        print(f"Connected: {device.getName()}")

def OnDeInit():
    print("Script shut down")

def OnControlChange(msg):
    if msg.data1 == 7:  # Volume CC
        mixer.setTrackVolume(mixer.trackNumber(), msg.data2 / 127.0)
        msg.handled = True

def OnNoteOn(msg):
    track = msg.data1 % 8
    mixer.setActiveTrack(track)
    msg.handled = True

def OnRefresh(flags):
    pass  # Update hardware display here

Key Pattern: Always Check Device Assignment

def OnInit():
    if not device.isAssigned():
        print("No output device linked!")
        return
    # Safe to use device.midiOutMsg() etc.

Key Pattern: Mark Events as Handled

def OnControlChange(msg):
    if msg.data1 == 7:
        mixer.setTrackVolume(0, msg.data2 / 127.0)
        msg.handled = True  # Prevent FL Studio from also processing this

Key Pattern: Send Feedback to Hardware

def OnRefresh(flags):
    if device.isAssigned():
        # Update volume fader LED
        vol = int(mixer.getTrackVolume(0) * 127)
        device.midiOutMsg(0xB0, 0, 7, vol)

For complete examples (MIDI learn, scale enforcer, LED feedback, batch quantization, sysex handling, performance monitoring, automation engine, debugging): See examples-patterns.md


Best Practices

Performance

  1. Cache module references at top level (import once)
  2. Avoid tight loops in MIDI callbacks (keep under 10ms)
  3. Batch UI updates; use device.directFeedback() for controller echo

Hardware Integration

  1. Always check device.isAssigned() before device functions
  2. Implement two-way sync for all controls (send feedback on state change)
  3. Test on real hardware (virtual ports behave differently)

Code Organization

  1. Separate MIDI mapping from business logic (use a controller class)
  2. Keep callbacks responsive; offload complex work
  3. Handle edge cases: invalid indices, missing devices, out-of-range values

Troubleshooting

Script Not Receiving MIDI

  1. Check device.isAssigned() returns True
  2. Verify MIDI input port in FL Studio MIDI Settings
  3. Ensure callback functions are defined at module level (not nested)
  4. Check MIDI message status bytes match expected values

Piano Roll Script Not Working

  1. Verify script is in Shared\Python\User Scripts folder
  2. Ensure a pattern is open in piano roll before running
  3. Access notes via flpianoroll.score.notes

Performance Issues

  1. Avoid complex calculations inside OnIdle() (called every ~20ms)
  2. Don't repeatedly query values that haven't changed
  3. Use device.setHasMeters() only if peak meters are needed

FAQ

  • Double-click detection: Use device.isDoubleClick(index)
  • Inter-script communication: Use device.dispatch(ctrlIndex, message)
  • LED control: device.midiOutMsg(0x90, 0, note, velocity) for note-on LEDs
  • processMIDICC vs OnControlChange: Use On* callbacks for modern code
  • GUI access: Limited through ui module; full UI automation not available
  • Multiple devices: Check device.getName() to identify, handle per-port

Resources

  • Official FL Studio API: https://www.image-line.com/fl-studio/modules/python-scripting/
  • PyFLP GitHub: https://github.com/demberto/PyFLP
  • API Functions: 427+ across 14 modules | Last Updated: 2025

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.39%
按下载量换算14,035

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills