Gap analyses help organisations identify improvement areas, set realistic goals, and develop strategies to bridge gaps between their current and future state.
Phoenix, texting: i mean i cant figure out how to play it in my currentstate but im sure if its working for them they dlike to fucok on it
Maya: Excuse me what
Phoenix: *focus on it
Phoenix: im tyoping to fast
Maya: Maybe you should slow down a bit
Design brief was to use processing + our arduino boards to make a music machine! Being a musician / keyboardist / synthesizer enthusiast myself I wanted to make a tiny modular synthesizer ... or at least, my version of one.
You might see my inspiration in my doodle of beep boop music titans James Murphy and Nancy Whang. The basic idea is to have three layers of sound that the user could manipulate; the buttons changing the patterns of the boop boops and the potentiometers changing the pitch of the boop boops, all fit snugly in a cardboard glasses case.
Prof. Maxim challenged me to rethink the way i put it together so that it might be easier to hold & manipulate instead of having the entire interface being just on top of the box.
I decided to add another potentiometer for a new setting, which would change the waveform of the sound between sine, square, and saw. Apologies to the triangle wave which I did not find exciting enough for me to include.
Before shoving everything in the box I had to make sure my stuff was wired correctly which took me longer than I care to admit. I blame half of it on the female to male wires which did not like sticking on the buttons.
Damn those buttons were fickle. As you can see from the code here I was trying to have the buttons, when clicked, switch between four states. A very careful painter's tape job later, I about yelled in joy when my button state finally changed when I clicked it! (It also helped changing the input mode from Input to Input_Pullup... oops).
Using what we learned in class, I set up all the values from my buttons and knobs in a way that would be easier for my processing code to parse. I'm unsure why the button states reprint so many times but I'm pretty sure it has to do with me printing (currentStates[x]) multiple times. however I wasn't sure how else to get the readings i needed with a comma between them... oh well, works fine enough, time to decorate my synth!
Wee! Now for the hard part which is programming the thing to make sounds in processing. Easy enough to grab the values from arduino/the serial monitor using code we learned in class. I remapped each potentiometer to match the pitch from C4 to C5, using the values Maxim gave us. I am curious if there's a way to skip over some notes so I could make a jazz scale or something?
I can only put one video per post here on tumblr dot com so check out this link to part two.
Electric ... Dice ... Machine (Makerspaces week 4)
This week our challenge was to use our Arduino boards to create a circuit that represented a randomized dice roll. By successfully creating a circuit that connects resistors, different size resistors, and a push button we hope to resemble a dice rolling at random, generating different values ranging from 1-6.
Lets "dice" into this
Phase 1: Initially the idea was to construct and effectively run the circuit for a push button. I began by setting up a build with the 7 LEDs but I did not leave enough room for the individual resistors. The push button needed a resistor as well along with additional wiring. There was no room so I scrapped it and started again. After rebuilding the circuit I assigned my push button to input 2. Realizing the connection of the LED's was more important than the location I felt as though this would be a successful build. This build was good, please see attachments below for this phase of this weeks challenges:
Code:
const int buttonPin = 13;
const int ledPin = 9;
int currentState;
int lastState = HIGH;
int ledState = LOW;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop() {
currentState = digitalRead(buttonPin);
if (lastState == HIGH && currentState == LOW) {
ledState = !ledState;
digitalWrite(ledPin, ledState);
}
lastState = currentState;
delay(50);
}
I felt good at the end of this phase of week 4's activities. After a positive phase 1 I was ready to begin phase 2.
Phase 2: In the next phase my goal was to connect all 6 LED bulbs and get the circuit read the randomized roll results. After placing all 6 LED's onto the board and verifying their connection I went and altered the code to include the dice and random order. After locating a code and getting it wrote to fit my circuit it was time for me to test my circuit.
See results in video below:
There was a resistor that had fallen out of place, after correcting this resistor and realizing that one LED was facing the opposite way this was the next test
See results in video below:
Code:
#define BUTTON_PIN A0
const byte die1Pins[] = {3, 4, 5, 6, 7, 8,9};
void setup() {
pinMode(A0, INPUT_PULLUP);
for (byte i = 0; i < 7; i++) {
pinMode(die1Pins[i], OUTPUT);
}
}
void displayNumber(const byte pins[], byte number) {
digitalWrite(pins[0], number > 1 ? HIGH : LOW); // top-left
digitalWrite(pins[1], number > 3 ? HIGH : LOW); // top-right
digitalWrite(pins[2], number == 6 ? HIGH : LOW); // middle-left
digitalWrite(pins[3], number % 2 == 1 ? HIGH : LOW); // center
digitalWrite(pins[4], number == 6 ? HIGH : LOW); // middle-right
digitalWrite(pins[5], number > 3 ? HIGH : LOW); // bottom-left
digitalWrite(pins[6], number > 1 ? HIGH : LOW); // bottom-right
}
bool randomReady = false;
void loop() {
bool buttonPressed = digitalRead(BUTTON_PIN) == LOW;
if (!randomReady && buttonPressed) {
/* Initialize the random number generator with the number of
microseconds between program start and the first button press */
randomSeed(micros());
randomReady = true;
}
if (buttonPressed) {
for (byte i = 0; i < 10; i++) {
int num1 = random(1, 7);
displayNumber(die1Pins, num1);
delay(50 + i * 20);
}
}
}
Reflection: This week was challenging much like each week up to this point. I enjoyed being able to create something as cool as an electric dice machine, completing a circuit of this level of difficulty only makes me wonder what is ahead.
“ don’t you understand? i love you. and nothing you’ve done, no matter how much of a monster you think you are, is gonna change that. ”
A long lost meme || @svnsworn
If only Ravus could convince himself that the words she was speaking were truth. The rational aspect of his mind did, but every other bit in the core of his being fought against it.
No one could love the type of monster he was.
Oh, but he longed to believe. He craved those words so strongly that they drew a hint of dampness to his eyes. "Lunafreya," he whispered, eyes lowering to rest unfocused on the plush carpeting of the room.
He didn't have words to respond, and any he might have compiled choked in his throat, prevented from escaping. She wouldn't lie to him, he told himself. And whether or not that was the case, he had to force himself to pretend to see that as the currentstance.
With quiet steps, he made way to his sister and pulled her into a hug, perhaps one of the very few in recent years, but Ravus was of the notion that actions could speak louder than words...
#independent #notmywar #on #currentstate #of #ukrainewar @nato .@nato @otan @bbc_whys @peace .@peace @bundeswehrinfo @us_stratcom @rosatom .@bbcr4 @bbcr4 @france24 @eu_commission aslong as nothing removes the artillery stoplocks and the re-mining operations a critical task of cas with seadcover deadcover any movement on static frontlines is either weakness breakdown of troops oneside or rearrange cas safe second fallback positions russias hope to reduce support by west is an illusion and sure not how west rules its own realm to appease someone they handle as inferior dictator useful to unite against main problem china
#independent #notmywar #on #currentstate #of #ukrainewar
@nato .@nato @otan @bbc_whys @peace .@peace @bundeswehrinfo @us_stratcom @rosatom .@bbcr4 @bbcr4 @france24 @eu_commission
aslong as nothing removes the artillery stoplocks and the re-mining operations
a critical task of cas with seadcover deadcover
any movement on static frontlines is either weakness breakdown of troops oneside or rearrange…
I'm trying to do long polling with JQuery and Python under the Flask Framework.
Having done long polling before in PHP, I've tried to go about it in the same way:
A script/function that has a while(true) loop, checking for changes periodically eg.every 0,5 seconds in the database, and returns some data when a change occurs.
So in my ini.py I've created an app.route to /poll for JQuery to call. JQuery gives it some information about the client's current state, and the poll() function compares this with what's currently in the database. The loop is ended and returns information when a change is observed.
Here's the python code:
@app.route('/poll')def poll():client_state = request.args.get("state") #remove html encoding + whitesapce from client state html_parser = HTMLParser.HTMLParser() client_state = html_parser.unescape(client_state) client_state = "".join(client_state.split()) #poll the database while True: time.sleep(0.5) data = get_data() json_state = to_json(data) json_state = "".join(data) #remove whitespace if json_state != client_state: return "CHANGE"
The problem is that, when the code above starts polling, the server appears to be overloaded and other Ajax calls, and other requests like loading a "loading" image to the html using JQuery are unresponsive and timeout.
For completion's sake I've included the JQuery here:
It’s gonna be awhile before this quarantine thing is over, folks. #currentstate #thelifemedeiros #dudewithsign (at Boerne, Texas) https://www.instagram.com/p/B_gTpsRpxS9/?igshid=o1vb1cwcsq0c
Hill Climbing Algorithm in Artificial Intelligence. Hill climbing algorithm is a local search algorithm which continuously moves in the direction of increasing elevation/value to find the peak of the mountain or best solution to the problem. A node of hill climbing algorithm has two components which are state and value. Check our Info : www.incegna.com Reg Link for Programs : http://www.incegna.com/contact-us Follow us on Facebook : www.facebook.com/INCEGNA/? Follow us on Instagram : https://www.instagram.com/_incegna/ For Queries : [email protected] #hillclimbingalgorithm,#artificialintelligence,#greedyapprocah,#simplehillclimbing,#SteepestAscent,#Stochastic,#Spacediagram,#Localmaximum,#Globalmaximum,#Plateaumaximum,#Ridge,#currentstate,#shoulder,#artificialneuralnetwork https://www.instagram.com/p/B-OaSVnAMk-/?igshid=1ocxfgj1rdu1z
Current state of today’s world. #currentstate #upsidedownworld #globe #abandonedschool #urbex #urbexphotography #riseofthelykins https://www.instagram.com/p/B1i-i4-gu_9/?igshid=ua0cruxzhn95
(tweetreply on cardbox) yes iconsidered too paper puplp indicators butfoun d itis gleichlaufend currentstate indicators not necessarily predictive youca n refine your theories with currently and predictive indicators and verify p ast expost indicators ifyoucare enough .
@federalreserve
.
@bankofengland
(tweetreply on cardbox) yes iconsidered too paper puplp indicators butfound itis gleichlaufend currentstate indicators not necessarily predictive
youcan refine your theories with currently and predictive indicators and verify past expost indicators ifyoucare enough .@federalreserve
.@bankofengland
I am Christian KISS
BabyAWACS – Raw Independent Sophistication
#THINKTANK + #INTEL #HELLHOLE…