| 1428 | } |
| 1429 | |
| 1430 | void BambooTracker::jamKeyOffForced(JamKey key, SoundSource src) |
| 1431 | { |
| 1432 | int keyNum = jam_utils::makeNote(curOctave_, key).getNoteNumber(); |
| 1433 | const TrackAttribute& attrib = songStyle_.trackAttribs[static_cast<size_t>(curTrackNum_)]; |
| 1434 | if (attrib.source == src) { |
| 1435 | funcJamKeyOff(key, keyNum, attrib); |
| 1436 | } |
| 1437 | else { |
| 1438 | auto it = utils::findIf(songStyle_.trackAttribs, [src](const TrackAttribute& attrib) { return attrib.source == src; }); |
| 1439 | funcJamKeyOff(key, keyNum, *it); |
| 1440 | } |
| 1441 | } |
| 1442 | |
| 1443 | void BambooTracker::jamKeyOffForced(int keyNum, SoundSource src) |
| 1444 | { |
no test coverage detected