| 226 | } |
| 227 | |
| 228 | void setStop(bool stop) { |
| 229 | if (this->stop == stop) |
| 230 | return; |
| 231 | this->stop = stop; |
| 232 | if (stop) { |
| 233 | // Stop |
| 234 | midi::Message m; |
| 235 | m.setSize(1); |
| 236 | m.setStatus(0xf); |
| 237 | m.setChannel(0xc); |
| 238 | m.setFrame(frame); |
| 239 | onMessage(m); |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | void setFrame(int64_t frame) { |
| 244 | this->frame = frame; |
no test coverage detected