Skip to content

Note

Represents a note in the FL Studio piano roll.

color: int property writable

The color of the note, between 0 and 15. 0 is the default note color.

fcut: float property writable

The note filter cutoff frequency, between 0 and 1. 0.5 is the default.

fres: float property writable

The note filter resonance frequency, between 0 and 1. 0.5 is the default.

group: int property writable

Group number that this note belongs to. This can be used to link notes together such that if the user moves one, all others in the same group are also moved.

To un-group notes, set the group number to 0.

length: int property writable

Length of the note (in ticks).

muted: bool property writable

Whether the note is muted.

number: int property writable

Standard MIDI note number (60 is middle C).

pan: float property writable

The panning value of the note, between 0 and 1. 0.5 is centered.

pitchofs: int property writable

The pitch offset of the note, between -120 (-1 octave) and 120 (+1 octave).

This is represented in units of 10 cents, so setting note.pitchofs = 42 will set the pitch offset to +420 cents.

porta: bool property writable

Whether the note is a portamento note.

release: float property writable

The release of the note, between 0 and 1. 0.5 is the default.

selected: bool property writable

Whether the note is selected within the piano roll.

slide: bool property writable

Whether the note is a slide note.

time: int property writable

Time at which the note begins (in ticks).

velocity: float property writable

The velocity of the note, between 0 and 1. 0.8 is the default.

__init__()

Create a new instance of a Note object

This note won't be added to the piano roll unless it is passed to score.addNote.

clone()

Return a new Note object with identical properties to this note.

This note will not be added to the piano roll until score.addNote is called with it as an argument.