shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

289
active users

#shellscript

0 posts0 participants0 posts today
Replied in thread

@NOISEBOB #HowTo run #ShellScript when sound in mic

Here is a #bash function "getvol" which uses #SoX to listen for 0.1 second and then tells you peak volume, between 0 and 1:

function getvol {
rec -p trim 0 .1 stat 2>&1 >/dev/null | grep -Po "(?<=Maximum amplitude:).*" | grep -Po "\S+"
}

You can loop the function and do something if the volume is high enough.

Learning about making and creating and checking checksums in bash scripts to compare files.

Have always loved bash scripting… I am *sure* there is a much more elegant way to do this, but it's a start.

I love the very direct impacts of scripting things... 'make it do this'.... and computer dutifully complies. Including when you unintentionally tell it to do something stupid/destructive. lol.

Continued thread

Part 7: Getting to (non-beta) ARKit compliance for my scripted usda outputs is going to be uglier than I had hoped since usdc files are required.

Figured that out by coaxing the Apple provided usdARKitChecker to pass through a little more info from usdchecker util, and then smooshed the files together using usdcat. Unclear on how to do this all in Swift down the line, but works for now!

whynotestflight.com/excuses/he