mc.waveform

klaus filip's icon

hi there,
this is both,
- sharing a jsui for displaying multichannel waveforms with optionally displaying a soundfile from disc
and
- a question about how to use task() to put the disk-reading into some deferlow mode:
the reading-from-disc here is done with a hidden buffer~ object (in the patcher) that
reads chunks (600samples) of a (maybe large) soundfile in a loop into a js-array.
i failed to do this in background so that the mouseaction is not blocked while redrawing the waveform.
if someone could have a brief look into my function "drawwf" (section sf-read) that would be outstanding great ;)
cheers
klaus


mcwaveform.zip
zip 15.94 KB


missyu's icon

would love to help with this, I think it needs updating because I couldnt get it to work in Max 9.1.0

TFL's icon

It worked for me (Max 9.1.1), but only after loading a file for the second time, so there's probably something wrong in the initialization.

klaus filip's icon

make sure, you are using the latest version:
https://github.com/ppooll-dev/ll_externals

the old jsui prototype from my first post above is a proper max external nowadays.