Skip to content

Instantly share code, notes, and snippets.

@pragatibaheti
Last active April 26, 2020 15:45
Show Gist options
  • Save pragatibaheti/0d1744317788b9bb95339ceb3864b86d to your computer and use it in GitHub Desktop.
Save pragatibaheti/0d1744317788b9bb95339ceb3864b86d to your computer and use it in GitHub Desktop.
y, sr = librosa.load(librosa.util.example_audio_file())
# Approximate maximum frequencies with roll_percent=0.85 (default)
rolloff = librosa.feature.spectral_rolloff(y=y, sr=sr)
# Approximate minimum frequencies with roll_percent=0.1
rolloff = librosa.feature.spectral_rolloff(y=y, sr=sr, roll_percent=0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment