Page 2 of 2
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Thu Aug 14, 2014 9:31 pm
by dataf1ow
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
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Thu Aug 14, 2014 11:43 pm
by Valiumdupeuple
Hi,
Robert Henke has an excellent device called "Hold" that could be a great starting point...
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 12:53 am
by graphixsounds
@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...
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 1:06 am
by dataf1ow
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.
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 1:51 am
by graphixsounds
yea this works- thanks so much... you're amazing
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 4:21 am
by graphixsounds
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
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 4:28 am
by dataf1ow
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

Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 2:16 pm
by graphixsounds
ah- this was something you could do on the rhodes chroma polaris... you can almost get lapsteel like effects this way
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 2:44 pm
by regretfullySaid
Nice job dataf1ow
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.
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 6:42 pm
by dataf1ow
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
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 7:08 pm
by regretfullySaid
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
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 7:25 pm
by dataf1ow
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.
Re: max for live effect that freeze notes held? like a holdpedal
Posted: Fri Aug 15, 2014 8:50 pm
by regretfullySaid
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.