Monday, June 04, 2018

Tera Khayal...

Long distance relationships ... phew !!!

Aaj tu phir bahut yaad aaya hai,
Aaj phir khud ko bahut bechain humne paya hai

Beech humare -
Samundar ki gahrayi aur meelon ka faasla hai,
Ye soch, dil bechain kuch is kadar hua hai
Jazbaaton ka tufaan, ye dil, maano seene me dabaye baitha hai,
Aaj tera khayal kuch is kadar aaya hai
Wo teri naadaniyan, wo tera bholapan,
Wo tera bin wajah muskuraana,
Baat baat par ruth jaana ,
Chidate-chidate khud ro jaana,
Mujhe manane ki wajaye khud ko manwana,
Tere saath bitaye hua wo lamhe,
Sab ek pal me yaad aaya hai,
Aaj tera khayal kuch is tarah aaya hai


Aaj phir tujhe chedne ka dil kiya,
Gudgunane ka dil kiya,
Meelon ka fasla pal bhar me mitane jee kiya,
Bahon me bhar tujhe
So jaane ko dil kiya,
Khud ko tanha-akela,
Aaj phir humne paya hai,
Aaj tera khayal kuch is kadar aaya hai

Aaj message se tasalli na hogi
Aaj phone call se bhi tasalli na hogi,
Ru-ba-ru na hone ki teri kami kuch is tarah bechain kar rahi hai
Jaise mano, jism ko ruh ki kami khal rahi ho
Aaj tera khayal kuch is kadar aaya hai

Zindagi mano teher si gayi ho,
Saans ruki aur,
Jeene ki wajah kho si gayi ho,
Phir kisi tarah aaj humne khud ko samjhaya hai,
Aaj tera khayal kuch is kadar aaya hai,
...aakhen nam aur dil bhar aaya hai !!!


-Mayank

Friday, October 14, 2016

Volume Control script for Raspberry Pi

Here is a small script to control audio volume. Feel free to modify the script as per need. Make sure pulseaudio is is up and running.

Filename: volchg.sh

Usage: 
volchg.sh [+/-] [x]

volchg.sh --increase volume by 5%
volchg.sh + --increase volume by 5%
volchg.sh + 10 --increase volume by 10%
volchg.sh - --decrease volume by 5%
volchg.sh - 10 --decrease volume by 10%

Script

#!/bin/sh
#############################
### Volume Up/Down Script ###
#############################

# Specify increase or decrease
MODE=$1

# Percentage Change
VAL=$2

#Set defaut change to 5%
if [ -z "$2" ]; then
  VAL=5
fi

#Get MAX Value
MAX_VOL=`amixer cget numid=3 | grep "max=" |  cut -d, -f5 | cut -d= -f 2`

#Get current val
CURRENT_VOL=`amixer cget numid=3 | grep ":" | cut -d, -f2`

#UPDATE VOL

if [ "$MODE" = "+" ]; then
  MUL=1
else
  MUL=-1
fi

NEW_VOL=$(( ($CURRENT_VOL + ($MUL * (( $VAL * $MAX_VOL) / 100 ))) ))
PER_VOL=$(( ($NEW_VOL * 100) / $MAX_VOL ))

amixer cset numid=3 $NEW_VOL > /dev/null
echo "Volume Level: $PER_VOL%"

Have fun !!!

Tuesday, September 13, 2016

Raspberry Pi - Bluetooth Choppy Audio

Raspberry Pi 3, Model B / RASPBIAN OS

BCM43438 is a single chip provide 2.4GHz 802.11n wireless LAN and Bluetooth radio support.

With a lot of google, hit and trial methods solution found to the choppy audio problem. Try turning off WiFi on Raspberry Pi while streaming bluetooth audio.

This worked for me.

Thanks.