Welcome to %s forums

BrainModular Users Forum

Login Register

Looking for scripting solutions

I need help on a Patch
Post Reply
SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 02 Jan 2017, 15:58

Hi Usiners,

First of all, I wish you a happy new year.

I'm working on a polyphonic synthesizer, and become very happy with it.
I need some help on a script : MIDI Expand Voices (in the Midi Module library)

I spend time trying to change it, but I can't, I'm not enough experienced in scripting.

My purpose is to keep chords in the process. With that script, when you hold a chord and play a melody upon that chord, the chord will disappear because the script doesn't take care of note who doesn't send his Note Off.

Does anybody able to modify this script to keep held notes?

Another script :
In a monophonic way this time, I want to press a key and hold it, then play other notes. Each time those other notes send their Note Off, the held note is retriggered until the key is released. very common on synth like Moog, I suppose.....

Thanks in advance for your help.

All the best

Sylvain

User avatar
senso
Site Admin
Posts: 4425
Location: France
Contact:

Unread post by senso » 03 Jan 2017, 19:00

in fact both scripts are almost the same.
you want a list of all current triggered ON notes.
In the first case, with a large max_outputs list and the second with a max_outputs = 1.
I'll think about this question and try to find a soluce.

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 04 Jan 2017, 11:20

What I'm looking for is something very close to the Midi Expand Voices. I need to separate every new note on a single output (exactly what do this script). This script send each new note to a different output, but without take care about Note Off.
My wish it that held notes are not erased and continue to play. If it is a tree notes chord, tree outputs must be blocked until this chord is released.

The second script is not almost the same, maybe really simplier.
The goal is to retrigger the held note. It's a monophonic meaning, each new note is played, but when released, the held note is play again :
for exemple, you play and hold a C, then you play E, F, A, F with hole between them and you ear C-E-C-F-C-A-C-F-C.

Regards

Sylvain

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 13 Jan 2017, 01:07

you could use an array of size 128 to memorise if each note is on or off then a bit of logic.

the thing is that I don't think this glissando behaviour retrigs the enveloppe in a conventionnal analogue synth so you may need a CV and trigger output on your script module.

cheers
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 17 Jan 2017, 14:53

Thanks Oli for your response.

In fact, problem solved. I find solutions with the script, rewriting it in another direction.

And for the glissando behavior, with arrays, I find solutions too.

All the best

Sylvain

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 17 Jan 2017, 19:31

please share !
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests