Portamento Problem :)

DSP related issues, mathematics, processing and techniques
Post Reply
Flemming
Posts: 31
Joined: Thu Aug 07, 2014 9:48 am

Portamento Problem :)

Post by Flemming »

Hi everybody,

I'm all new to 'Flowstone', but i've used similar software for some years.

I discovered the 'Portamento' module inside the 'MIDI to Poly' module (it's the only place i can find a note-sliding-related entity within Flowstone?). In it's properties i can toggle it On/Off, and adjust glide rate with a knob, but it doesn't quite work as i wish it would :( My problem is that notes slide even if i'm not playing Legato (so if i play a note within the Release phase of the former note, i also get Porta). I really want it to only slide when i play Legato.

I Googled quite a bit, and i found posts in SM forum that describes a 'Hold' parameter for the 'Portamento' module, but i just can't seem to find it when i look through the schematics of the 'Porta' module.

Maybe someone inhere can explain to me how i can achieve Porta only when playing Legato?
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Portamento Problem :)

Post by KG_is_back »

Hi, your problem has obvious reasons but solution is slightly more complicated. The portamento module basically lowpasses/de-zippers the incoming pitch signal. Portamento is created when you play new note while the previous is still playing. It will not retrigger the playing voice - only change the pitch, which is then de-zippered by portamento module and the gliding effect is the result. The voice still plays until release envelope ends and kills the voice, so portamento may still occur during this phase. To prevent that you have to bypass the portamento time with zero if the envelope stage is in release. Stage is detected by various envelope modules, however having multiple of them in the schematic causes problems. You may have to wrap the "stage" output from the envelope module back to midi-to-poly module.
Unfortunately, I can't provide an example right now... I may add it later evening...
Flemming
Posts: 31
Joined: Thu Aug 07, 2014 9:48 am

Re: Portamento Problem :)

Post by Flemming »

Ah, maybe i can switch off the Portamento when no keys are held.. or force it to 0.

Thanks man :) I'll try to give it a go tonight
Xtinct
Posts: 106
Joined: Fri Feb 11, 2011 12:06 am

Re: Portamento Problem :)

Post by Xtinct »

Try the midi mono primitive it has an output for number of keys being played
Flemming
Posts: 31
Joined: Thu Aug 07, 2014 9:48 am

Re: Portamento Problem :)

Post by Flemming »

The Midi Mono primitive was a nice suggestion. Nevertheless i didn't manage to figure it out :roll: I tried both forcing the Porta value to 0 and toggling the Porta on/off. I tried different conditions like number of voices, gates and so on.

The problem is that i'm not familiar enough with Flowstone to figure this out... yet :D I'll put this idea on ice for now and concentrate on something easier to get the ball rolling. I'll solve this stuff later on.
Xtinct
Posts: 106
Joined: Fri Feb 11, 2011 12:06 am

Re: Portamento Problem :)

Post by Xtinct »

Try this
portamento on legato.fsm
(22.9 KiB) Downloaded 1539 times
Flemming
Posts: 31
Joined: Thu Aug 07, 2014 9:48 am

Re: Portamento Problem :)

Post by Flemming »

Xtinct wrote:Try this

Thank you VERY much! This works quite well, and a very cool solution.

I see that a lot of you turn to the code modules to solve problems. I really need to have a better look at them ;)
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Portamento Problem :)

Post by KG_is_back »

Flemming wrote:I see that a lot of you turn to the code modules to solve problems. I really need to have a better look at them


I highly recommend that. Usually it is more reliable to use a code block instead of cobweb of connectors and primitives and certainly easier to bugfix, in some rare situations the connector order also matters (defines the order in which the code is executed - especially when connected in feedback) and it is usually hard to spot.
Post Reply