Section Drums
Drums grids, play and other utility function.
Summary
| Return type | Function 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.
| Parameter | Type | Default | Description |
|---|---|---|---|
| symbol | Symbol | (note) to play |
SetDrumGridsDivision(Score score, int numberOfDivisions)
Set the Staff.DefaultDrumDivision to all drum grid-staves.
| Parameter | Type | Default | Description |
|---|---|---|---|
| score | Score | score | |
| numberOfDivisions | int | Number of division per beat |
- Error
- if score is nil or numberOfDivisions < 1