SSPDNote

Superclass:
NSObject
Declared In:

Introduction

play information about a note (ie start time, duration in ms and pitch etc)



Properties

beatIndex

beat index for metronome beat (has integer values)

duration

total millisecond duration of note may be longer than a bar if tied over barline

dynamic

[0..100] value of the last dynamic

grace

set for grace note

item_h

handle used in sscore_contents

midi_duration

midi duration (24 ticks per crotchet/quarter note)

midi_start

midi start time (24 ticks per crotchet/quarter note)

midiPitch

the midi pitch value of the note 60 = C4. 0 = unpitched (eg rest or percussion)

rawnote

the sscore_pd_note

start

millisecond start time from start of bar

startBarIndex

0-based index of bar in which this note starts (may be tied over bars)


beatIndex


beat index for metronome beat (has integer values)

@property (readonly) float beatIndex; 
Discussion

for notes this can have a fractional value according to the start time of the note


duration


total millisecond duration of note may be longer than a bar if tied over barline

@property (readonly) int duration; 

dynamic


[0..100] value of the last dynamic

@property (readonly) int dynamic; 

grace


set for grace note

@property (readonly) enum sscore_pd_grace_e grace; 

item_h


handle used in sscore_contents

@property (readonly) sscore_item_handle item_h; 
Discussion

item


midi_duration


midi duration (24 ticks per crotchet/quarter note)

@property (readonly) int midi_duration; 

midi_start


midi start time (24 ticks per crotchet/quarter note)

@property (readonly) int midi_start; 

midiPitch


the midi pitch value of the note 60 = C4. 0 = unpitched (eg rest or percussion)

@property (readonly) int midiPitch; 

rawnote


the sscore_pd_note

@property (readonly) sscore_pd_note rawnote; 

start


millisecond start time from start of bar

@property (readonly) int start; 

startBarIndex


0-based index of bar in which this note starts (may be tied over bars)

@property (readonly) int startBarIndex;