ep-3xx41 Max – week 4

Building a digital sampler

References

Max patches demonstrated in class

  • sampler-341.a.maxpat – the sampler we built in class
snippets of code that were used in the sampler
  • sampler-2d.phasor-mod.maxpat –
  • sampler-file-waveform-mod.maxpat
  • sampler-groove-module.maxpat
  • sampler-record-mod.maxpat
  • sampler-selector.maxpat
  • sampler-sfplay-mod.maxpat
A link to download all of the patches
[wpdm_file id=8]

Topics not covered…

  • abstraction
  • bpatcher
  • print, message object right inlet
  • Max window
  • Presentation mode
  • OSC
  • Serial
  • attrui
  • clippings
  • prototypes

Useful things to know

  • Pasting patches from the c74 Forum into a patcher
  • Using externals (set Max path options)
  • Where are the examples? (inside the application)
  • Max For Live – Use it as a “shell” to give your patches Midi, audio production, recording, automation, etc.,
  • vignettes

 Assignment

Continue to write a patch that sounds bad. Due next week. Just bring patch to class. Alternative or bonus: Design a digital sampling alarm clock.

Build VST plugins in Max with gen~

Today I built a VST plugin in gen~ using instructions…

at the Cycling 74 Wiki

http://cycling74.com/wiki/index.php?title=Gen_Code_Export_VST

additional things

local files:

  • max teaching examples/Tremelo-vst.maxpat (gen~)
  • max teaching examples/vst-tester.maxpat

code:

  • vstsdk2.4/public_sdk/samples/vst2.x/MyVSTPlugin
notes
  • VST requires all paramaters to go from 0-1.0 so you need to scale them in gen~
  • There are a ton of compiler warnings in Xcode. And a syntax error that you can autocorrect.
  • Restart Max, if you make changes to the plugin

 

metro qmetro

Debugging a Max patch that speeds up arrow keys after you hold a key down for 2 seconds. The metro object was hanging the patch, no matter what the speed. Replacing the metro with qmetro solved the problem