ddf / Minim

A Java audio library, designed to be used with Processing.
http://code.compartmental.net/tools/minim
GNU Lesser General Public License v3.0
668 stars 136 forks source link

Drawing into the Wavetable #86

Closed luisarandas closed 5 years ago

luisarandas commented 5 years ago

Hello and good afternoon! I am having some problems with an issue I'd like to solve. I would like to make the wavetable method in Minim drawable like pure data waveform plotting. Drawing into it with the mousePressed() function. Being able to draw the waveform with the mouse exactly like pure data window. Any ideas? Best, Luis

ddf commented 5 years ago

This is more a question for the Processing forum, but you can construct an empty Wavetable with new Wavetable(size) and then you could write a sketch that maps mouse position to a sample index and value when mousePressed is called and use set on the Wavetable to fill in the Wavetable data. Providing a drawing an interface is beyond the scope of what Minim is intended for.