Leap Motion musical UI for closed eyes

How many musicians do you know that play with their eyes closed? Not many computer music apps allow this. Bloom is an exception.  http://www.generativemusic.com/bloom.html

As an exercise, I tried to make something like Bloom, using Leap Motion. With your eyes closed you can accurately position your hand at the level of eyes, shoulders, hips, etc., And you can quickly move to a point directly outward from your nose, or shoulders. This is the basis of sobriety tests.

The interface, works with a hand motion like sprinkling seeds. Every time you open your hand, it triggers a note based on the height of your hand. It also triggers one of the “Bloom”  circles at the XY position.

The prototype was done in Max/MSP Jitter. It was derived from a “bloom clone” project by John Mayrose at: http://www.johnmayrose.com/maxmsp.html

Here’s an example:

download

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

folder: bloom

patches

  • (main patch) circlething.maxpst
  • (poly~ sub-patch) FMPoly2~.maxpat
  • (Leap Motion main-patch) leap-finger-switch.maxpat
  • (Leap Motion sub-patch) leap-switch-test2.maxpat
externals and dependencies

Note: If you don’t have a Leap Motion sensor, you can use a mouse.

If you are using Leap Motion, download the aka.leapmotion external – and add it to your Max file path in options | file preferences: http://akamatsu.org/aka/max/objects/

instructions

(if not using Leap Motion sensor, skip to step 4)

  1. Plug in the Leap Motion sensor.
  2. Open leap-finger-switch.maxpat and click the “start” toggle. 
  3. Wave your hand around – it should be detected and displayed
  4. Open circlething.maxpat
  5. If using mouse, just click in the black “circlething” window to play.
  6. If using Leap Motion, click the message box to activate Leap Motion
  7. Then open and close your hand, over the sensor to play
  8. High notes are higher in the window.

Two methods of reversible audio encryption in Max

This project demonstrates 2 reversible methods of encrypting audio

  • reciprocal (1/x)
  • frequency shifting

The reciprocal method is interesting because the reciprocal of a reciprocal is the original value. In other words you can reverse the process by doing it twice.

Frequency shifting allows you to ‘hide’ audio in the ultrasound range.

download

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

folder: audio-encryption

patches: voice-encryption2b.maxpat

FM, AM, and SSB modulation/demodulation in Max

This is a radio – but also a modem, in a literal sense of the word. You may be familiar with AM and FM. Have your tried using them backwards?

In this patch, an audio signal is modulated using SSB, AM, and FM then frequency shifted to about 1/4 the nyquist frequency. Then the process is reversed revealing the original audio.

notes

Have improved and simplified FM and AM detection. There is no frequency shift prior to detection. This eliminates some phase distortion.

Pd Version. (runs at 44.1 kHz, because I was too lazy to figure out how to do audio file playback which detects the SR of the audio file.

FM detection: The DC offset and makeup gain levels are sensitive to carrier frequency and SR. Will need to automate these corrections to prevent audio output problems.

download

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

folder: demodulation/max

  • modem3.maxpat
  • obama.aiff

folder: demodulation/pd

  • modem-pd.pd
  • freqshift-abs~.pd
  • obama.aiff

 

HISS impulse response tutorials

notes

From Pierre Alex Tremblay – 2 videos demonstrating how to create an IR using HISS tools

http://vimeo.com/tremblap/videos

Link to the paper which is not a photograph of the pages from the journal

http://quod.lib.umich.edu/cgi/p/pod/dod-idx/hisstools-impulse-response-toolbox-convolution-for.pdf?c=icmc;idno=bbp2372.2012.029

[update 1/2014]

Here’s the Max Patch from the video – from this C74 forum thread: http://cycling74.com/forums/topic/a-quick-tutorial-video-on-how-to-create-an-impulse-response/

the local file is: tkzic/max teaching examples/impulse-response-rodrigo-vid.maxpat

Ok, I must be living under a rock. Did not realize this stuff was in Live 9.

This tutorial explains how to use Live convolution reverb effect, as well as the IR measurement tool. The measurement tool lets you record impulse responses using a sine spectrum sweep. Essentially these are the Alex Harker Max tools made into M4L devices.

 http://www.macprovideo.com/hub/ableton-live/create-your-own-impulse-responses-in-ableton-live-9