My favorites
▼
|
Sign in
nemadiy
Networked Environment for Music Analysis
Project Home
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
152
attachment: ChordEvaluator.java.patch
(1.0 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- analytics/trunk/src/main/java/org/imirsel/nema/analytics/evaluation/chord/ChordEvaluator.java
+++ analytics/trunk/src/main/java/org/imirsel/nema/analytics/evaluation/chord/ChordEvaluator.java
@@ -217,15 +217,17 @@
//Calculate the overlap score
for (int i = 0; i < lnOverlap; i++ ){
int[] gtFrame = gridGT[i];
- // if(gtFrame == null){
+ if(gtFrame == null){
+ gtFrame = {24};
// getLogger().warning("GT chord Null at " +i + "-ith frame");
- // }
+ }
int[] sysFrame = gridSys[i];
//disabled check as some systems do not mark data until first chord
- // if(sysFrame == null){
+ if(sysFrame == null){
+ sysFrame = {24};
// getLogger().warning("System chord Null at " +i + "-ith frame");
- // }
+ }
// overlap_total += calcOverlap(gtFrame,sysFrame);
//debugging purposes
//end debugging
Powered by
Google Project Hosting