Live 8 Looper Device, how to access CLEAR & UNDO (LiveAPI)?

Share your favorite Ableton Live tips, tricks, and techniques.
Post Reply
Burus
Posts: 3
Joined: Tue Mar 03, 2009 11:19 am
Contact:

Live 8 Looper Device, how to access CLEAR & UNDO (LiveAPI)?

Post by Burus » Sun Jul 12, 2009 5:02 pm

Hello, i'm using ableton for the live looping with my bass guitar.
I have custom driver (MIDI remote script) for it. But can't access UNDO and CLEAR params.

stdout print for the "Looper" device parameters:

Code: Select all

@ Device On min[0.0] max[1.0]
@ State min[0.0] max[3.0]
@ Feedback min[0.0] max[1.0]
@ Reverse min[0.0] max[1.0]
@ Monitor min[0.0] max[3.0]
@ Speed min[-36.0] max[36.0]
@ Quantization min[0.0] max[14.0]
@ Song Control min[0.0] max[2.0]
@ Tempo Control min[0.0] max[2.0]
"State" values: 1 - record; 0 - stop; 2 - play; 3 - overdub;
How can i access UNDO and CLEAR params through the LiveAPI interface???

Help please, its main factor for the Live 7 to Live 8 migration :twisted:

oddstep
Posts: 1732
Joined: Tue Feb 12, 2008 9:47 pm
Location: Plymouth the great

Re: Live 8 Looper Device, how to access CLEAR & UNDO (LiveAPI)?

Post by oddstep » Mon Jul 13, 2009 9:55 am

Hi, sorry for the mild threadjack.... I'm really interested to learn how you got the stdout listing for the loopers parameters, I've just started checking out the LiveAPI - all the online documentation I've seen relates to live 7.
Respect.

Burus
Posts: 3
Joined: Tue Mar 03, 2009 11:19 am
Contact:

Re: Live 8 Looper Device, how to access CLEAR & UNDO (LiveAPI)?

Post by Burus » Mon Jul 13, 2009 11:19 am

MacOS X:

# in the __init__.py

Code: Select all

import sys
sys.stdout = write('/tmp/live-stdout', 'w')
sys.stdout = open('/tmp/live-stderr', 'w')
# in the controller code
# self.current_track - predefined pointer for the current track management.

Code: Select all

looper = None
for dev in self.current_track.devices:
    if dev.name == 'Looper':
        looper = dev
        break

print dir(looper)
for param in looper.parameters:
    print '@', param.name, param.min, param.max, param.value
at another console i'm listen for the messages

Code: Select all

$ tail -f /tmp/live-out
I'm preparing to announce "Ableton MIDI automatization" tutorial with examples on my homepage/blog.
But video isnt completed yet.

oddstep
Posts: 1732
Joined: Tue Feb 12, 2008 9:47 pm
Location: Plymouth the great

Re: Live 8 Looper Device, how to access CLEAR & UNDO (LiveAPI)?

Post by oddstep » Mon Jul 13, 2009 12:19 pm

Excellent. I'm looking forward to seeing the video - I really want to get to grips with the whole Live+Python scripting thing .. but I'm a bit too vba to pick it up easily.

Nice 1

Post Reply