Skip to content

Instantly share code, notes, and snippets.

@dmastropole
Last active October 16, 2019 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmastropole/d9a40a2e4ce629256606ad4a3f4705ba to your computer and use it in GitHub Desktop.
Save dmastropole/d9a40a2e4ce629256606ad4a3f4705ba to your computer and use it in GitHub Desktop.
Log of Mel Band Powers
from essentia.standard import UnaryOperator
# Convert to decibels
log10 = UnaryOperator(type='log10')
log_mels = log10(mels)
# Plot the mel band powers
plt.bar(np.arange(len(log_mels)), log_mels, align='center')
plt.title('Log of the Mel Band Powers')
plt.xlabel('Mel Bands')
plt.ylabel('Log of Power')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment