fishmonkey wrote:the .py files are Python source code files, if you set things up right (which is covered in the first post of this thread) then Live will compile the .py files down to .pyc (Python byte code).
the best editor to use is a programmer's editor that supports Python syntax. two decent free options are TextWrangler (OS X) and NotePad++ (Windows)...
How to : use midi remote script Major Update (sparkle)
-
- Posts: 1262
- Joined: Sat Dec 21, 2002 3:52 am
- Location: Santa Barbara, CA
- Contact:
Re: How to : use midi remote script Major Update (sparkle)
Thanks, that helps. I would like to modify the Push consts.py file; is there a decompiled version (.pyc?) around somewhere, or is there a way to decompile it to .pyc?
Re: How to : use midi remote script Major Update (sparkle)
It, and all others can be found here: https://github.com/gluon/AbletonLive9_RemoteScripts
Tim Tilberg - Duluth, MN | SoundCloud - Arsenal
2011 13" MBP w/8GB ram | Live 9 Suite, Reason 6.5, FXPansion DCAM/Etch/Maul, Izotope Ozone 5
2011 13" MBP w/8GB ram | Live 9 Suite, Reason 6.5, FXPansion DCAM/Etch/Maul, Izotope Ozone 5
-
- Posts: 1262
- Joined: Sat Dec 21, 2002 3:52 am
- Location: Santa Barbara, CA
- Contact:
Re: How to : use midi remote script Major Update (sparkle)
Ok, great, thanks. For a first step, I just want to change the order the scales appear in push.ttilberg wrote:It, and all others can be found here: https://github.com/gluon/AbletonLive9_RemoteScripts
So I just rearrange them and replace the consts.py file in Push with the new one (after backing the old one up, of course....) Then Live compiles it automatically?
-
- Posts: 4478
- Joined: Wed Oct 24, 2007 4:50 am
Re: How to : use midi remote script Major Update (sparkle)
you have it backwards, the .py files are the source code files that you edit (which in the case of the publicly available versions have been decompiled from the .pyc files)...Buleriachk wrote:Thanks, that helps. I would like to modify the Push consts.py file; is there a decompiled version (.pyc?) around somewhere, or is there a way to decompile it to .pyc?
-
- Posts: 1262
- Joined: Sat Dec 21, 2002 3:52 am
- Location: Santa Barbara, CA
- Contact:
Re: How to : use midi remote script Major Update (sparkle)
Yeah, I always get things backwards. That's why my wife split up with me.....
fishmonkey wrote:you have it backwards, the .py files are the source code files that you edit (which in the case of the publicly available versions have been decompiled from the .pyc files)...Buleriachk wrote:Thanks, that helps. I would like to modify the Push consts.py file; is there a decompiled version (.pyc?) around somewhere, or is there a way to decompile it to .pyc?
-
- Posts: 1262
- Joined: Sat Dec 21, 2002 3:52 am
- Location: Santa Barbara, CA
- Contact:
Re: How to : use midi remote script Major Update (sparkle)
Nevermind, it worked!!!
Thanks much, I can now switch between Phrygian and Minor Gypsy by toggling adjacent buttons in Note mode from Push, instead of using ClyphX. Whee!
Thanks much, I can now switch between Phrygian and Minor Gypsy by toggling adjacent buttons in Note mode from Push, instead of using ClyphX. Whee!
-
- Posts: 1262
- Joined: Sat Dec 21, 2002 3:52 am
- Location: Santa Barbara, CA
- Contact:
Re: How to : use midi remote script Major Update (sparkle)
Ok, now that I have my scales in the correct order, does anyone know where the key rows are set up? I would like to order them by related major/minor instead of circle of fifths....
Update: It seems the place to do this would be in "InstrumentComponent.py", but the calculations are complex, and would require a great deal of reverse engineering. Oh well, just being able to reorder the scales so I can toggle between my first three:
1. "Bhairav" - this is Gypsy Minor Scale with sharp 7th (E.g. E* Phrygian with D->D#, which allows the use of F7 as a substitute for F in the progression F->E.
2. "Minor Gypsy" - this is Phrygian Mode (E*) with the G set to G# as the "Final/Tonic" in the progression F->E OR (perhaps following by) the progression E7->Am (Harmonic relative to E*) The chord Em is never used in this context.
3. "Phrygian Mode" - this allows me to use the note G in the chords G and C
The other chords (Dm,F,Am,B) are common to these related scales. Once the tonal center is set (i.e. C), these three scales in that order at the top of the list allow me to switch between them as I need them.
For other chords (e.g., secondary dominants), I can use ClyphX and a Launchpad, as outlined in the articles in my signature. But I can do a great deal of "blocking out" by using the above scales in that order on Push....
So it is almost as easy (but not quite) as playing a guitar....
Update: It seems the place to do this would be in "InstrumentComponent.py", but the calculations are complex, and would require a great deal of reverse engineering. Oh well, just being able to reorder the scales so I can toggle between my first three:
1. "Bhairav" - this is Gypsy Minor Scale with sharp 7th (E.g. E* Phrygian with D->D#, which allows the use of F7 as a substitute for F in the progression F->E.
2. "Minor Gypsy" - this is Phrygian Mode (E*) with the G set to G# as the "Final/Tonic" in the progression F->E OR (perhaps following by) the progression E7->Am (Harmonic relative to E*) The chord Em is never used in this context.
3. "Phrygian Mode" - this allows me to use the note G in the chords G and C
The other chords (Dm,F,Am,B) are common to these related scales. Once the tonal center is set (i.e. C), these three scales in that order at the top of the list allow me to switch between them as I need them.
For other chords (e.g., secondary dominants), I can use ClyphX and a Launchpad, as outlined in the articles in my signature. But I can do a great deal of "blocking out" by using the above scales in that order on Push....
So it is almost as easy (but not quite) as playing a guitar....
-
- Posts: 1262
- Joined: Sat Dec 21, 2002 3:52 am
- Location: Santa Barbara, CA
- Contact:
Re: How to : use midi remote script Major Update (sparkle)
Ok, final question....
I changed a couple more scale positions (grouping major, harmonic minor, natural minor, minor together),
and copied the new .py file into the Push folder. But how do I tell Ableton to compile it?
I've tried switching Ableton off and on in the Control Surface list, restarting Live, rebooting the computer, but the file still remains the same. I tried deleting the .pyc file (so there is just the .py file in the folder), and that doesn't work either.
So what is the exact sequence of events necessary to get Ableton to recompile?
UPDATE: I got it to recompile; not sure what I did. I did notice that when I saved the "consts.py" file it appeared in the folder as "Consts.py" I tried renaming it, but it kept implementing the capital letter.
Finally, after several tries, I noticed that the .py file was uncapitalized, so I deleted the .pyc file, restarted both Push and Live, and it finally recompiled. Not at all sure if this is the answer, but it is the only thing I noticed.....
I changed a couple more scale positions (grouping major, harmonic minor, natural minor, minor together),
and copied the new .py file into the Push folder. But how do I tell Ableton to compile it?
I've tried switching Ableton off and on in the Control Surface list, restarting Live, rebooting the computer, but the file still remains the same. I tried deleting the .pyc file (so there is just the .py file in the folder), and that doesn't work either.
So what is the exact sequence of events necessary to get Ableton to recompile?
UPDATE: I got it to recompile; not sure what I did. I did notice that when I saved the "consts.py" file it appeared in the folder as "Consts.py" I tried renaming it, but it kept implementing the capital letter.
Finally, after several tries, I noticed that the .py file was uncapitalized, so I deleted the .pyc file, restarted both Push and Live, and it finally recompiled. Not at all sure if this is the answer, but it is the only thing I noticed.....
Re: How to : use midi remote script Major Update (sparkle)
Hello again, Raztua!
do you know how assing some keyboard shortcuts to ButtonElemnt (instead of MIDI messages), that would run some GUI functions like Copy, Paste, etc?
I am searching about how to do it but I only find it is posible by using external programs and I wish I could do it from inside Live´s API.
Thanks!
do you know how assing some keyboard shortcuts to ButtonElemnt (instead of MIDI messages), that would run some GUI functions like Copy, Paste, etc?
I am searching about how to do it but I only find it is posible by using external programs and I wish I could do it from inside Live´s API.
Thanks!
-
- Posts: 1262
- Joined: Sat Dec 21, 2002 3:52 am
- Location: Santa Barbara, CA
- Contact:
Re: How to : use midi remote script Major Update (sparkle)
BTW, I looked at the script, and there is no easy way to order the key signatures, like there is for the scale definitions and the order in which they appear in Push....
I hope that Ableton can make the scale definitions and order accessible to users via a User Options text file, rather than hard coded into script.
That said, Cthulhu solves the problem of generating chords independently of the Midi trigger note of the pad.... and has a nice arpeggiator as well.
http://www.xferrecords.com/products/cthulhu
I hope that Ableton can make the scale definitions and order accessible to users via a User Options text file, rather than hard coded into script.
That said, Cthulhu solves the problem of generating chords independently of the Midi trigger note of the pad.... and has a nice arpeggiator as well.
http://www.xferrecords.com/products/cthulhu
Re: How to : use midi remote script Major Update (sparkle)
Hi every one, i'm back !
@ttilberg : how is bour bcr script going ? i would be glad to know if you manage to finished it and use it !
@Buleriachk: can you telle me more precisely what you want to do ? i don't have push, and don't know the way it react
@akamed :
for exemple on the sparkle4.py you can see for the update_pattern_button function :
Now we have to take a look at the the PAttern_button_value function. each time a pattern button is pressed, the fuction pattern_button value is called
This function is inside of the PatternButton.py file
Feel free to ask if you need more clarification
By the wayill soone add the copy and erase functionnalities on the sparkle to i will tell you how to do it more precisely
@ttilberg : how is bour bcr script going ? i would be glad to know if you manage to finished it and use it !
@Buleriachk: can you telle me more precisely what you want to do ? i don't have push, and don't know the way it react
@akamed :
this is done by the add value listener function :Hello again, Raztua!
do you know how assing some keyboard shortcuts to ButtonElemnt (instead of MIDI messages), that would run some GUI functions like Copy, Paste, etc?
I am searching about how to do it but I only find it is posible by using external programs and I wish I could do it from inside Live´s API.
Thanks!
for exemple on the sparkle4.py you can see for the update_pattern_button function :
Code: Select all
def update_pattern_button(self):
if self.actual_mode_button==self.mode_buttons[0]: #switch cases, in order to modify the pattern button depending on the mode button pressed
for element in self.pattern_buttons: #loop between each pattern button ( for the sparkle pattern buttons works like a keyboard)
self.turn_led_off(element.identifier) #turn the light off ...
element.clear_value_listeners() # HERE it is : remove the way the button react before
element.add_value_listener(element.bank_button_value, identify_sender= False) # assign a new fuctionthat will be Called EACH time the button will be pressed
elif self.actual_mode_button==self.mode_buttons[1]: #switch cases, in order to modify the pattern button depending on the mode button pressed
for element in self.pattern_buttons:
self.turn_led_off(element.identifier)
element.clear_value_listeners()
element.add_value_listener(element.pattern_button_value, identify_sender= False)
This function is inside of the PatternButton.py file
Code: Select all
def pattern_button_value(self,value):
self.turn_led_off(self.parent.actual_clipslot.identifier)
self.parent.actual_clipslot=self.parent.actual_track.clip_slots[self.identifier] #here it modifies the track on the live software depending of the self.identifier ( a number from 1 to 16 ) to select the track from 1 to 16
By the wayill soone add the copy and erase functionnalities on the sparkle to i will tell you how to do it more precisely
Re: How to : use midi remote script Major Update (sparkle)
I love this thread thank you.
I am very interested to know if it is possible to control more than 8 parameters without paging... Can you trick the API to thinking the next row of knobs has been "paged"?
Early on in the thread you mentioned some browser usage, but without the ability to hit "enter". Is that still where it's at? I mean, if push can do it, it's contained in the API somewhere right?
Thank you all.
I am very interested to know if it is possible to control more than 8 parameters without paging... Can you trick the API to thinking the next row of knobs has been "paged"?
Early on in the thread you mentioned some browser usage, but without the ability to hit "enter". Is that still where it's at? I mean, if push can do it, it's contained in the API somewhere right?
Thank you all.
2.4 ghz Macbook Pro 8gb RAM, SSD, Live 9 Suite, Puremagnetik, Minimal Talent
Re: How to : use midi remote script Major Update (sparkle)
I have been unable to find a way to get it working (the only way is to keep the enter key of your keyboard next to the sparkle) .
I have taken a look to the push broswer and their is a major difference: as the push controller have a screen, you can import the module " information" such as name etc... and create a browser.
With the sparkle, the only way i had found was to control the Live software and to select an instrument or another. if we had a screen i would have done a browser :s
can you tell me what you mean by the "paging trick"? with the sparkle or another controller? what is your aim ?
Btw on the next version of the script ill try to add a CV step sequencer, if you're interested, tell me ill try to make it faster
I have taken a look to the push broswer and their is a major difference: as the push controller have a screen, you can import the module " information" such as name etc... and create a browser.
With the sparkle, the only way i had found was to control the Live software and to select an instrument or another. if we had a screen i would have done a browser :s
can you tell me what you mean by the "paging trick"? with the sparkle or another controller? what is your aim ?
Btw on the next version of the script ill try to add a CV step sequencer, if you're interested, tell me ill try to make it faster
Re: How to : use midi remote script Major Update (sparkle)
such is life.. :/I have been unable to find a way to get it working (the only way is to keep the enter key of your keyboard next to the sparkle)
would it be possible to trick live into thinking there is a screen, and import that information into a floating window within Live? This way controllers without a screen can have a screen, you know?as the push controller have a screen, you can import the module " information" such as name etc... and create a browser.
this would be another hack that i have no idea of possiblean you tell me what you mean by the "paging trick"?
The idea would be having more than 8 instant mapping available. Currently on most controllers, you can access more parameters by "paging". So it's possible to see these extra parameters. Can we trick the API into thinking one bank of knobs is already several pages in? This way we could access 16 parameters at once.
i don't have any use for this personally but it sounds awesome.Btw on the next version of the script ill try to add a CV step sequencer
2.4 ghz Macbook Pro 8gb RAM, SSD, Live 9 Suite, Puremagnetik, Minimal Talent
Re: How to : use midi remote script Major Update (sparkle)
Raz,
Unfortunately I've been on something of an Ableton Vacation. I'm buying my first house in two weeks, and getting married in a few months, and our weather has finally flipped from a constant -30 farenheit to a cozy 60-70. I did punch at it a little bit more, and felt confident I'd be able to finish it, but never ended up doing so. I hope to do more with it later. Cheers!
Unfortunately I've been on something of an Ableton Vacation. I'm buying my first house in two weeks, and getting married in a few months, and our weather has finally flipped from a constant -30 farenheit to a cozy 60-70. I did punch at it a little bit more, and felt confident I'd be able to finish it, but never ended up doing so. I hope to do more with it later. Cheers!
Tim Tilberg - Duluth, MN | SoundCloud - Arsenal
2011 13" MBP w/8GB ram | Live 9 Suite, Reason 6.5, FXPansion DCAM/Etch/Maul, Izotope Ozone 5
2011 13" MBP w/8GB ram | Live 9 Suite, Reason 6.5, FXPansion DCAM/Etch/Maul, Izotope Ozone 5