This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// grab the current kit: | |
[A4Request requestWithKeys:@[@"kit.x"] | |
completionHandler:^(NSDictionary *dict) { | |
// make a copy of the kit: | |
A4Kit *kitOriginal = dict[@"kit.x"]; | |
A4Kit *kitCopy = [A4Kit messageWithSysexData:kitOriginal.sysexData]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) doIt | |
{ | |
[self.sliceApplyButton setEnabled:NO]; | |
int offset = self.firstStepSlider.intValue - 1; | |
int length = self.lengthSlider.intValue; | |
int skip = self.skipSlider.intValue; | |
int sampleLength = self.sampleLengthSlider.intValue; | |
float reverseAmt = self.reverseRandAmountSlider.intValue / 1000.0; | |
float shuffleAmt = self.shuffleRandAmountSlider.intValue / 1000.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MDSampleSlicer.m | |
// MachineDrumFramework | |
// | |
// Created by Jakob Penca on 02/03/14. | |
// Copyright (c) 2014 Jakob Penca. All rights reserved. | |
// | |
#import "MDSampleSlicer.h" | |
#import "MDMath.h" |