Tag: Max/MSP

12th root of 2

The note relationships in a chromatic scale are based on the 12th root of 2.

An octave has a ratio of 2. An octave is divided into 12 equal steps.

For example, to find the ratio of one semi-tone (half step), on a scientific calculator, use this button:

Screen Shot 2015-03-23 at 12.36.27 PM

Here’s the result where x = 2 and y = 12

Screen Shot 2015-03-23 at 12.47.48 PM

In a computer program, you could use the pow() function calculate 2 to the 1/12 power. Here’s an example in javascript:

Screen Shot 2015-03-23 at 12.44.03 PM

This Max patch shows the relationships between any two notes and how to calculate the pitch of a note based on the semi-tone interval. You might use it as a starting point to design your own scales. For example, a 13 note chromatic scale.  Or relationships based on randomness.

Screen Shot 2015-03-23 at 12.32.36 PM

Download

https://github.com/tkzic/max-projects 

folder: 12throotof2

patch: 12throotof2.maxpat

Basis function generator

jit.bfg provides basis functions including various noise contours.

Here is yet another example co-opted from dude837 tutorial 30: https://www.youtube.com/watch?v=hoCpbxslvS8

This is a set of color bars composited with a noise gradient.

Screen Shot 2015-03-23 at 1.59.10 AM

Original components:

Colorbars

colorbars

Noise gradient function

Screen Shot 2015-03-23 at 1.59.26 AM

A few minor changes were made to the original patch, including addition of comments and presets.

Download

https://github.com/tkzic/max-projects

folder: bfg

patch: dude837-tut30-tz.maxpat

Physics simulation driven by audio

From tutorial 21b by dude837

https://www.youtube.com/watch?v=COl3ft1PPNU

Screen Shot 2015-03-23 at 1.46.04 AM

What’s different?

There was a problem with the spheres not returning to the resting position. They were constantly expanded outward. By removing the frame rate trigger from qmetro, and triggering only when audio data is received, the response was improved. You can also set signal amplitude going into the bonk~ object.

Screen Shot 2015-03-23 at 1.45.47 AM

Download

https://github.com/tkzic/max-projects

Folder: physics

Project: bumper-phsyics

External objects: bonk~ from: http://vud.org/max/

Portrait series

Optical flow, a depth camera, and edge detection.

By Matt Romein

https://cycling74.com/project/gif-portraits/

Portrait+-+Margo+Cramer

Portrait of Margo Cramer from http://mattromein.squarespace.com/#/portrait-series/

The programming uses the following external code:

jit.gl.hap – Rob Ramirez
ab.hsflow.jxs – Andrew Benson
jit.openni – DiabloDale
cv.jit – Jean-Marc Pelletier

 

Ableton Push as a low resolution video display

Is 8 x 8 enough?

Adapted from a tutorial by Darwin Grosse

This Max tutorial, from Cycling 74, connects the builtin-camera to a Push display matrix, using Midi sysex codes. https://cycling74.com/wiki/index.php?title=Push_Programming_Oct13_03

If you set the frame rate high enough, you can clearly see motion.

I thought it would be interesting to display icons at this resolution, but its not very impressive. Here’s an example.

Screen Shot 2015-03-10 at 12.00.56 AM

The 8 x 8 version is on the left. The original, on the right, is 57 x 57. Another problem is that the RGB quality of the Push is not very accurate for anything beyond primary colors. Here is the modified version of the patch.

Download

Screen Shot 2015-03-10 at 12.01.12 AM

https://github.com/tkzic/max-projects

folder: push

patches:

  • pushpix-tz.maxpat