FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TimeStretch/python/rwindow.py at main · spluta/TimeStretch · GitHub
spluta
/
TimeStretch
Public
Notifications
You must be signed in to change notification settings
Fork
9
Star
128
Code
Issues
2
Pull requests
3
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TimeStretch
/
python
/
rwindow.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (25 loc) · 566 Bytes
Breadcrumbs
TimeStretch
/
python
/
rwindow.py
Copy path
File metadata and controls
33 lines (25 loc) · 566 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import
numpy
as
np
def
phis
(
N
):
alphas
=
np
.
arange
(
N
)
/
(
N
-
1
)
return
np
.
pi
*
alphas
/
2
def
f_scl
(
N
):
alphas
=
np
.
arange
(
N
)
/
(
N
-
1
)
return
alphas
/
(
1
-
alphas
)
def
f_tan2
(
N
):
return
np
.
tan
(
phis
(
N
))
**
2
def
f_tan
(
N
):
return
np
.
tan
(
phis
(
N
))
def
w_i
(
r
,
fs
):
return
np
.
sqrt
(
1
/
(
1
+
2
*
fs
*
r
+
fs
**
2
))
def
w
(
r
,
fs
):
return
fs
*
w_i
(
r
,
fs
)
def
xfade_with_windows
(
x1
,
x2
,
r
,
fs
):
w1
=
w
(
r
,
fs
)
w2
=
w_i
(
r
,
fs
)
mix
=
w1
*
x1
+
w2
*
x2
return
mix
variable_window_funcs
=
{
'w_tan'
:
f_tan
,
'w_tan2'
:
f_tan2
,
'w_scl'
:
f_scl
}
Back
|
FazBrowse Home
|
New Git URL