sound fx – Kevin Gulling http://www.kevingulling.com Game Development, VR, and more Mon, 19 Dec 2016 03:44:15 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.13 81085834 12 Days of Arduino – Day 6 – Potentiometer Control Knob https://kevingulling.com/2016/12/12-days-of-arduino-day-6-potentiometer-knob-on-the-keyduino/ Sun, 18 Dec 2016 20:44:15 +0000 https://kevingulling.com/?p=1323 Welcome back to day 6 of 12 Days of Arduino! 12 pointless Arduino projects from me to you! The word of the day today is Potentiometer. I use a potentiometer from keyestudios to control the length of delay between bits shifting through the register! Magnificent! Project requires –Arduino Uno –Active buzzer –3x button touch switch […]

The post 12 Days of Arduino – Day 6 – Potentiometer Control Knob appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
day 6 potentiometer knob

Welcome back to day 6 of 12 Days of Arduino! 12 pointless Arduino projects from me to you! The word of the day today is Potentiometer. I use a potentiometer from keyestudios to control the length of delay between bits shifting through the register! Magnificent!



Project requires
–Arduino Uno
–Active buzzer
–3x button touch switch
-220 ohm resistor
-4x 10k ohm resistor
-2x 220 ohm resistor
-Jumper wires
-Tip120
-SN74HC595
-Photoresistor
-Potentiometer
-RGB LED

Keyduino with Potentiometer Control Knob


//Pin connected to ST_CP of 74HC595
int latchPin = 8;
//Pin connected to SH_CP of 74HC595
int clockPin = 12;
////Pin connected to DS of 74HC595
int dataPin = 11;
int number = 1;
int speakerPin = 6;
//Buttons
int button1Pin = 2;
int button2Pin = 3;
int button3Pin = 4;
int photoresistorPin = A0;
int sensorValue = 0;

void setup() {
Serial.begin(9600);
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
pinMode(speakerPin, OUTPUT);
pinMode(button1Pin, INPUT);
pinMode(button2Pin, INPUT);
pinMode(button3Pin, INPUT);
}

void loop() {
int potentiometerValue;
potentiometerValue = analogRead(1);
if(potentiometerValue < 10){ potentiometerValue = 10; } if(digitalRead(button1Pin) == HIGH){ sensorValue = analogRead(photoresistorPin); tone(speakerPin, 790 +(sensorValue*2));//A5 digitalWrite(latchPin, LOW); // shift out the bits: shiftOut(dataPin, clockPin, MSBFIRST, number); digitalWrite(latchPin, HIGH); delay(potentiometerValue); number++; } else if(digitalRead(button2Pin) == HIGH){ sensorValue = analogRead(photoresistorPin); tone(speakerPin, 1750 +(sensorValue*2));//A6 digitalWrite(latchPin, LOW); // shift out the bits: shiftOut(dataPin, clockPin, MSBFIRST, number); digitalWrite(latchPin, HIGH); delay(potentiometerValue); number++; } else if(digitalRead(button3Pin) == HIGH){ sensorValue = analogRead(photoresistorPin); tone(speakerPin, 3510+(sensorValue*2));//A7 digitalWrite(latchPin, LOW); shiftOut(dataPin, clockPin, MSBFIRST, number); digitalWrite(latchPin, HIGH); delay(potentiometerValue); number++; } else{ number = 0; digitalWrite(latchPin, LOW); // shift out the bits: shiftOut(dataPin, clockPin, MSBFIRST, number); digitalWrite(latchPin, HIGH); delay(10); } }

I have to admit I was having a little bit of fun playing this... I might just have to add a 1/4" jack so we can amplify this guy 👍👍

ICStation.com the best source for electric components on the cheap:


The post 12 Days of Arduino – Day 6 – Potentiometer Control Knob appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
1323
12 Days of Arduino – Day 5 – Photoresistor Pitch Slide/Bend Keyduino https://kevingulling.com/2016/12/12-days-arduino-day-5-photoresistor-pitch-slidebend-keyduino/ Sat, 17 Dec 2016 17:55:32 +0000 https://kevingulling.com/?p=1304 Hello again and a warm welcome to my series “12 Days of Arduino” Day 5. Today we use a photoresistor to alter the pitch of our tone, effectively enabling us to reach every single note, making this a truly practical instrument of 8 bit glory! Project requires –Arduino Uno –Active buzzer –3x button touch switch […]

The post 12 Days of Arduino – Day 5 – Photoresistor Pitch Slide/Bend Keyduino appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
arduino day5
Hello again and a warm welcome to my series “12 Days of Arduino” Day 5. Today we use a photoresistor to alter the pitch of our tone, effectively enabling us to reach every single note, making this a truly practical instrument of 8 bit glory!



Project requires
–Arduino Uno
–Active buzzer
–3x button touch switch
-220 ohm resistor
-4x 10k ohm resistor
-2x 220 ohm resistor
-Jumper wires
-Tip120
-SN74HC595
-Photoresistor

I know it’s hard to see the circuitry in the video, things are starting to get crowded. Maybe I’ll upload a diagram if I get some time after the series is complete.

Photoresistor sketch

Photoresistor Sound FX Sketch

//Pin connected to ST_CP of 74HC595
int latchPin = 8;
//Pin connected to SH_CP of 74HC595
int clockPin = 12;
////Pin connected to DS of 74HC595
int dataPin = 11;
int number = 1;
int speakerPin = 6;
//Buttons
int button1Pin = 2;
int button2Pin = 3;
int button3Pin = 4;
int photoresistorPin = A0;
int sensorValue = 0;

void setup() {
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
pinMode(speakerPin, OUTPUT);
pinMode(button1Pin, INPUT);
pinMode(button2Pin, INPUT);
pinMode(button3Pin, INPUT);
}

void loop() {

if(digitalRead(button1Pin) == HIGH){
sensorValue = analogRead(photoresistorPin);
tone(speakerPin, 790 +(sensorValue*2));//A5
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, number);
digitalWrite(latchPin, HIGH);
delay(10);
number++;
}

else if(digitalRead(button2Pin) == HIGH){
sensorValue = analogRead(photoresistorPin);
tone(speakerPin, 1750 +(sensorValue*2));//A6
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, number);
digitalWrite(latchPin, HIGH);
delay(10);
number++;
}

else if(digitalRead(button3Pin) == HIGH){
sensorValue = analogRead(photoresistorPin);
tone(speakerPin, 3510+(sensorValue*2));//A7
digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, MSBFIRST, number);
digitalWrite(latchPin, HIGH);
delay(10);
number++;

}

else{
number = 0;
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, number);
digitalWrite(latchPin, HIGH);
delay(10);
}

}

If you aren’t a registered member of KevinGulling.com, and don’t want to register, feel free to comment on the YouTube video, I read those as well.

Visit ICStation.com for the best prices on sensors:


The post 12 Days of Arduino – Day 5 – Photoresistor Pitch Slide/Bend Keyduino appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
1304
Top 10 Resources for Sound FX to use in Indie Games https://kevingulling.com/2015/11/top-10-resources-indie-game-development/ Sat, 28 Nov 2015 21:59:13 +0000 https://kevingulling.com/?p=645 For the independent game developer, due to time constraints it is sometimes necessary to reuse existing assets rather than create every single element of the game from scratch. Sound and audio effects are no exception. Unfortunately if you don’t know where to look, finding quality SFX for your game can take just as long as […]

The post Top 10 Resources for Sound FX to use in Indie Games appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
For the independent game developer, due to time constraints it is sometimes necessary to reuse existing assets rather than create every single element of the game from scratch. Sound and audio effects are no exception. Unfortunately if you don’t know where to look, finding quality SFX for your game can take just as long as creating them yourself in some cases, so below I have compiled a list of the resources that I use most often for SFX when creating a game. They are simply ordered by the resources I use most often. There are many sites out there similar to these, but using the list below I have never needed to search further.

#1 – Audio Jungle
Audio Jungle is by far my favorite and most used resource for both SFX and game music when I’m not making my own. The quality control is impeccable, and there is no need to cull out the low quality sounds because for the most part, they don’t make it past Audio Jungles screening process. There are sounds starting from $1 each and when you need a sound in a jiffy, Audio Jungle is the way to go.
Professional Quality SFX Visit site

#2 – FreeSound.org
FreeSound.org has a ton of audio clips, effects, recordings, and a lot of unmastered stuff – all free Creative Commons Licensing.

#3 – CCMixter
CCMixter is a great resource for free music. Most of the genres you’ll find here ‘dance’ style music, but there is an occasional pop or rock song available too.

#4 – Sound Bible
Search preview & download free sounds for instant use in your game.
Visit site

#5 – Flashkit
I’ve been using Flashkit since the 90’s, and even though most of the stuff on here is pretty old, it still remains to be one of the best resources for free sfx that I have found.

#6 – OpenGameArt.org
OpenGameArt is another site that is human edited for quality assurance. This site has a lot of free licensing option.

#7 – SoundDogs
Another site that I have been using for years to find simple sound effects.

#8 – Newgrounds
Newgrounds has been online since the early 90’s but it was only a decade or so ago that they began the ‘Audio Portal’. A massive collection of user-submitted audio free to use in your NG projects.

#9 – Unity Asset Store
If you use Unity, don’t rule out the asset store for SFX. You can find a lot of free and low-cost sound packs available, which could cover every sound you need for your project in one package.


#10 KevinGulling.com/assets

I’ve put together a compendium of my sounds and other assets and made them available for download here for use in your personal or commercial projects.

The post Top 10 Resources for Sound FX to use in Indie Games appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
645