SynthMaker

Trigger

Archive · 2008 8 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

MegaHurtz ·

Hello, im quite new to synthmaker, and this forum. but i`d like to build a trigger by comparison that works like..

Trigger >0 : (function retrigger) and Trigger <=0 : (function continue)

This would be a go. signal for an enveloppe generated in he code.

any help would be great.. cheers

philter5 ·

you should have a look at the equal components from the toolbox (in the compare folder).

MegaHurtz ·

based on something like this.

streamin trg; streamin time;

streamout index; float index;

index = (trg > 0)& index + 1 * (index < time) & 1.;

MegaHurtz ·

without stopping the count when 0.

exonerate ·

streamin trg; streamin time; streamout out;

float index;

index = index + 1 & (index < time); out = (trg > 0)& index;

I think that should be along the lines of what you want, all though you had two variables with the same name, so that left me slightly confused, but going by your code and with out stopping the count, that should basically be what your after.

Cheers 😉

Exo

MegaHurtz ·

the basic idea is to let it start a ramp when the trigger signal is >0. and continue the function if it goes from >0 to 0.

exonerate ·

MegaHurtz wrote: the basic idea is to let it start a ramp when the trigger signal is >0. and continue the function if it goes from >0 to 0.

Ok then this should do it......

streamin trig; streamin time; streamout index;

float reset,trigOld;

reset = (trig > trigOld);

index = index + 1 & (index < time); index = (reset < 1) & index;

trigOld = trig;

Cheers 😉

Exo

MegaHurtz ·

yea thats it.. Great approach (trig > trigOld)

thx

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.