Method: Musicality::NoteArray#next_note
- Defined in:
- lib/musicality/composition/sequencing/note_array.rb
#next_note ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/musicality/composition/sequencing/note_array.rb', line 17 def next_note note = @notes[@notes_idx] @notes_idx += 1 if @notes_idx >= @notes_count @notes_idx = 0 end return note end |