npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@holzchopf/flstudio-control-surface

v1.0.0

Published

Reads and writes FL Studio Control Surface plugin states.

Downloads

4

Readme

This file was auto-generated with zdoccer.js 2.0.3

Index


original Markdown from src/_preamble.md

@holzchopf/flstudio-control-surface

Allows to read and write FL Studio Control Surface states.


transformed Javadoc from src/control-surface-control.ts

class ControlSurfaceControl extends ControlSurfaceEventGroup

Class representing a control on the surface. Extends ControlSurfaceEventGroup .

get name(): string | undefined

Name of this control.

get enable(): ControlEnable | undefined

ControlEnable of this control.


transformed Javadoc from src/control-surface-event-group.ts

class ControlSurfaceEventGroup

Class representing a group of ControlSurfaceEvent s.

getEventOfType(type: ControlSurfaceEventTypeId)

Returns the first event in this group of given type id.

getEventOfTypeName(type: ControlSurfaceEventTypeName)

Returns the first event in this group of given type name.

getEvents(): ControlSurfaceEvent[]

Returns the ControlSurfaceEvent s making up this group.

setEvents(events: ControlSurfaceEvent[])

Sets the ControlSurfaceEvent s making up this group.


transformed Javadoc from src/control-surface-event-type.ts

type ControlSurfaceEventTypeName = keyof typeof ControlSurfaceEventTypeRaw

Known event names.

type ControlSurfaceEventTypeId = typeof ControlSurfaceEventTypeRaw[ControlSurfaceEventTypeName]

Known event IDs.

const ControlSurfaceEventType =

Types of the events in an ControlSurfaceEventGroup .

name: (id: number): ControlSurfaceEventTypeName | 'unknown' =>

Returns the name of a given event ID, or 'unknown'.

  • param id — Event ID.

byName: (name: string): ControlSurfaceEventTypeId | undefined =>

Returns the ID for a given event name, or undefined

  • param name — Event name.

transformed Javadoc from src/control-surface-event.ts

abstract class ControlSurfaceEvent<T = any>

Class for events.

type: number

Numeric ControlSurfaceEventType .

get typeName()

Name of ControlSurfaceEventType . Readonly.

value?: T

Event value. Data type varies by event type.

abstract getBinary(): ArrayBuffer

Creates the binary data for this event and returns it.

abstract setBinary(buffer: ArrayBuffer): void

Sets this event's values from binary data.

  • param buffer — Binary data.

static create(type: number)

Factory function to create a new specific ControlSurfaceEvent.

  • param type — ControlSurfaceEventType.

class ControlSurfaceBinaryEvent extends ControlSurfaceEvent<ArrayBuffer>

Event with binary value data.

class ControlSurfaceStringEvent extends ControlSurfaceEvent<string>

Event with string value data.

type ControlEnable =

Enabled controls will have a ControlSurfaceControlEnableEvent with a value of this type.

current?: number,

Current value. Float, 0 ... 1

default?: number,

Default value. Float, 0 ... 1

index?: number,

List index. Integer >= 0

class ControlSurfaceControlEnableEvent extends ControlSurfaceEvent<ControlEnable>

Enabled controls will have one of these events.


transformed Javadoc from src/control-surface.ts

class ControlSurface

Class representing an FL Studio Control Surface plugin state.

version: number = 1

State version number.

options = new ControlSurfaceOptions()

Surface options.

controls: ControlSurfaceControl[] = []

Controls on this surface.

getBinary(): ArrayBuffer

Creates the binary data for this surface and returns it.

setBinary(buffer: ArrayBuffer)

Sets this surface's values from binary data.

  • param buffer — Binary data.