User:Yoana Buzova/ prototyping1

From XPUB & Lens-Based wiki

Gradually increases and decreases audio , play sound and then run

#!/bin/bash

## set volume to gradually increase to 3/4 max

while true;
do

	
	for((i=0;i<100;i++)); do
	osascript -e "set volume output volume $i"
	done
	for((i=100;i>0;i--)); do
	osascript -e "set volume output volume $i"
	done
done