Note
Notes in the piano roll trigger sounds in instruments.
Note
Represents a note in the FL Studio piano roll.
group
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
.
velocity
property
writable
The velocity of the note, between 0
and 1
. 0.8
is the default.
release
property
writable
The release of the note, between 0
and 1
. 0.5
is the default.
color
property
writable
The color of the note, between 0
and 15
. 0
is the default note
color.
fcut
property
writable
The note filter cutoff frequency, between 0
and 1
. 0.5
is the
default.
fres
property
writable
The note filter resonance frequency, between 0
and 1
. 0.5
is the
default.
pitchofs
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.
repeats
property
writable
The repeats property of the note from 0 to 14.
0
: no repeat1
: 1/4 (beat)2
: 1/8 dotted3
: 1/4 triplet4
: 1/85
: 1/16 dotted6
: 1/8 triplet7
: 1/16 (step)8
: 1/32 dotted9
: 1/16 triplet10
: 1/32 (half step)11
: 1/64 dotted12
: 1/32 triplet13
: 1/64 (quarter step)14
: 1/64 triplet
__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
.