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”
Category Archives: Uncategorized
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 10
Aidan Singh This lab introduced the Processing app and language, and how to make it interface with Arduino using Serial commands. The instructional video created by Professor Litt showed a circle first translating and growing based on input from two potentiometers, and later automatically moving across the screen, at a rate determined by one ofContinue reading “Digital Lab 10”
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 Lab 7
Aidan Singh Description of On-Off Button: The on-off button uses two functions. The first, checkButton(), detects the moment the button goes from unpressed to pressed. If this is the case, it activates the second function. The second function is flipButtonState(). When used, it flips the state of an on-off boolean. For example, if the booleanContinue reading “Digital Lab 7”
Digital Lab 6
Aidan Singh //pins int potPins[4] = {A14, A15, A16, A17}; int ledPins[4] = {28, 29, 30, 31}; int speedPotPin = A13; int stepPot = A21; int octaveSwitchPin = 37; int onSwitchPin = 38; int backwardsSwitchPin = 39; //values int octave = 0; int lastStep = 0; int tempo = 1000; int currentStep = 0; intContinue reading “Digital Lab 6”
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”