Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Candre Nathan
Grands cris d hommes minuscules
Commits
7d2b6f2a
Commit
7d2b6f2a
authored
Apr 05, 2021
by
LucasDANIELE
Browse files
nettoyage
parent
230f0071
Changes
2
Show whitespace changes
Inline
Side-by-side
fcts.py
View file @
7d2b6f2a
...
...
@@ -62,7 +62,7 @@ def afficherAvancement(t,T):
for
i
in
range
(
int
(
np
.
round
(
np
.
round
(
t
/
T
,
2
)
*
50
))):
barre
+=
"#"
for
i
in
range
(
50
-
int
(
np
.
round
(
np
.
round
(
t
/
T
,
2
)
*
50
))):
barre
+=
"
"
barre
+=
"
_
"
barre
+=
"| "
barre
+=
str
(
np
.
round
(
t
/
T
,
2
))
+
" %"
print
(
barre
)
...
...
frequency_estimator.py
View file @
7d2b6f2a
...
...
@@ -89,25 +89,3 @@ def freq_from_HPS(sig, fs):
c
*=
a
show
()
return
mean
(
resarray
[
1
:
3
])
\ No newline at end of file
def
hello
(
signal
,
fs
):
print
(
'Calculating frequency from FFT:'
,
end
=
' '
)
start_time
=
time
()
print
(
'%f Hz'
%
freq_from_fft
(
signal
,
fs
))
print
(
'Time elapsed: %.3f s
\n
'
%
(
time
()
-
start_time
))
print
(
'Calculating frequency from zero crossings:'
,
end
=
' '
)
start_time
=
time
()
print
(
'%f Hz'
%
freq_from_crossings
(
signal
,
fs
))
print
(
'Time elapsed: %.3f s
\n
'
%
(
time
()
-
start_time
))
print
(
'Calculating frequency from autocorrelation:'
,
end
=
' '
)
start_time
=
time
()
print
(
'%f Hz'
%
freq_from_autocorr
(
signal
,
fs
))
print
(
'Time elapsed: %.3f s
\n
'
%
(
time
()
-
start_time
))
# print('Calculating frequency from harmonic product spectrum:')
# start_time = time()
# freq_from_HPS(signal, fs)
# print('Time elapsed: %.3f s\n' % (time() - start_time))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment