| 87 | } |
| 88 | |
| 89 | void NoteCreator::CheckboxUpdated(Checkbox* checkbox, double time) |
| 90 | { |
| 91 | if (checkbox == mEnabledCheckbox) |
| 92 | mNoteOutput.Flush(time); |
| 93 | if (checkbox == mNoteOnCheckbox) |
| 94 | { |
| 95 | if (mNoteOn) |
| 96 | { |
| 97 | if (IsEnabled()) |
| 98 | PlayNoteOutput(time, mPitch, mVelocity * 127, mVoiceIndex); |
| 99 | } |
| 100 | else |
| 101 | { |
| 102 | if (IsEnabled()) |
| 103 | PlayNoteOutput(time, mPitch, 0, mVoiceIndex); |
| 104 | mNoteOutput.Flush(time); |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void NoteCreator::ButtonClicked(ClickButton* button, double time) |
| 110 | { |