max for live effect that freeze notes held? like a holdpedal

Learn about building and using Max for Live devices.
dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by dataf1ow » Thu Aug 14, 2014 9:31 pm

https://dl.dropboxusercontent.com/u/207 ... iHold.amxd

So this is the initial idea, I could probably tweak it a bit depending on the behavior you want.
It works as you describe with one caveat. If you play an identical note to one of the sustaining notes, it will turn that note off. We could get around this by filtering currently held notes. Let me know what you think.

-E

Valiumdupeuple
Posts: 1155
Joined: Mon May 31, 2010 12:36 pm
Contact:

Re: max for live effect that freeze notes held? like a holdpedal

Post by Valiumdupeuple » Thu Aug 14, 2014 11:43 pm

Hi,
Robert Henke has an excellent device called "Hold" that could be a great starting point...

graphixsounds
Posts: 164
Joined: Wed Oct 23, 2013 9:02 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by graphixsounds » Fri Aug 15, 2014 12:53 am

@dataflow

thanks for this!, though im afraid that im not sure if it works, for some reason when it is turned on i.e. yellow circle icon is lit- it does not pass midi through...

dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by dataf1ow » Fri Aug 15, 2014 1:06 am

Ah shit. I forgot to freeze the device, so the javascript likely didn't go through through. Standby.....

Edit: https://dl.dropboxusercontent.com/u/207 ... er1.0.amxd

Try that. Should have all the dependencies packaged up.

graphixsounds
Posts: 164
Joined: Wed Oct 23, 2013 9:02 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by graphixsounds » Fri Aug 15, 2014 1:51 am

yea this works- thanks so much... you're amazing

graphixsounds
Posts: 164
Joined: Wed Oct 23, 2013 9:02 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by graphixsounds » Fri Aug 15, 2014 4:21 am

this is so fantastic!


one welcome addition would be to have pitch bend only to the notes that were note "held", i.e. the overdubbing notes that follow the held droning chord.

thanks again you just changed my whole workflow

dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by dataf1ow » Fri Aug 15, 2014 4:28 am

Hmmm, that would be rad. But it would have to be a rack/separate track scenario in Live. Pitch Bend is per clip/instrument. You could set up a rack with key splits. The register that you will be holding the notes could have pitch bend set to zero, and the other register could have pitch bend set to whatever.

I don't think that there is away to do per note bitch pend in Live. Someone correct me if I am wrong....

Glad you're liking it though! It was a nice javascript exercise for me this afternoon :)

graphixsounds
Posts: 164
Joined: Wed Oct 23, 2013 9:02 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by graphixsounds » Fri Aug 15, 2014 2:16 pm

ah- this was something you could do on the rhodes chroma polaris... you can almost get lapsteel like effects this way

regretfullySaid
Posts: 8913
Joined: Thu Apr 22, 2010 5:50 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by regretfullySaid » Fri Aug 15, 2014 2:44 pm

Nice job dataf1ow :D

I'm glad you did it in JS.

1. It would've been more complicated it patchwise
2. Even with JS it's simpler than I thought it'd be.

Question: where you declare length in the 1st function, there's no var.
Even if that doesn't make it global because i'ts in a function, is 'var' unnecassary, just more of a practice?

Also, JSLint was reminding to do the triple equals when it came to zeroes and falses.
ImageImage

dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by dataf1ow » Fri Aug 15, 2014 6:42 pm

The two reasons you listed are exactly why I chose to do it in JS. I tried conceptualizing how to do it with patchchords and objects, but the code approach just made more sense.

As for your question. Right I could've written "var length" in the preceding line, and I probably should have, but as I was coding this up, I was just trying to get the ideas down, and they worked, so I never needed to change it. It's good programming practice to declare your variables, and in most cases should be done.

I like to be able to think of false as equaling 0, and true equaling 1. With triple equals you can't do that.

-E

regretfullySaid
Posts: 8913
Joined: Thu Apr 22, 2010 5:50 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by regretfullySaid » Fri Aug 15, 2014 7:08 pm

Cool, just checking; sounds like we may be in the same area of 'expertise', except I need to get in the habit of not only commenting, but doing it as I go along. I've been writing JS in notepad++ which has a JSLint/JSHint extension so it points out errors and other stuff; it's good for conditioning yourself on little things like leaving semi-colons:p
ImageImage

dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by dataf1ow » Fri Aug 15, 2014 7:25 pm

Is that free? Is it Windows only? I do my javascripting inside of Max if I am doing a max js thing. It allows for quick testing/prototyping.
I'm definitely not a programmer by trade, so I am still learning as I go. i taught myself js to do controller scripting in butwig, and I moved on to some python for Live stuff as well.

In bigger coding projects, I've been using sublime text.

regretfullySaid
Posts: 8913
Joined: Thu Apr 22, 2010 5:50 pm

Re: max for live effect that freeze notes held? like a holdpedal

Post by regretfullySaid » Fri Aug 15, 2014 8:50 pm

Yeah it's windows only free. I tried the Sublime 3 beta for asec a while back; thought it was pretty cool, but wanted to stick with NP++ to stay and get used to it's workflows and it's a swiss-army knife of text anyway. It may not be the best IDE, but it has the staples that are good enough for me.
ImageImage

Post Reply