ShareShortcuts

Volume 🔊

Turn up/down volume

southerncountrybellegirl
Fork “Volume 🔊”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so southerncountrybellegirl gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
50K
Saved
0
Actions
32
Category
Utilities
Version
1.0
Language
EN

Turn up/down volume

What's New

Version 1.0

First release

Version History
1.0 Jun 5, 2021

First release

What it does

32 actions
  1. Choose from Menu
  2. Choose from Menu
    Off
  3. Set Volume
  4. Choose from Menu
    10% Volume
  5. Set Volume
  6. Choose from Menu
    20% Volume
  7. Set Volume
  8. Choose from Menu
    30% Volume
  9. Set Volume
  10. Choose from Menu
    40% Volume
  11. Set Volume
  12. Choose from Menu
    50% Volume
  13. Set Volume
  14. Choose from Menu
    60% Volume
  15. Set Volume
  16. Choose from Menu
    70% Volume
  17. Set Volume
  18. Choose from Menu
    80% Volume
  19. Set Volume
  20. Choose from Menu
    90% Volume
  21. Set Volume
  22. Choose from Menu
    100% Volume
  23. Set Volume
  24. Choose from Menu
    Custom
  25. Ask for Input
    Volume %
  26. Calculate
  27. Set Volume
  28. Choose from Menu
    Get Volume
  29. Get Device Details
  30. Calculate
  31. Round Number
  32. Show Result

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/math'
#include 'actions/device'
#define color taupe
#define glyph volumeHigh


menu nil {
item "Off":
	setVolume(0)
item "10% Volume":
	setVolume(0.10222222)
item "20% Volume":
	setVolume(0.19555555)
item "30% Volume":
	setVolume(0.29555556)
item "40% Volume":
	setVolume(0.4)
item "50% Volume":
	setVolume(nil)
item "60% Volume":
	setVolume(0.59555554)
item "70% Volume":
	setVolume(0.69777775)
item "80% Volume":
	setVolume(0.8)
item "90% Volume":
	setVolume(0.89555556)
item "100% Volume":
	setVolume(1)
item "Custom":
	const ProvidedInput = prompt("Volume %", "Number")
	const CalculationResult = ProvidedInput / 100
	setVolume(CalculationResult)
item "Get Volume":
	const CurrentVolume = getDeviceDetail("Current Volume")
	const CalculationResult1 = CurrentVolume * 100
	ceil(CalculationResult1, "Hundredths")
	show("Volume ={}%")
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by southerncountrybellegirl

See All

You Might Also Like

See All
Advertisement