| 33 | } Event; |
| 34 | |
| 35 | typedef struct ConvertParams { |
| 36 | /* Note segmentation (0.05 - 0.95, Split-Merge Notes) */ |
| 37 | float onsetThreshold = 0.3; |
| 38 | /* Confidence threshold (0.05 to 0.95, More-Less notes) */ |
| 39 | float frameThreshold = 0.5; |
| 40 | /* Minimum note length in number of frames */ |
| 41 | int minNoteLengthFrames = 11; |
| 42 | bool inferOnsets = true; |
| 43 | float maxFrequency = -1; // in Hz, -1 means unset |
| 44 | float minFrequency = -1; // in Hz, -1 means unset |
| 45 | bool melodiaTrick = true; |
| 46 | PitchBendModes pitchBend = NoPitchBend; |
| 47 | int energyThreshold = 11; |
| 48 | } ConvertParams; |
| 49 | |
| 50 | /** |
| 51 | * Create note events based on postegriorgram inputs |
nothing calls this directly
no outgoing calls
no test coverage detected