Page 1 of 2

Midi note \ chord latch

PostPosted: Wed Mar 06, 2019 5:43 pm
by kortezzzz
I'm trying to make a simple midi routine that does something quite common in the arranger organs world (like korg pa-900 and atc.): generating a latching sound that continues on note \ chord press until another note or chord is pressed, so then the new note\chord and "kills" the old one and take it's place. Tried some methods with green midi without success (stuck notes and lot of panics). I there any chance it can be made with Ruby?

Re: Midi note \ chord latch

PostPosted: Thu Mar 07, 2019 12:42 pm
by tulamide
The procedure is the very same, wether green or Ruby. In fact Ruby just wraps a simple class around Flowstone's MIDI, that's all.

In your case it's all about keeping track of notes that are playing and delaying their note off message, until a new note is played. The chord thing is too vague. All you can do is defining a timespan after a first note on, in which you register other note ons as part of a chord.

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 12:33 am
by trogluddite
There's a relatively easy way to do it for chords.

Once the first key is pressed, you continue to add notes to the chord for as long as at least one key is held down - in other words, key presses must overlap. A new chord only begins when a note is played after an interval where there are no keys at all being played. This works very naturally for the player, works for any arbitrary number of voices, and does not require time constraints. It's a great way to trigger arpeggiators!

I'm pretty sure I've implemented this before (not sure if Green or Ruby, both are possible). I'm still in the middle of migrating FlowStone to a new PC at the moment, but I'll have a rummage and post it if I come across it.

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 10:06 am
by tulamide
:o :o :o
OMG! OMG! OMG!

My hero is back!

The one who made me want to take part in this community is back!

Welcome home, Trog!

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 10:13 am
by billv
:D This is great news.

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 11:21 am
by kortezzzz
Troggggggggg!!!!! :o I'm so glad you're back :D

We all missed you so much here. Hope you're here to stay with us, bro. The community is never the same without you and your crazy ideas. Welcome back home (and I hope this time forever 8-) )

Here is a little genius schematic made by our friend Gustavo from "Solcito Música". I have a permission from him to share it with you all. The schematic demonstrates the latch method in it's best with a simple green midi stuff. I would like to thank him for his efforts.

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 12:17 pm
by RJHollins
kortezzzz ... what version of FS are you using ???

The schematic wouldn't load on my ... crashed.

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 1:58 pm
by gvalletto
Kortezzzz has collaborated improving the original scheme. Thanks!

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 2:02 pm
by gvalletto
I want to change my nickname and to add a bmp to my profile. How I do it?

Re: Midi note \ chord latch

PostPosted: Fri Mar 08, 2019 9:08 pm
by BobF
Hello trogluddite,

Welcome back! I have heard great things about you and have read many of your famous posts from the past.

Take care, BobF.....