Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Sound volumes

Sound volumes
Thread Tools
Mac Enthusiast
Join Date: Jun 2000
Location: Sacramento, CA, USA
Status: Offline
Reply With Quote
Jul 30, 2000, 12:18 AM
 
What are the commands to raise and to lower the sound level by one notch?
     
RGS
Guest
Status:
Reply With Quote
Jul 31, 2000, 01:09 PM
 
From the Standard Additions Dictionary:

set volume number -- the volume level, from 0 (silent) to 7 (full volume)
     
Mac Enthusiast
Join Date: Jun 2000
Location: Sacramento, CA, USA
Status: Offline
Reply With Quote
Jul 31, 2000, 05:13 PM
 
sorry that doesn't help any
     
Senior User
Join Date: Jul 2000
Location: Istanbul
Status: Offline
Reply With Quote
Aug 1, 2000, 09:28 PM
 
Originally posted by TheGreatButcher:
What are the commands to raise and to lower the sound level by one notch?
The correct syntax =

set volume X

where X is whatever value you want between 0 (min) and 7 (max).

Or are you trying to look at the CURRENT sound value and increase from there? This would be a bit more complicated to script.

Speed
     
Senior User
Join Date: Jul 2000
Location: Istanbul
Status: Offline
Reply With Quote
Aug 1, 2000, 09:55 PM
 
Originally posted by TheGreatButcher:
What are the commands to raise and to lower the sound level by one notch?
Caught my curiosity so i did a little investigation... here's the solution to raising/lowering the sound volume.

1) Download the "FadeAway" freeware scripting addition from Scriptweb
http://www.osaxen.com/home.taf?id=fadeaway

2) Drop it into your System Folder's Scripting Additions folder.

3) Cut and past the following script into Script Editor and save as a app, assign it to your favorite Function key and you've got a one-stop volume up script (change the + sign to a - sign for volume down.

That's it!

(FYI: the +/- 32 is due to the fact that the MacOS lists sound volumes from 0 ->255, but the standard volume adjustment only increments 7 steps (255/7 = 32). If you want a finer volume control just type in whatever value you'd like.

Best of luck
Speed

Here's the script...

set currentVolume to GetLeftChannelVolume

SetLeftChannelVolume (currentVolume + 32)
SetRightChannelVolume (currentVolume + 32)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2