Pict slider to mono synth as midi
So I slammed this patch together. I want to control my 0-coast with the pictslider. X values = pitch. Y values velocity on another channel.
It works, but there are still notes hanging sometimes.
I tried sending a bang to midiflush before every new note was sent, but then it retriggers the EG on the synth. = no legato, because then the notes have to overlap.
But I'm sure there is a tidier way (and better) way of doing this.
Any quick ideas?
offer
OK, the "quick idea" of " offer" was probably too quick. But I just had a look at your patch and it doesn't make sense to me. e.g. why separate channels for pitch and velocity? Channel 5 always ends up with a hanging note. Channel 4 messages are all note-offs.....
What's happenin'?
this happened.
https://youtu.be/FdIW8bw8i3c
it work ok :)
two different channels is because of how I use the receiving synth.
But yeah, I kind of slammed this together. Not at all elegant.
It hangs sometimes.
But amazing that you revisited the issue :)
I kinda didn't really revisit. I said "offer" because you wanted a quick response and it's my go-to stuck note problem-solver. Didn't even look at your patch.
Next day I looked at the patch while having breakfast but just didn't get it. :-)
ah...
But how would you use offer?
what I’m looking for, is to turn of previous midinotes, but after the new midinote is sent.
Offer is perfect when note-on pitches are being changed (transposed or whatever) and the note-offs need to be changed in exactly the same way in order to avoid stuck notes, even if the change amount (e.g. transposition) has been altered before the note-off arrives. Probably not the right object here.
You want to force legato... maybe delay the note-off messages? When you say it "hangs" do you mean notes get stuck on, or the whole thing stops working? If you want notes off only after the new one is sent, how do you stop the last one? This isn't quick any more, is it? ;-)
No, we’ve tranceded quick and entered the realm of thorough, wich isn’t nescesarily a bad thing.
I could probably also “record” the offer pair into a coll, maybe with a counter object to index them, and flush every note pair, exept the last one (wich would be the current note playing) with note off messages.
HZD, I started playing with it, then mousestate stopped working. Busy day today, so if you haven't figured it out by tomorrow I'll have another little look. Cheers!
Okidoki.
It work ok as is, so...
But if you see some improvement, you are of course welcome to share it.
Had another look, HZD, but because you're not using MIDI notes in a standard way I'm lost. Apart from tidying up the patch, what comes to mind is using mousestate = 0 to flush everything, but you seem to already be doing that. Without having to put it all under the microscope another guess would be to flush again a few milliseconds later to potentially fix the occasional stuck note caused by something being in the wrong order.
I'm going back to straight MIDI where it's safer! :-)