byulparan / cl-collider

A SuperCollider client for CommonLisp
Other
218 stars 23 forks source link

bugfix and optimization of buffer-read-as-wavetable #110

Closed defaultxr closed 3 years ago

defaultxr commented 3 years ago

This fixes a bug in buffer-read-as-wavetable if the user attempts to read a file bigger than 65536 frames as a wavetable. 65536 is SuperCollider's maximum supported buffer size for the Osc UGen so this change limits wavetables to that size.

Additionally, I also optimized the code of that function to make it run quite a bit faster by using vectors instead of lists in some places.

linear-resample also supports vectors as well now rather than only lists.