Slide 34
Slide 34 text
シングルコア直列で高速化
SpinelしたRubyをmrbgem化するツール利用
#: (Float, Float) -> Float
def self.blep(phase, step)
if step > 0.0 && phase < step
t = phase / step
t + t - t * t - 1.0
elsif step > 0.0 && phase > 1.0 - step
t = (phase - 1.0) / step
t * t + t + t + 1.0
else
0.0
end
end
bash0C7/sendairk03̲instrument/gems/picoruby-instrument-synth/dsp/instrument̲dsp.rb(抜粋)
suppify: https://github.com/bash0C7/suppify