Hi Edgar
Got the gemin installed and working. Using your example in the video plays OK but it seems to clobber Sonic PI sound out…possibly because the latter numbers generate very high frequencies. I need to restart before I can run it again.
I modified the program as below:
run_file "/Users/rbn/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/figurate_numbers-1.0.0/lib/figurate_numbers.rb"
sleep 1 #to allow figurate_numbers to complete load and setup otherwise first run can give error
seq = FigurateNumbers.octahedral_numbers
live_loop :seq_numbers do
tick
use_synth :bass_foundation
n = seq.next
stop if n > 127
play n, release: 1
sleep 1
end
EDIT I suppose you could use n = (seq.next/)%127 as well which would leave it running