csound M4L devices made from Max help patches

Examples of editing Max help files to build Csound M4L devices

fof

A formant based Midi synth using Csound FOF – from the Max help file for [csound~]

from “The Csound Book” by Dr. Richard Boulanger

download

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

folder: csound

device: csound-fof3-tz.amxd

instructions

  • drag csound-fof3-tz.amxd file into a midi track
  • arm the track for recording and play some midi notes

svfilter

Sample playback using a state variable filter using Csound SVFILTER – from the Max help file for [csound~]

from “The Csound Book” by Dr. Richard Boulanger

download

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

folder: csound

device: svfilter-tz.amxd

instructions

  • drag svfilter-tz.amxd file into a midi track
  • drag a file into the waveform display (or use the default file)
  • With the mouse, select a section of the waveform to start playback

general suggestions

for converting Max help files to M4L devices:

  • Replace UI objects with Live versions. For example, toggle becomes live.toggle
  • Replace audio inputs/outputs with plugin~/plugout~
  • Select UI objects for presentation mode
  • In inspector, change default Scripting names for UI objects to allow automation

build M4L devices using Max help patches

Edit Max help files to build M4L devices

An audio pitch transposer made from [gizmo~]

download

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

folder: gizmo

device: gizmo-mod-example.amxd

instructions

  • drag gizmo-mod-example.amxd file into an audio track
  • use dial to pitch-shift audio

Leap Motion version

If you have access to a leap motion sensor, here is the same device using hand gestures to control the pitch.

device: gizmo-thing-700.amxd

externals and dependencies

Uses the aka.leapmotion external – which needs to be in your Max file path. Download from here: http://akamatsu.org/aka/max/objects/

instructions

  • plug in a Leap Motion sensor
  • drag gizmo-mod-700.amxd file into an audio track
  • Click the toggle to start reading Leap Motion data
  • Wave your hands around to pitch-shift audio

general suggestions

for converting Max help files to Max for Live devices:

  • Replace UI objects with Live versions. For example, toggle becomes live.toggle
  • Replace audio inputs/outputs with plugin~/plugout~
  • Select UI objects for presentation mode
  • In patch inspector, set the patch to open in presentation mode
  • In UI object inspectors, change default Scripting names to allow automation. “Long Name” is the name used by Live for automation

Ableton Live looping project

Current local version is in tkzic/van project/van47g key9d.als

changes

  • Using Korg nanoKontrol instead of foot pedals (actually either will work) – see map below
  • Now works with any audio interface
  • Mic input for channel 9 is fed to output to use as direct live monitor

Essentially it now works with a minimal amount of external hardware.

midiStroke

Backed up the midiStroke config file in its current state. The file is located at: /Users/tkzic/Library/Application Support/midiStroke/midiStroke.cdcmidistroke. Backups will be kept in the same folder.

nanoKontrol map

Scene 1
Top row of buttons
  1. up
  2. down
  3. left
  4. right
  5. stop all clips
  6. delete
  7. finish recording and arm track to the right (enter/right/enter)
  8. record start/stop (enter)
  9. launch scene in current row and move cursor to track 5
bottom row of buttons
  1. unassigned…
dials

Correspond to track levels 1-9

faders
  1. Master level
  2. unassigned…

what’s next

  • Make a lightweight template version (without all of Van’s music) – that can be used for new projects
  • set up with Launchpad to do fx processing
  • Midi version – or midi tracks?

 

Guitar Hero controller installation Mac OS

Running the 0,08 driver in Mavericks. Also did a successful test install in Mac OS 10.8.

But later versions of the drivers don’t work.

instructions

1. download the following

2. If you need to un-install previous failed driver, what the video linked below for instructions. You will need to start a shell in terminal by typing:
sudo sh

Then drag the uninstaller file into terminal and run it. Note, you may need to make the .sh file executable by doing a: chmod +x on the file.

3. run the .dmg file for version .08 of installer

4. drag the controller list file into the controller list installer app (enter admin password twice)

5  restart computer

6. Plug in Guitar Hero controller. It should show up in system preferences xbox 360

Helpful hints from a previous post

http://youtu.be/OwMpV8p26xc

The above video was the key to doing a nearly impossible install. Here is the text from the Youtube info just in case the video disappears…

Uploaded by  on Feb 12, 2012

A tutorial on installing the Tattiebogle v0.08 drivers on Osx Lion

http://www.mediafire.com/?hnevrtloi5q
Controller list installer

http://www.mediafire.com/?mydit3c5195nmcu
Controller list

http://www.mediafire.com/?t4h08aixhar9oob
UnTattie – Uninstaller

http://www.mediafire.com/?wwjwqzyyzn5
0.08 version of TattieBogle drivers that will overwrite other versions
(May or may not work)

Tattiebogle’s page for getting v0.08
http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver

Link to the forums containing tons of help on getting these drivers running right!
http://shoryuken.com/forum/index.php?threads/updated-360-controller-mac-drive…

Location of the files for manual deletion.

/Harddrive/System/Extensions/360Controller.kext
/Harddrive/System/Extensions/Wireless360Controller.kext
/Harddrive/System/Extensions/WirelessGamingReceiver.kext

/Harddrive/Library/StartUpItems/360ControlDaemon
/Harddrive/Library/PreferencePanes/Pref360Control.prefpane

And this last one may or may not be there but make sure and check just incase.
/Library/Receipts/Install360Controller.pkg

Here’s also another video I made teaching how to update the .plist yourself so assure you’re controller is compatible.
https://www.youtube.com/watch?v=qqiMkjjKkxI&feature=g-upl

It’s also good to note that it may help if after you run the uninstaller and/or manually delete the file that you do a secure trash empty with can be done from the desktop if you click Finder at the top there should be an “Empty Trash” and a “Secure Empty Trash” BE WARNED THOUGH this will permanently delete the files in your trash bin!

a Max patch

Fretbuzz by the guitarzeroes: https://reactivemusic.net/?p=1082

Osc synth in Max

Simple synthesizer controlled by touchOsc

download

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

folder: osc-synth

patch: tz-synth-4-touchOSC.maxpat

notes

Shows how to use an ipod or iphone as a controller

components:

  • Max/MSP
  • ipod touch
  • touchOSC

instructions

  1. setup touchOSC on the ipod to send to the host ip address that Max is running on – using port 8000 to send data.
  2. In the Max patch, try one of the last presets for a reasonable synth sound.
  3. In touchOSC, use the top (horizontal ) slider in the ‘simple’ layout.

 

green screen in Max

Live chroma-key example using the built-in camera.

Hacked from jitter help files…

download

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

folder: chroma-key

patch: greenScreen1.maxpat

instructions
  • click open (screen grab)
  • click read – to open a movie file
  • click start/stop toggle
  • in the grab viewer, select the background color to chromakey, by clicking with mouse
notes

This really works best with an external camera and a large monochromatic background.

components:

  • Max/MSP – Jitter
  • builtin camera

Max Wii remote examples

A collection of Wiimote patches

download

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

folder: wii

patches:

  • wiimote_read.maxpat
  • wii_vizzie_rotate.maxpat
  • ir5.maxpat
  • wiimote_ir_xy_synth2.maxpat
  • wiimote_pry_synth4.maxpat
  • bicycle speed sensor folder (under construction)
Osculator config file: wii3.oscd

installation (Osculator)

  • Download and install Osculator: http://www.osculator.net
  • Run the Osculator config file: wii3.oscd
  • Pair a Wiimote with Osculator (by pressing the red button)
  • Set Wiimote Osc output port to 9000
Other helpful tips:
  • Use a real Wii remote, not the Nyko. If you do get the Nyko, get the one with motion-plus.
  • update Osculator to the latest version
  • Under parameters (in osculator) press + to add the little pacman symbol labeled “same address”, and set the the OSC URL to whatever you’ll be using like 9000 for Max
  • remember to add the Event type (OSC routing) and value (pacman thing) for every wiimote event you’ll be using
  • remember to enter checkbox on the wiimote window for every type of data you want to send

Wiimote read patch

The patch: wiimote_read.maxpat is a common patch for reading data from Osculator into Max.

Load this patch and keep it running in the background for all of the other patches. You will know if the wiimote is working, if the data in the number boxes responds to movement of the Wiimote.

projects:

vizzie rotation effect

Rotates the video input from built in camera.

patch: wii_vizzie_rotate.maxpat

infra-red (IR) musical light painting

Paint using an IR transmitter.

patch: ir5.maxpat

helpful suggestions:

  • Make sure wii is transmitting raw IR data in Osculator
  • Turn on audio and turn up volume
  • Turn on [qmetro] for jitter

IR xy synth

A synthesizer that responds to IR xy data

patch: wiimote_ir_xy_synth2.maxpat

helpful suggestions:

  • turn on audio
  • turn up volume
  • make an audible adsr envelope by turning up the adsr dials
  • increase lfo rate
  • check the wii-mode updreceive port (should match Osculator output)
  • experiment with the ‘gate’ toggle in the middle of the patch

Pitch, roll, yaw (PRY) synth

A synth that responds to pitch, roll, and yaw data

patch: wiimote_pry_synth4.maxpat

bicycle engine simulation

synthesizes engine sounds based on RPM of bicycle wheel with Wiimote in the spokes

5/2014 : under construction – note – this patch not compatible with wiimote_read

  • waveguide_engine2c-bike.maxpat
  • wheelspeed.maxpat
  • bicycle2.maxpat

need to be running Osculator and tracking PRY stuff from Wii – need to adjust scale in engine patch. Also, select 3rd preset for engine sound.

So basically this setup needs to get standardized – use metro to send a steady stream of wheel data. Use the up to date car engine patch, etc., etc.,

A few problems with this concept – for example when the wheel is stopped the signal rate revs up to over 300  – I think because it rotates backwards for a second. Also when the wheel gets really fast, the pulses just stop!  – its like the wii-mote is overloaded or something? 4/3/2013 – I have it running so it tracks speed when the bicycle is upside down, as long as you don’t crank it too fast. but as mentioned above – the patch could be cleaned up and simplified.