A little rejigging to both this and my existing method, to get sample duration from file
(text-to-speech…-to-audio disk)
with_fx :reverb do
play :c
s = speak "testing 12345 . here we go!", 0
sample_free_all
with_fx :echo, pre_mix: 0, decay: 4, max_phase: 4 do |e|
dur = sample_duration s
puts dur
sample s
time_warp (dur - 1) do # sample_length - last_slice_length
control e, pre_mix: 1
end
end
end
Wondering if we get at the onset times, if sonicpi knows when there’s a good bit, or auto-slicing.