Function midiEventsCreateParser
has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring. Open
MIDIEvents.createParser = function midiEventsCreateParser(
stream,
startAt,
strictMode
) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function midiEventsWriteToTrack
has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring. Open
MIDIEvents.writeToTrack = function midiEventsWriteToTrack(
events,
destination,
strictMode
) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function midiEventsCreateParser
has 282 lines of code (exceeds 25 allowed). Consider refactoring. Open
MIDIEvents.createParser = function midiEventsCreateParser(
stream,
startAt,
strictMode
) {
File midievents.js
has 542 lines of code (exceeds 250 allowed). Consider refactoring. Open
'use strict';
// MIDIEvents : Read and edit events from various sources (ArrayBuffer, Stream)
function MIDIEvents() {
throw new Error('MIDIEvents function not intended to be run.');
Function next
has 220 lines of code (exceeds 25 allowed). Consider refactoring. Open
next: function() {
// Check available datas
if (stream.end()) {
return null;
}
Function midiEventsWriteToTrack
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
MIDIEvents.writeToTrack = function midiEventsWriteToTrack(
events,
destination,
strictMode
) {
Function getRequiredBufferLength
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. Open
MIDIEvents.getRequiredBufferLength = function(events) {
var bufferLength = 0;
var i = 0;
var j;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getRequiredBufferLength
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
MIDIEvents.getRequiredBufferLength = function(events) {
var bufferLength = 0;
var i = 0;
var j;
Avoid deeply nested control flow statements. Open
if (strictMode && 59 < events[i].seconds) {
throw new Error(
'Event #' +
i +
': SMTPE offset seconds value must' +
Avoid deeply nested control flow statements. Open
for (k = 0, l = events[i].length; k < l; k++) {
destination[index++] = events[i].data[k];
}
Avoid deeply nested control flow statements. Open
if (
'number' !== typeof events[i].scale ||
0 > events[i].scale ||
1 < events[i].scale
) {
Avoid deeply nested control flow statements. Open
if (strictMode && 99 < events[i].subframes) {
throw new Error(
'Event #' +
i +
': SMTPE offset subframes amount' +
Avoid deeply nested control flow statements. Open
for (k = 0, l = events[i].length; k < l; k++) {
destination[index++] = events[i].data[k];
}
Avoid deeply nested control flow statements. Open
if (strictMode && 23 < events[i].hour) {
throw new Error(
'Event #' +
i +
': SMTPE offset hour value must be' +
Avoid deeply nested control flow statements. Open
if (strictMode && 59 < events[i].minutes) {
throw new Error(
'Event #' +
i +
': SMTPE offset minutes value must' +
Avoid deeply nested control flow statements. Open
if (
'number' != typeof events[i].key ||
-7 > events[i].key ||
7 < events[i].scale
) {
Avoid deeply nested control flow statements. Open
if (strictMode && 30 < events[i].frames) {
throw new Error(
'Event #' +
i +
': SMTPE offset frames amount must' +
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Avoid too many return
statements within this function. Open
return event;
Similar blocks of code found in 2 locations. Consider refactoring. Open
bufferLength +=
events[i].length >>> 21
? 4
: events[i].length >>> 14
? 3
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 65.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
bufferLength +=
events[i].delta >>> 21
? 4
: events[i].delta >>> 14
? 3
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 65.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
case MIDIEvents.EVENT_META_CUE_POINT:
for (k = 0, l = events[i].length; k < l; k++) {
destination[index++] = events[i].data[k];
}
break;
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 63.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
default:
for (k = 0, l = events[i].length; k < l; k++) {
destination[index++] = events[i].data[k];
}
break;
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 63.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 6 locations. Consider refactoring. Open
if (events[i].length >>> 21) {
destination[index++] = ((events[i].length >>> 21) & 0x7f) | 0x80;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (events[i].length >>> 28) {
throw Error(
'Event #' +
i +
': Maximum length reached (' +
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 6 locations. Consider refactoring. Open
if (events[i].delta >>> 7) {
destination[index++] = ((events[i].delta >>> 7) & 0x7f) | 0x80;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (events[i].delta >>> 28) {
throw Error(
'Event #' +
i +
': Maximum delta time value reached (' +
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 6 locations. Consider refactoring. Open
if (events[i].length >>> 14) {
destination[index++] = ((events[i].length >>> 14) & 0x7f) | 0x80;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 6 locations. Consider refactoring. Open
if (events[i].delta >>> 21) {
destination[index++] = ((events[i].delta >>> 21) & 0x7f) | 0x80;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 6 locations. Consider refactoring. Open
if (events[i].delta >>> 14) {
destination[index++] = ((events[i].delta >>> 14) & 0x7f) | 0x80;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 6 locations. Consider refactoring. Open
if (events[i].length >>> 7) {
destination[index++] = ((events[i].length >>> 7) & 0x7f) | 0x80;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 52.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Delete ,
Open
},
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·must·be·part·of·0-99.'
with "·must·be·part·of·0-99."
Open
' must be part of 0-99.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ').'
with ")."
Open
').'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':·Maximum·delta·time·value·reached·('
with ":·Maximum·delta·time·value·reached·("
Open
': Maximum delta time value reached (' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'MIDIEvents·function·not·intended·to·be·run.'
with "MIDIEvents·function·not·intended·to·be·run."
Open
throw new Error('MIDIEvents function not intended to be run.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace k·=·0,·l·=·events[i].length
with (k·=·0),·(l·=·events[i].length)
Open
for (k = 0, l = events[i].length; k < l; k++) {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ········
with ······
Open
? 4
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '0x'
with "0x"
Open
return '0x' + (this.buffer.byteOffset + this.position).toString(16);
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Bad·metaevent·length.'
with "·Bad·metaevent·length."
Open
throw new Error(stream.pos() + ' Bad metaevent length.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·SMTPE·offset·frames·value·must'
with "·SMTPE·offset·frames·value·must"
Open
' SMTPE offset frames value must' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ',·Delta:·'
with ",·Delta:·"
Open
', Delta: ' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'number'
with "number"
Open
'number' != typeof events[i].key ||
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ··
Open
? 4
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':'
with ":"
Open
':' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·be·part·of·0-30.'
with "·be·part·of·0-30."
Open
' be part of 0-30.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace i·=·0,·j·=·events.length
with (i·=·0),·(j·=·events.length)
Open
for (i = 0, j = events.length; i < j; i++) {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '/134217728·max)'
with "/134217728·max)"
Open
'/134217728 max)'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':·SMTPE·offset·hour·value·must·be'
with ":·SMTPE·offset·hour·value·must·be"
Open
': SMTPE offset hour value must be' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Bad·metaevent·length.'
with "·Bad·metaevent·length."
Open
throw new Error(stream.pos() + ' Bad metaevent length.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Bad·metaevent·length.'
with "·Bad·metaevent·length."
Open
throw new Error(stream.pos() + ' Bad metaevent length.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Unknown·meta·event·type·'
with "·Unknown·meta·event·type·"
Open
' Unknown meta event type ' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Unknown·MIDI·event·type·'
with "·Unknown·MIDI·event·type·"
Open
' Unknown MIDI event type ' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '('
with "("
Open
'(' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·SMTPE·offset·hour·value·must'
with "·SMTPE·offset·hour·value·must"
Open
' SMTPE offset hour value must' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace i·=·0,·j·=·events.length
with (i·=·0),·(j·=·events.length)
Open
for (i = 0, j = events.length; i < j; i++) {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '('
with "("
Open
'(' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Running·status·without·previous·event'
with "·Running·status·without·previous·event"
Open
stream.pos() + ' Running status without previous event'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ,
Open
},
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':·Maximum·length·reached·('
with ":·Maximum·length·reached·("
Open
': Maximum length reached (' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·part·of·0-23.'
with "·part·of·0-23."
Open
' part of 0-23.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':·SMTPE·offset·seconds·value·must'
with ":·SMTPE·offset·seconds·value·must"
Open
': SMTPE offset seconds value must' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':·SMTPE·offset·subframes·amount'
with ":·SMTPE·offset·subframes·amount"
Open
': SMTPE offset subframes amount' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ········:·events[i].delta·>>>·14⏎··········?·3⏎··········:·events[i].delta·>>>·7⏎············?·2⏎···········
with ······:·events[i].delta·>>>·14·?·3·:·events[i].delta·>>>·7·?·2
Open
: events[i].delta >>> 14
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Bad·metaevent·length.'
with "·Bad·metaevent·length."
Open
throw new Error(stream.pos() + ' Bad metaevent length.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Tempo·meta·event·length·must·be·3.'
with "·Tempo·meta·event·length·must·be·3."
Open
stream.pos() + ' Tempo meta event length must be 3.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·must·be·part·of·0-59.'
with "·must·be·part·of·0-59."
Open
' must be part of 0-59.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·be·0·or·1.'
with "·be·0·or·1."
Open
' be 0 or 1.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ,
Open
MIDIEvents.EVENT_MIDI_CHANNEL_AFTERTOUCH,
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace k·=·0,·l·=·events[i].length
with (k·=·0),·(l·=·events[i].length)
Open
for (k = 0, l = events[i].length; k < l; k++) {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':·SMTPE·offset·frames·amount·must'
with ":·SMTPE·offset·frames·amount·must"
Open
': SMTPE offset frames amount must' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ,
Open
MIDIEvents.EVENT_MIDI_PITCH_BEND,
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Variable·integer·length·cannot·exceed·4·bytes'
with "·Variable·integer·length·cannot·exceed·4·bytes"
Open
' Variable integer length cannot exceed 4 bytes'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ,
Open
delta: stream.readVarInt(),
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·SMTPE·offset·seconds·value'
with "·SMTPE·offset·seconds·value"
Open
' SMTPE offset seconds value' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·SMTPE·offset·subframes·value'
with "·SMTPE·offset·subframes·value"
Open
' SMTPE offset subframes value' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Unknown·event·type·'
with "·Unknown·event·type·"
Open
' Unknown event type ' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':·SMTPE·offset·minutes·value·must'
with ":·SMTPE·offset·minutes·value·must"
Open
': SMTPE offset minutes value must' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·be·part·of·0-23.'
with "·be·part·of·0-23."
Open
' be part of 0-23.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·must·be·part·of·0-99.'
with "·must·be·part·of·0-99."
Open
' must be part of 0-99.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '/134217728·max)'
with "/134217728·max)"
Open
'/134217728 max)'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'·+·i·+·':'·+·'The·key·signature·scale·must·be·0·or·1'
with "Event·#"·+·i·+·":"·+·"The·key·signature·scale·must·be·0·or·1"
Open
'Event #' + i + ':' + 'The key signature scale must be 0 or 1'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·be·part·of·0-59.'
with "·be·part·of·0-59."
Open
' be part of 0-59.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·between·-7·and·7'
with "·between·-7·and·7"
Open
' between -7 and 7'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '0x'
with "0x"
Open
'0x' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '.'
with "."
Open
'.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ⏎·······
Open
bufferLength +=
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'use·strict'
with "use·strict"
Open
'use strict';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Bad·metaevent·length.'
with "·Bad·metaevent·length."
Open
throw new Error(stream.pos() + ' Bad metaevent length.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ').'
with ")."
Open
').'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·be·part·of·0-59.'
with "·be·part·of·0-59."
Open
' be part of 0-59.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·must·be·part·of·0-59.'
with "·must·be·part·of·0-59."
Open
' must be part of 0-59.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ':The·key·signature·key·must·be'
with ":The·key·signature·key·must·be"
Open
':The key signature key must be' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace (k·=·0,·l·=·events[i].length
with ((k·=·0),·(l·=·events[i].length)
Open
for (k = 0, l = events[i].length; k < l; k++) {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ⏎·····
Open
bufferLength +=
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Bad·metaevent·length.'
with "·Bad·metaevent·length."
Open
throw new Error(stream.pos() + ' Bad metaevent length.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'Event·#'
with "Event·#"
Open
'Event #' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ··········:·events[i].length·>>>·14⏎············?·3⏎············:·events[i].length·>>>·7⏎··············?·2⏎·············
with ········:·events[i].length·>>>·14·?·3·:·events[i].length·>>>·7·?·2
Open
: events[i].length >>> 14
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·SMTPE·offset·minutes·value'
with "·SMTPE·offset·minutes·value"
Open
' SMTPE offset minutes value' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Bad·metaevent·length.'
with "·Bad·metaevent·length."
Open
throw new Error(stream.pos() + ' Bad metaevent length.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·Key·signature·scale·value·must'
with "·Key·signature·scale·value·must"
Open
' Key signature scale value must' +
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace '·be·part·of·0-30.'
with "·be·part·of·0-30."
Open
' be part of 0-30.'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'number'
with "number"
Open
'number' !== typeof events[i].scale ||
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/