hornc / musysim

Simulator for the early music synthesis programming language: MUSYS.
https://esolangs.org/wiki/MUSYS
GNU General Public License v3.0
7 stars 1 forks source link

reworking envelopes #15

Open hornc opened 6 months ago

hornc commented 6 months ago

Based on latest 2024 comments on #1

Some note transitions are still clicky in tone2.musys audible and visible very early in the attack phase -- timings are not aligning neatly?

./musysim.py examples/tone2.musys ; ./sofkasim.py | ny

Random composition sounds better?

./musysim.py examples/random-composition001.musys ; ./sofkasim.py | ny

Testing:

note.musys @ 131adc2

(set-control-srate 16000)(play (mult (seq (osc 84 0.15 *table* 0)) (seq (pwl-list '(0 0 0.14 0.5 133.473 0)))))

manual calculated target:

(set-control-srate 16000)(play (mult (seq (osc 84 0.15 *table* 0)) (seq (pwl-list '(0 0 0.043537 0.5 0.14 0.5 0.27333 0)))))

note.musys with this PR:

(set-control-srate 16000)(play (mult (seq (osc 84 0.15 *table* 0)) (seq (pwl-list '(0 0 0.044 1 0.14 1 0.273 0)))))