ersatz_benUsing Bessel functions for physical modelling of drums/percussion.
In the video, [preset] is used with a [line] object to interpolate through the different sounds. This shows the advantages of physical modelling over sample use - you can morph between sounds in a cool way.
Lots of potential in this one, including to add more Bessel roots for a more complex sound – I only used a precomputed list of the first four roots (m=1,2,3,4) of the Bessel function of the first kind, J_n(x), for orders n=0,1,2,3), stored in a coll object, and with weights computed on the fly in a [v8] object.
Max/MSP: Bessel functions experimentersatz_ben2025-07-02 | Using Bessel functions for physical modelling of drums/percussion.
In the video, [preset] is used with a [line] object to interpolate through the different sounds. This shows the advantages of physical modelling over sample use - you can morph between sounds in a cool way.
Lots of potential in this one, including to add more Bessel roots for a more complex sound – I only used a precomputed list of the first four roots (m=1,2,3,4) of the Bessel function of the first kind, J_n(x), for orders n=0,1,2,3), stored in a coll object, and with weights computed on the fly in a [v8] object.
Patch code for drum synth: pastebin.com/rcR3KsykMEMORY PALACE effect — 4: BREAKSersatz_ben2025-09-22 | Memory Palace is a multitap delay/reverb effect for Max/MSP + gen~ Demonstration on drum break loop (Max jongly) Code available here: pastebin.com/HeZBc3VZMEMORY PALACE effect — 3: VOCALSersatz_ben2025-09-22 | Memory Palace is a multitap delay/reverb effect for Max/MSP + gen~ Demonstration on vocal loop Code available here: pastebin.com/HeZBc3VZMEMORY PALACE effect — 2: VIOLINersatz_ben2025-09-22 | Memory Palace is a multitap delay/reverb effect for Max/MSP + gen~ Demonstration on violin loop Code available here: pastebin.com/HeZBc3VZMEMORY PALACE effect — 1: DRUMSersatz_ben2025-09-22 | Memory Palace is a multitap delay/reverb effect for Max/MSP + gen~ Demonstration on drum kit loop Code available here: pastebin.com/HeZBc3VZscanner – Max/MSP recordingersatz_ben2025-09-01 | Scanned synthesis track built in Max – wavetable shapes generated from a live mass–spring model, with custom visualiser and patch. Full project available on Patreon shortly: patreon.com/u55307851Huygens rain wavetable - Max/MSPersatz_ben2025-08-24 | Rain-scan wavetable: stereo Huygens wavefield in Max patch code: pastebin.com/xLif8WkR
———— what this is ———— A playable wavetable instrument built from a 2D “rain on a membrane” simulation. Inspired by scanned-synthesis ideas and Huygens-style wavefront thinking. We evolve a damped wavefield on a grid, then sample it at audio rate along user-defined circular scanlines. Each scanline writes to a channel of buffer~ huygens, so you can drive wave~ (or anything else) with living, geometry-shaped tables. ———— how it works ———— Wavefield: simple 5-point Laplacian + leap-frog integrator with damping. Excitation: droplets as velocity kicks with zero-mean shapes (no DC creep). Boundaries: switchable reflective or clamped edges; we also remove the exact spatial mean each tick for stability. Scanlines: two independent circles (centre, radius, angle) → buffer ch.1 and ch.2. Readout: any oscillator can read the tables; demo uses phasor~ → wave~ huygens. Visuals: heatmap of the grid, both circles with direction markers, and a stereo waveform panel at the bottom (per-pixel min/max). ———— on-screen controls ———— - Drag to move a circle’s centre. - Shift-drag to change radius. - Alt/Option-drag to change angle. - Click picks the nearest circle; or send select 1/2. ———— key messages (send to the v8ui script) ———— start / stop fps Hz // 30–120 grid w h // e.g. 128 128 or 192 192 tension csq // 0.10–0.24 (wave speed^2) damp amount // 0.004–0.014 rain rate R amp // drops/sec, radius (cells), amplitude circle1 x y r // circle 1 (0..1 coords) angle1 radians // circle 1 angle circle2 x y r // circle 2 angle2 radians // circle 2 angle edge clamp|reflect vis gain // heatmap display gain waves 0/1 // show/hide oscilloscope waveh 0.10–0. // oscilloscope height wavegain 0.1–10 // oscilloscope vertical gain stats // print mean/min/max for sanity clear // zero the field ———— minimal patch setup ———— buffer~ huygens @samps 2048 @chan 2 phasor~ → wave~ huygens 0 0 1 → *~ → dac~ phasor~ 111 → wave~ huygens 0 0 2 → *~ → dac~ v8ui running the script from the source code below ———— why it doesn’t blow up ———— Early versions drifted positive because droplets added displacement and reflective boundaries preserved the DC eigenmode. We fixed it by exciting velocity, shaping droplets to zero mean, clamping (optional), and subtracting the exact spatial mean each step. ———— nice parameter ranges ———— grid 128 128 or 192 192 for richness vs CPU tension 0.18–0.24, damp 0.008–0.012 Sparse to storm: rain 5 3 0.5 → rain 120 6 0.4 Subtle stereo: offset the two angles by ~π/3amen + v8ui (Max MSP)ersatz_ben2025-07-04 | Amen break with filtering and panning & basic chop effect ↕ = filter frequency ↔ = pan position MC is CPU heavy, especially when maxing out at 1024 channels! We really should build this kind of thing in poly~ so we can have multithreading.
No patch code for this one as it's too insane sorry!modal synthesis demoersatz_ben2025-01-13 | Modal synthesis is quite versatile! I made a polysynth which is capable of a wide range of tones.
Patch code: pastebin.com/zSz2HyZuchilled piano + FBAM (Max/MSP recording)ersatz_ben2024-12-17 | Using feedback AM synthesis and piano chords to create 7 mins of chilled ambient beats...
FBAM synth: pastebin.com/XRKZtpbvbrushes.aif with feedback allpass - Max/MSPersatz_ben2024-11-20 | Examples of how to destroy the stock Max "brushes.aif" soundfile! I used snippets of brushes.aif as an exciter for a polyphonic allpass-filtered feedback delay (created in mc.gen~), creating a variety of Karplus-Strong-type synth sounds. Beats are provided by my custom modelled hi-hat & snare algos and my punchy phase-locked gen~ kickdrum algo. Reverb is based on Bill Gardner's large room reverberator https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=7c3e3f3947d49aa8aaf561ca1d138aee9e93f1f3 – but most of the 'reverb' you hear is actually from the feedback allpass.
Patch code: pastebin.com/YFpP3XyXvoronoi and pink bubbles - Max/MSP recordingersatz_ben2024-11-18 | Simulation of a Voronoi diagram in V8UI (Max 9). Region sizes are mapped onto harmonic series of a sine wave to create an evolving additive synth sound. Bubble / smoke simulation is used to control playback of an audiofile with some tuned feedback delay.
I have this moving through the different preset states quite slowly to create a meditative / trippy soundscape
Patch code for the V8UI objects here (Max 9 required): pastebin.com/ULJcSzqnthree body simulationersatz_ben2024-11-11 | Using a three body problem physics model (simple Euler integration) to generate data for musical applicationsMax/MSP *TUTORIAL* - sample sequencing with mc.groove~ersatz_ben2024-11-09 | Here is a tutorial on some basic techniques for how to use Max's mc objects to create multilayered sounds in Max. I built on this for the sounds in the recent 'double pendulum' video.
Note - don’t divide [random 100] by 101, this is wrong! Divide it by 99 instead. Or just use [scale 0 99 0. 1.] - with the dots to force a floating point calculationMax 9 - double pendulum physics in v8ui + nodes + mc objectsersatz_ben2024-11-06 | Blissing out with mc again lol
Double pendulum JS code here: pastebin.com/kZfZm1Mq (requires Max 9 v8ui object)koto - Max/MSP recordingersatz_ben2024-11-03 | First project in Max 9 - twisting a koto and piano sample until they're unrecognisable, using the new ABL and codebox objects, and the easy new way to do preset interpolation! :)Further Tombola Experiments in Max/MSPersatz_ben2024-10-25 | Patch code (includes links to updated JS file and drum synth): pastebin.com/eCA1MUchTombola sequencer in Max/MSP with JSUIersatz_ben2024-10-22 | JSUI code: pastebin.com/0XDU8aZAA clickable hexagon grid playing 31EDO melodies #maxmspersatz_ben2024-09-06 | ...30 mins of hit em in Max/MSP...ersatz_ben2024-08-23 | Having a bit of fun based on this tweet: https://x.com/DDDrewDaniel/status/1817910903557570569objecttesting - Max/MSP performanceersatz_ben2024-08-05 | Getting kinda serious with [nodes] and [pattrstorage] on this one. The recallmulti message is incredibly powerful for morphing and interpolating between multiple presets - see the example in the [nodes] help file
* 2x modelled percussion tracks - see prev video * wavetable synth and simple reverb - see videos passim * built-in apache breakbeat * multiband [tanh~] processing * cursor path recording and playback using [mtr] and a transparent [pictslider]
(This project is a bit too complex and multilayered to share the source code, sorry!)nonlinear drum modelling examplesersatz_ben2024-07-18 | Quick patch to show the range of sounds it’s possible to achieve with a simple physical model.
Patch code: pastebin.com/r7RDcYurresosnare - Max/MSP performanceersatz_ben2024-07-15 | Playing around with drum synthesis ideas.Max/MSP: Further experiments in gen~ / dub / FMersatz_ben2024-06-07 | Patch code: pastebin.com/UjMQBViz (use your own samples!)
I need to implement anti-aliasing on the different FM synths, which are pretty evil and rippy at the moment. The reverbs are all home-cooked algorithms. Sorry about the few seconds where the audio buffer overloads - this is a problem with Blackhole, not with my computer!Max/MSP: making dub music in gen~ersatz_ben2024-06-04 | Patch code: pastebin.com/BmrASAMkCRYSTALLINE Granular Delay Pedal: SYNTH DEMOersatz_ben2024-05-30 | ** Limited run coming soon - taking early orders at ersatzpedals [at] gmail [dot] com! **
CRYSTALLINE is a limited edition granular delay pedal built using the Max/MSP gen~ environment and the Daisy Seed platform. This is a demo of the pedal effecting various synth sounds from a Prophet '08. Revisions for v1.1 of the pedal include a soft touch footswitch and a smart black enclosure, as well as several improvements to the circuit.
What do the knobs do? Manual here: https://t.ly/-lSuxCRYSTALLINE: custom effects pedal built with gen~ and Daisy Seedersatz_ben2024-04-22 | I have made an effects pedal from scratch using the Daisy Seed platform and a lot of hard work in gen~! This is a kind of granular delay where the “repeats” are random snippets of the last 6 seconds of recorded audio, played as tiny back-and-forth repeated grains. The delay “rhythm” is probabilistic. Grains can be detuned, pitched up +5th or +8ve, stereo panned, enveloped and low pass filtered. Works with a standard +9V guitar pedal power supply.First try at running a gen~ patch on the Daisy Seedersatz_ben2024-02-23 | ...evolvewalk - max/msp patchersatz_ben2024-01-29 | patch using random walk to create melodic sequences and the powerful mc.evolve~ object to produce squelchy percussion out of mc.rect~
patch code: pastebin.com/fSQxMG7Dsacrecoeur - max/msp performanceersatz_ben2023-12-07 | Something a little more finished, based on a recording taken on my phone from the Sacré Coeur cathedral in Paris. Too many samples here to be worth sharing the code!ersatzben - back to basicsersatz_ben2023-11-16 | Stressful job, no time, getting back to it slowly! Patch code: pastebin.com/61EkwahB Reverb may not work cos it's a bpatcherMax/MSP drum and bassersatz_ben2023-06-29 | It's important to have fun! Flipping between snapshots here for different vibesbig loop rig - build video 2ersatz_ben2023-06-24 | I've been so unproductive in Max lately - work and home life have been pretty full-on. The build for the big mega looper is really difficult and is taking ages. Here you can get a sense of what's possible - just using the laptop microphone - but it's a long term project which needs properly planning out as a modular build. Lots of cool stuff with this - but also lots more to do.
Eventually this will have 8 sequencers and 8 sound-makers (synths, samplers etc), plus some drum machines and a few other fun things. I also want to make a physical interface to control it all - but using snapshots and macros so I can focus on writing some pieces/songs for it.big loop rig - build video 1ersatz_ben2023-04-10 | Making a big looper rig with synths and sequencers. These are some of the early building blocks - a gravity-powered sequencer and a sample playback synth, plus a multi fx unit with different fx 'plugins' I've made. I've also built a 'listener/harmoniser' module which can generate chords based on incoming audio - that will follow in a future video.Max/MSP performance: signal-driven FM drums and telephasic alan wattsersatz_ben2023-01-26 | Multiplying sine waves together can create a wide range of industrial FM drum sounds. With signals driving them (not events), the timing can become incredibly precise and groovy.
Patch code: pastebin.com/p3HbW56wWonky table~ sequencing with shaped phasors in Max/MSPersatz_ben2023-01-25 | It's possible to do amazingly wonky stuff in Max by altering the speed of time itself!
Patch code: pastebin.com/KSmfLyi6Max/MSP performance: table~ sequencer and drumsersatz_ben2023-01-17 | A Caterina Barbieri-inspired thing. For the main melody sequence, I used three table~ objects to generate midi note numbers, velocities and note lengths, which then get passed into a wavetable FM synth. The table~ object offers potentially better timing than its tilde-less cousin as you can avoid the event scheduler. The drums use a similar technique to cut up and time-stretch the classic Max "brushes.aif" beat. A back-and-forth melody completes this patch. Reverb on the main synth is provided by my genexpr-coded implementation of mc.comb~ with a pretty new UI (not ready for sharing).
Patch code (stripped back): pastebin.com/QYgdizc3drumandbass01 - Max/MSP performanceersatz_ben2023-01-14 | Work in progress. Controlled (pretty badly lol) with 16n controller from Slate + Ash.
Too many sample dependencies to share this one... but here is the code for that cool supersaw bass sound at 1:25: pastebin.com/6PNX26rAA gravity-powered tropical additive synth in Max/MSPersatz_ben2023-01-08 | Sequenced by gravity! I used gen~ to recreate the wonderful 'tropical additive' synth idea from Giorgio Sancristoforo (see more at this video link youtube.com/watch?v=Va_NSRGceow) - not strictly necessary to use gen~ but now I have a custom oscillator for rapid reuse elsewhere. Reverb from my genexpr implementation of mc.comb~, which is the start point for an interesting new reverb plugin I'm building. Background chords from mc.saw~.
Patch code: pastebin.com/87MHFnWDMax/MSP: Markov-controlled genexprersatz_ben2023-01-04 | A Markov chain sequencer controls a non-linear waveguide synth, with additive overtones, implemented in genexpr. A simple reverb, inspired by mc.comb~, is also implemented in genexpr using several for loops. This technique opens up the possibility of porting mc into RNBO.
Kudos to @znibbles4632 for the non-linear synth tutorial!
Patch code: pastebin.com/58P0nrdWMAX/MSP GANDALF FUNKersatz_ben2022-12-24 | Happy Christmas everyone - you've made learning max in 2022 a lot of fun! Patch code: pastebin.com/w2NubvqaMax/MSP on hard mode: genexpr musicersatz_ben2022-12-17 | Genexpr is the text-based C-like language of gen~. The excellent @fendoap5655 showed it's possible to make music using a combination of gen~ and genexpr. I've extended this idea to create music using *only* genexpr in codeboxes. This was pretty hard to do, and while I learned a lot doing it, I don't think it made a difference to the music.