Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
comsar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Blaß, Michael
comsar
Commits
1eefe44b
Commit
1eefe44b
authored
5 years ago
by
Blaß, Michael
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for TimbreTrackAlt.
parent
d069820e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/comsar/_tracks/timbre.py
+3
-4
3 additions, 4 deletions
src/comsar/_tracks/timbre.py
src/comsar/_tracks/utilities.py
+7
-0
7 additions, 0 deletions
src/comsar/_tracks/utilities.py
src/comsar/tracks.py
+1
-0
1 addition, 0 deletions
src/comsar/tracks.py
with
11 additions
and
4 deletions
src/comsar/_tracks/timbre.py
+
3
−
4
View file @
1eefe44b
...
@@ -16,7 +16,7 @@ from apollon.tools import time_stamp
...
@@ -16,7 +16,7 @@ from apollon.tools import time_stamp
import
comsar
import
comsar
from
comsar._tracks.utilities
import
(
TrackMeta
,
TrackResult
,
from
comsar._tracks.utilities
import
(
TrackMeta
,
TrackResult
,
TimbreTrackParams
)
TimbreTrackParams
,
TimbreTrackAltParams
)
STFT_DEFAULT
=
container
.
StftParams
(
fps
=
44100
,
window
=
'
hamming
'
,
n_fft
=
None
,
STFT_DEFAULT
=
container
.
StftParams
(
fps
=
44100
,
window
=
'
hamming
'
,
n_fft
=
None
,
...
@@ -125,9 +125,8 @@ class TimbreTrackAlt:
...
@@ -125,9 +125,8 @@ class TimbreTrackAlt:
"""
"""
Args:
Args:
"""
"""
self
.
params
=
TimbreTrackParams
(
stft_params
or
STFT_DEFAULT
,
self
.
params
=
TimbreTrackAltParams
(
stft_params
or
STFT_DEFAULT
,
corr_dim_params
or
CORR_DIM_DEFAULT
,
corr_dim_params
or
CORR_DIM_DEFAULT
)
corr_gram_params
or
CORR_GRAM_DEFAULT
)
self
.
cutter
=
Segmentation
(
self
.
params
.
stft
.
n_perseg
,
self
.
cutter
=
Segmentation
(
self
.
params
.
stft
.
n_perseg
,
self
.
params
.
stft
.
n_overlap
,
self
.
params
.
stft
.
n_overlap
,
...
...
This diff is collapsed.
Click to expand it.
src/comsar/_tracks/utilities.py
+
7
−
0
View file @
1eefe44b
...
@@ -42,6 +42,13 @@ class TimbreTrackParams(TrackParams):
...
@@ -42,6 +42,13 @@ class TimbreTrackParams(TrackParams):
corr_gram
:
signal
.
container
.
CorrGramParams
corr_gram
:
signal
.
container
.
CorrGramParams
@dataclass
class
TimbreTrackAltParams
(
TrackParams
):
"""
Parameter set for TimbreTrack
"""
stft
:
signal
.
container
.
StftParams
corr_dim
:
signal
.
container
.
CorrDimParams
class
TrackResult
:
class
TrackResult
:
"""
Provide track results.
"""
"""
Provide track results.
"""
def
__init__
(
self
,
meta
:
TrackMeta
,
params
:
TrackParams
,
def
__init__
(
self
,
meta
:
TrackMeta
,
params
:
TrackParams
,
...
...
This diff is collapsed.
Click to expand it.
src/comsar/tracks.py
+
1
−
0
View file @
1eefe44b
from
.
_tracks
.
timbre
import
TimbreTrack
from
.
_tracks
.
timbre
import
TimbreTrack
from
.
_tracks
.
timbre
import
TimbreTrackAlt
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment