(max) graphic audio display, waveform~

example patchers

waveform~

The [waveform~] object is a graphic editor for buffered audio. The easiest way to make use of [waveform~] in a patcher is to copy and paste from the help file. Copying from the help patcher gives you the pict slider (with tool picts) and the subpatcher that changes the tool for [waveform~]. Unlock the patcher to see all of the connections. A short list of things to pay attention to:

  • the [waveform~] object has to be linked to a named buffer. The loadbang to the message accomplishes this link. The message is formatted as name buffername channel# (of buffer).
  • The four tools on the left are part of a pictslider object. The pictslider lets you load pictures that serve as the background for a selectable slider. The index of the tool selection is sent to the subpatcher [wfkeys]. The tools are: select, loop, move/zoom, and draw.
  • The move tool lets you change the zoom of the display by clicking and dragging up or down.
  • You can select loop sections by entering time messages in the number boxes above the waveform, or by using the select tool in the waveform.
  • The [set $1] messages update the number boxes above the waveform when you select in the waveform, without creating a feedback loop.
  • Start and End points of the loop selection are sent to the groove~ object as start and end points for looping.

stereo waveform~ view

You can link two [waveform~] objects to view and edit stereo audio files. Each [waveform~] has to be linked to a channel. Tool changes are sent to both. To set it so that selecting a portion of one channel selects both channels, you need to connect the link outlet of each [waveform~] to the link inlet of each [waveform~]. Link connections are on the far right. Otherwise, the operation is the same as when working in mono.


Comments

Leave a Reply