Skip to content

Commit

Permalink
Replace WAV files with NAudio tone generation
Browse files Browse the repository at this point in the history
Also update .NET Framework version and misc other things
  • Loading branch information
livvy94 committed Oct 11, 2021
1 parent b98e30c commit 735140f
Show file tree
Hide file tree
Showing 83 changed files with 589 additions and 1,427 deletions.
2 changes: 1 addition & 1 deletion PK Piano/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<configuration>
<startup>

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup>
</configuration>
9 changes: 3 additions & 6 deletions PK Piano/EBM Note Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ static string GetHexCode(int startingHex, string MPTnote)

public static bool lengthIsInvalid(int length)
{
if (length > 0x7F)
return true; //numbers higher than 0x7F count as notes and not note lengths

return false;
return length > 0x7F; //numbers higher than 0x7F count as notes and not note lengths
}

public static int[] validateNoteLength(int length)
Expand All @@ -106,10 +103,10 @@ public static int[] validateNoteLength(int length)
//result[0] is the new length
//result[1] is the appropriate multiplier
//...should I make this into a class? Probably.

result[0] = length; //if this makes it to the end, then there was no change necessary
result[1] = multiplier;

while (lengthIsInvalid(result[0]))
{
multiplier++;
Expand Down
621 changes: 308 additions & 313 deletions PK Piano/Form1.Designer.cs

Large diffs are not rendered by default.

Loading

0 comments on commit 735140f

Please sign in to comment.