Create a ring buffer of midi note numbers

midi_notes  list (array)

Create a new immutable ring buffer of notes from args. Indexes wrap around positively and negatively. Final ring consists only of MIDI numbers and nil.

Introduced in v2.7

Examples

# Example 1

(midi_notes :d3, :d4, :d5)



#=> (ring 50, 62, 74)



# Example 2

(midi_notes :d3, 62,  nil)



#=> (ring 50, 62, nil)