| 447 | } |
| 448 | |
| 449 | void LooperRecorder::Resample(bool setKey) |
| 450 | { |
| 451 | if (setKey) |
| 452 | { |
| 453 | SnapToClosestPitch(); |
| 454 | TheScale->SetRoot(int(AdjustedRootForSpeed() + .5f)); |
| 455 | } |
| 456 | |
| 457 | SyncLoopLengths(); |
| 458 | } |
| 459 | |
| 460 | void LooperRecorder::UpdateSpeed() |
| 461 | { |