Skip to content

Instantly share code, notes, and snippets.

@voodoohop
voodoohop / pseudo_cqt_tensorflow.py
Last active July 17, 2021 20:26 — forked from keunwoochoi/pseudo_cqt_pytorch.py
To compute pseudo CQT (Constant-Q-transform using STFT) on Tensorflow.
import librosa
import tensorflow as tf
import numpy as np
cqt_filter_fft = librosa.constantq.__cqt_filter_fft
EPS = 0.0001
class PseudoCqt():
"""A class to compute pseudo-CQT with Tensorflow.
Written by Keunwoo Choi and adapted to tensorflow by Thomas Haferlach
@voodoohop
voodoohop / workflow.sh
Created February 4, 2020 13:31 — forked from Honga1/workflow.sh
A git rebase workflow explained
# To add a change to our repository
git checkout -b "feature/feature-name" # Creates a branch called "feature/feature-name", then checks it out, locally.
git push --set-upstream origin feature/feature-name # Publish the branch on GitHub
# Make changes to your files
git add FILENAME(S) # Adds your files to "Tracked".
git status # See your "Tracked and Untracked files (green and red respectively"