Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ function parseSong(songString, settings) {
var songNote = songData[i].replace(".", "");
var match = pattern.exec(songNote);
var dot = 0;


//octave manager
if(isNaN(oct) == false){

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does oct get set?

@PlantLily PlantLily May 9, 2017

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright added oct to it
and changed the refinement of octave, sorry I'm really tired

octave = octave*1 + (oct*1-octave*1);
}else{
var octave = settings.getOctave();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't redefine octave within the else scope

}

if(songData[i].indexOf('.') !== -1) {
dot = 1;
}
Expand Down