Section Drums

Drums grids, play and other utility function.

Summary

Return typeFunction and summary
 PlayNote(Symbol symbol)
Plays a note, shortcut and fix for Staff.PlayNotes().
 SetDrumGridsDivision(Score score, int numberOfDivisions)
Set the Staff.DefaultDrumDivision to all drum grid-staves.

Functions

PlayNote(Symbol symbol)

Plays a note, shortcut and fix for Staff.PlayNotes().

Play only one note (the symbol parameter), in its context (tempo at its Time position), duration, velocity and pitch.
Fix the no-sound bug when pitch==0 on grid drum staves

ParameterTypeDefaultDescription
symbolSymbol (note) to play

SetDrumGridsDivision(Score score, int numberOfDivisions)

Set the Staff.DefaultDrumDivision to all drum grid-staves.

ParameterTypeDefaultDescription
scoreScore  
numberOfDivisionsint Number of division per beat
Error
if score is nil or numberOfDivisions < 1