Skip to content

Instantly share code, notes, and snippets.

@dmastropole

dmastropole/log_powers.py

Last active Oct 16, 2019
Embed
What would you like to do?
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