Skip to content

Commit

Permalink
Fixed a bug that was causing sound to be a bit choppy when repeated f…
Browse files Browse the repository at this point in the history
…ast notes were played over and over again.
  • Loading branch information
dhilowitz committed Jul 1, 2020
1 parent 78559d4 commit 97fc067
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file removed src/Pianobook Piano Template v1.nki
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ end on

function func_play_regular_note
if(%notes_playing[$func_play_note_midi_note] > 0)
fade_out(%notes_playing[$func_play_note_midi_note], 1000, 1)
fade_out(%notes_playing[$func_play_note_midi_note], $key_up_release_time_ms * 1000, 1)
end if

if(num_elements(%note_without_pedal_groups) <= 0)
Expand Down Expand Up @@ -158,7 +158,7 @@ end function

function func_play_sustain_note
if(%notes_playing[$func_play_note_midi_note] > 0)
fade_out(%notes_playing[$func_play_note_midi_note], 1000, 1)
fade_out(%notes_playing[$func_play_note_midi_note], $key_up_release_time_ms * 1000, 1)
end if

if(num_elements(%note_with_pedal_groups) <= 0)
Expand Down
Binary file added src/Pianobook Piano Template.nki
Binary file not shown.

0 comments on commit 97fc067

Please sign in to comment.