vuoro / pelimanni

Subtractive-synthesised Web Audio classical instruments and utilities for making dynamically looping music with them.
https://music.vuoro.dev
MIT License
15 stars 0 forks source link

Improve velocity #13

Open jonikorpi opened 1 month ago

jonikorpi commented 1 month ago

Velocity could trend towards 1.0 or 0.5 while it’s undefined in the track. Could do so faster while the instrument is not playing.

If current velocity is a state variable in an instrument it might cause weirdness with chords, since they’re technically played by different instruments. Adding the state to a track might be better.

Would also be good to make velocity do more. Right now its effects are a bit vague. It should probably affect volume too.

jonikorpi commented 1 month ago

Will leave velocity up for user control, but also maybe vary high velocities a bit with some kind of “exhaustion” system.