Skip to content

Channel types

The channel type constants are returned by the channels.getChannelType() function, and describe the type of a channel within the channel rack.

import channels, midi

channel_type = channels.getChannelType(0)

if channel_type == midi.CT_Sampler:
    print("Channel is a sampler")

CT_Sampler module-attribute

CT_Sampler = 0

Sampler channel.

CT_Hybrid module-attribute

CT_Hybrid = 1

Generator plugin feeding internal sampler.

CT_TS404 module-attribute

CT_TS404 = 1

The obsolete and unavailable TS404 plugin.

CT_GenPlug module-attribute

CT_GenPlug = 2

Generator plugin.

CT_Layer module-attribute

CT_Layer = 3

Layer channel. For more information on layers, refer to the FL Studio manual.

CT_AudioClip module-attribute

CT_AudioClip = 4

Audio clip channel.

CT_AutoClip module-attribute

CT_AutoClip = 5

Automation clip channel.

CT_ColorT module-attribute

CT_ColorT = (5656904 + 1315860, 8814968, 5328737, 4670528, 7893352, 7893352)

???

Perhaps default colors for various channel types?