#debuglive
Explore tagged Tumblr posts
Text
youtube
The cheapest MIDI home-studio of 1988
#synth#synthesizer#atari#homestudio#debuglive#korg#yamaha#musicstation#Youtube#roland#kawai#midi#steinberg#cubase
0 notes
Text
my followers, a new ctrix video just dropped.
youtube
watch now. just do it. trust me.
1 note
·
View note
Link
1 note
·
View note
Text
P1 Blink/lightshow
This project has the user put their hand out in front to make the distance measurer to make the lights light up in different ways. If you flip the switch you are able to play a game to find a certain combination that make the lights dance. This piece was decently easy to make following the slides on mycourses. The hardest part of it was remembering how to set up a switch.




const int ledPin1 = 16; const int ledPin2 = 17; const int ledPin3 = 18; const int ledPin4 = 19; const int ledPin5 = 20; const int ledPin6 = 21;
int randomNum = 0;
const int trigPin = 3; const int echoPin = 2;
const int buttonPin = 5; int buttonState = 0;
volatile boolean sonarOn = false;
unsigned long oldDist = 0;
void setup() { // put your setup code here, to run once: pinMode(ledPin1, OUTPUT); pinMode(ledPin2, OUTPUT); pinMode(ledPin3, OUTPUT); pinMode(ledPin4, OUTPUT); pinMode(ledPin5, OUTPUT); pinMode(ledPin6, OUTPUT);
pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT);
pinMode(buttonPin, INPUT);
randomNum = random(100,800); }
void loop() { // put your main code here, to run repeatedly: oldDist = getSonar(); Serial.print(oldDist); buttonState = digitalRead(buttonPin); if(buttonState == HIGH){ if((randomNum + 200) > oldDist > (randomNum - 200)) { digitalWrite(ledPin3,LOW); digitalWrite(ledPin4,LOW); digitalWrite(ledPin1,LOW); digitalWrite(ledPin6,LOW); digitalWrite(ledPin2,LOW); digitalWrite(ledPin5,LOW); delay(100); digitalWrite(ledPin1,HIGH); delay(100); digitalWrite(ledPin2,HIGH); delay(100); digitalWrite(ledPin3,HIGH); delay(100); digitalWrite(ledPin4,HIGH); delay(100); digitalWrite(ledPin5,HIGH); delay(100); digitalWrite(ledPin6,HIGH); delay(100); } else { digitalWrite(ledPin3,HIGH); digitalWrite(ledPin4,HIGH); digitalWrite(ledPin1,HIGH); digitalWrite(ledPin6,HIGH); digitalWrite(ledPin2,HIGH); digitalWrite(ledPin5,HIGH); } } else{ if(oldDist > 750) { digitalWrite(ledPin1,LOW); digitalWrite(ledPin6,LOW); digitalWrite(ledPin2,LOW); digitalWrite(ledPin5,LOW); } if(oldDist < 750) { digitalWrite(ledPin1,HIGH); digitalWrite(ledPin6,HIGH); digitalWrite(ledPin2,LOW); digitalWrite(ledPin5,LOW); } if(oldDist < 500) { digitalWrite(ledPin2,HIGH); digitalWrite(ledPin5,HIGH); digitalWrite(ledPin3,LOW); digitalWrite(ledPin4,LOW); } if(oldDist < 250) { digitalWrite(ledPin3,HIGH); digitalWrite(ledPin4,HIGH); } }
}
/** updateSonarOn: called only if switch state changes * via interrupt. Update sonarOn based on switch value */ /**void updateSonarOn() { sonarOn = digitalRead(switchPin) == HIGH; }*/
/** getSonar: read sonar sensor and return echo duration * @return {unsigned long} duration of sonar pulse */ unsigned long getSonar() { /* if (debug) { digitalWrite(debugLed, HIGH); }*/ // Clears the trigPin digitalWrite(trigPin, LOW); delayMicroseconds(2);
//Read sonar value without getting interrupted noInterrupts();
// Sets the trigPin on HIGH state for 10 micro seconds digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); // Reads the echoPin, returns the sound wave travel time in microseconds unsigned long duration = pulseIn(echoPin, HIGH);
interrupts(); //okay to interrupt now
// Calculating the distance in cm /*if (debug) { digitalWrite(debugLed, LOW); }*/ return duration; }
0 notes
Video
youtube
2020-02-05
debuglive
Amiga Samplers : Budget dance music in 1990
0 notes
Text
youtube
Amiga Samplers: Budget dance music in 1990
0 notes