Troubleshooting

noteout length

Started by AkaMed on .

Sign in or create an account to join the conversation.

11 posts

Topic starter
Hi,

I am building a sequencer based on a stepslider, but I don´t find the way to setup the lenght of the steps. I´m using "noteout" on it, but don´t know how to manage with the length...
Any ideas?

Thanks!
You are using noteout in an Onclock script?

Then you have the same problem as i have. The notelength can only be set by sending out a noteoff at a certain clock count. There is no length parameter as there is in the sequencer objects. It made its way on the feature wishlist already.
You should use noteout in an on clock script instead because otherwise your timing will not profit from the 5.0 advantages.
With the noteoff, you have to count clock pulses as a measure of notelength and remember what noteon is currently send out.
The easiest way would be:

on clock (lets say 16th division):

noteout (target,last_pitch,0,channel);
noteout (target,pitch,velocity,channel);
last_pitch=pitch;

Now this does the noteoff of the last tirggered note right before the new note on. You need a global variable last_pitch for that.
mmmm....
thanks Eletrofux.
I don´t understand it at all, because I think you are turning off the last pressed note just before the new one is going to be turned on. I am using a similar way to set the noteoffs...
And what I am looking for is the possibility of selecting the length that I want for each note, to have one note long, another short, etc. each note as I want, like the "StepNote module".
...o maybe I don´t understand what you say.... :(
Thanks again!
I am waiting and excited to try your arpeggiator :)
No, you understand right. That is just the most simple way to do it. If you want to kindof of select the length then before sending the noteoff, you need to count up Clock pulses (and set the Clock to a higher rate like 64th). There is no way to do it like on the steplslider.

As i said it is a known problem and i have been told it has been put on the feature wishlist.

The Arpeggiator has been a bit put on hold until i finnished my current project because the thing i wanted to fix was more work than i thought.