Logic X Sampler Instrument Automation

Aidan Singh What it is This device with Logic Pro X will take a recording, chop it into samples based on the transients, put it into a sampler instrument, and can play back these samples like a keyboard or drum machine. Video Demonstration How It Works Setup Mode: The setup mode mainly utilizes “MIDI ControlContinue reading “Logic X Sampler Instrument Automation”

Digital Lecture Assignment 9

Aidan Singh Arduino Code: int potVal = 0; int tempo = 1000; int lastTime = 0; int ledPins[4] = {29,30,31,32}; int lastStep = 0; int currentStep = 0; int totalSteps = 4; void setup() {  Serial.begin(9600);  for(int i = 0; i< 4; i++){    pinMode(ledPins[i], OUTPUT);  } } void loop() {  readPot();  if(millis() > lastTime +Continue reading “Digital Lecture Assignment 9”

Digital Lab 11

Aidan Singh Main code for 4 MIDI-controlling buttons: #include “Button.h” Button buttonOne(33, 60); Button buttonTwo(34, 62); Button buttonThree(35, 64); Button buttonFour(36, 65); void setup() {  Serial.begin(9600);  buttonOne.pressHandler(onPress);  buttonOne.releaseHandler(onRelease);  buttonTwo.pressHandler(onPress);  buttonTwo.releaseHandler(onRelease);  buttonThree.pressHandler(onPress);  buttonThree.releaseHandler(onRelease);  buttonFour.pressHandler(onPress);  buttonFour.releaseHandler(onRelease);   } void loop() {  buttonOne.process();  buttonTwo.process();  buttonThree.process();  buttonFour.process();   } void onPress(int buttonNumber) {  Serial.print(buttonNumber);  Serial.println(” pressed”);  usbMIDI.sendNoteOn(buttonNumber, 90, 1);Continue reading “Digital Lab 11”

Digital Lab 9

Aidan Singh int ledPin [4] = {29,30,31,32}; int channelLedPin [3] = {7,8,9}; int buttonPin [4] = {33,34,35,36}; int switchPin = 38; bool lastButtonState [4] = {LOW,LOW,LOW,LOW}; bool buttonState [4] = {LOW,LOW,LOW,LOW}; bool switchedOn[3][4] = {  {false,false,false,false},  {false,false,false,false},  {false,false,false,false}, }; int channelButtonPin = 39; int channelDisplayed = 0; bool channelButtonState = LOW; bool lastChannelButtonState = LOW;Continue reading “Digital Lab 9”

Digital Lab 8

Aidan Singh int ledPin [4] = {29,30,31,32}; int buttonPin [4] = {33,34,35,36}; int switchPin = 38; bool lastButtonState [4] = {LOW,LOW,LOW,LOW}; bool buttonState [4] = {LOW,LOW,LOW,LOW}; bool switchedOn[4] = {false,false,false,false}; int tempo=1000; unsigned long lastStepTime = 0; int currentStep = 0; int totalSteps = 4; void setup() {  for(int i=0;i<4;i++){    pinMode(ledPin [i],OUTPUT);    pinMode(buttonPin [i],INPUT);  }Continue reading “Digital Lab 8”

Digital Lecture 5 Assignment

Aidan Singh ***Includes Bonus*** int ledPins[4] = {28,29,30,31}; int potPin = 32; int switchPin1 = 33; int switchPin2 = 34; int tempo=1000; unsigned long lastStepTime = 0; int currentStep = 0; int totalSteps = 4; void setup() {    for(int i=0;i<4;i++){      pinMode(ledPins[i], OUTPUT);    }    pinMode(switchPin1, INPUT);    pinMode(switchPin2, INPUT); } void stepForwards(){  if(millis() >= lastStepTime + tempo)Continue reading “Digital Lecture 5 Assignment”

Digital Lecture 4

Aidan Singh Here is the updated code that utilizes the for loops and arrays (INCLUDING BONUS). int potValue=0; int pause=0; int someVar= 0; int numLED = 4; int ledPins[4] = {28,29,30,31}; int buttonPins[4] = {33,34,35,36}; void setup() {    Serial.begin(9600);    for(int i=0;i<4;i++){      pinMode(ledPins[i], OUTPUT);      pinMode(buttonPins[i], INPUT);    } } void loop(){  potValue = analogRead(A13);  pause = potValue;Continue reading “Digital Lecture 4”

Design a site like this with WordPress.com
Get started