Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created October 11, 2020 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/d43471626affe5220e74807d5ea8e1ed to your computer and use it in GitHub Desktop.
Save zeffii/d43471626affe5220e74807d5ea8e1ed to your computer and use it in GitHub Desktop.
the commented code works, but not the loop code.
i_num_notes = lenarray(i_notes)
;aNewVoice pad_voice i_notes[0], i_duration
;aSig += aNewVoice
;aNewVoice2 pad_voice i_notes[1], i_duration
;aSig += aNewVoice2
;aNewVoice2 pad_voice i_notes[2], i_duration
;aSig += aNewVoice2
;aNewVoice2 pad_voice i_notes[3], i_duration
;aSig += aNewVoice2
i_index = 0
until i_index == (i_num_notes-1) do
aNewVoice pad_voice i_notes[i_index], i_duration
aSig += aNewVoice
i_index += 1
od
aSig /= i_num_notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment