Spaces:
Sleeping
Sleeping
Delete _patch_note.txt
Browse files- _patch_note.txt +0 -10
_patch_note.txt
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
else: # auto: SuperFlux multi-band
|
| 2 |
-
yh,_=librosa.effects.hpss(y)
|
| 3 |
-
def _sf(audio,fmin=None,fmax=None,ms=3,l=1):
|
| 4 |
-
S=librosa.feature.melspectrogram(y=audio,sr=sr,n_fft=n_fft,hop_length=hop_length,
|
| 5 |
-
n_mels=128,fmin=fmin or 20,fmax=fmax or sr//2,power=1)
|
| 6 |
-
return librosa.onset.onset_strength(S=librosa.power_to_db(S,ref=np.max),
|
| 7 |
-
sr=sr,hop_length=hop_length,lag=l,max_size=ms)
|
| 8 |
-
def _n(x): m=x.max(); return x/m if m>0 else x
|
| 9 |
-
oe = np.maximum.reduce([_n(_sf(y,20,300)), _n(_sf(y,300,4000)),
|
| 10 |
-
_n(_sf(y,4000,16000)), _n(_sf(yh,l=2,ms=5))])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|