SynthMaker

Weird retriggers.

Archive · 2009 15 old posts

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

aliasant ·

I have a little synthproject with an Arp and a Seq in. Both send a retrigger/gate to envelopes and filters if needed but today it didnt work.. until I placed a "dezip" with at least 3 ms before the retrig code below:

streamin in; streamboolout out; float prev; out = (prev==in); prev = in;

If I set the dezip to less then 3 I lose the retrigger and in this case the envelope stoped retriggering.

Can anyone confirm this?

I made an example with the toolbox adsr but I also have a version of Mycos latest P10 Curved ADSR ( Love it Myco 🙂 )

MichaelBenjamin ·

have you copy & pasted any wireless stream receives? this seems to cause weird bugs sometimes. try to connect an additional stream readout to the buggy connection instead of the dezip, and see if its the same.

MichaelBenjamin ·

also you directly connected a green int to the streeam, maybe this also can cause wierdness. other than that no idea, i just looked at the schematic and you dont have wireless in it.

MichaelBenjamin ·

btw it works with values <3 and also without the dezipper. i cant get the bug.

MichaelBenjamin ·

maybe try to switch to ds output and then back to asio.

aliasant ·

MichaelBenjamin wrote: maybe try to switch to ds output and then back to asio.

Hmm. Weird. Ill try the DS switch and report back. I dont think there should be any weird wireless in there and if that was the problem shouldnt you have it too?

aliasant ·

Eeh. Ahrm.

I have no idea what was going on but I have been playing in Studio One with a synth and that was at 96kHz so I think maybe there was a SR switch when I launched that app.

Now I opened this osm back up and everything worked without that dezipper. This after having problems, with this osm and the synth osm were I first had the problems, all day long.

Didnt even have to test DS.

pfeew. Thanks MB !

MichaelBenjamin ·

as you mention the samplerate change. yes i think i had this too on sr change, weird things happening with streams absolutely made no sense (ie stream works when connected to readout at some place, otherwise outputs nothing).

aliasant ·

MichaelBenjamin wrote: as you mention the samplerate change. yes i think i had this too on sr change, weird things happening with streams absolutely made no sense (ie stream works when connected to readout at some place, otherwise outputs nothing).

I know. Werid things and hard to reproduce sometimes.

This thing happened again to me and then went away as if nothing ever went wrong.... 😕

TomC ·

aliasant wrote: streamin in; streamboolout out; float prev; out = (prev==in); prev = in;

In a world of floats it's almost always not a good idea to compare for 'equal'. Compare to a range:

streamin in; streamboolout out; float prev; float offset = 0.0000001; //or whatever suits your needs out = (prev < in+offset) & (prev > in-offset); prev = in;

Disclaimer: all from memory (I haven't touched SM for a while) and the code was not tested.

Tom

aliasant ·

That was kind of nice TomC 🙂

Edit: I posted something here that didnt work at all 🙂

I couldnt get your to work TomC. First I thought I had but I was misstaken.

TomC ·

aliasant wrote: That was kind of nice TomC 🙂

Edit: I posted something here that didnt work at all 🙂

I couldnt get your to work TomC. First I thought I had but I was misstaken.

The important thing is that you get the idea.

In the world of floating point arithmetic values are VERY seldom exactly equal, even when they (in theory) should be.

Tom

sunsynth ·

Yeah Tom,

you just cannot say this often enough - i've learned it the hard way... 😊 really curious behaviors sometimes 😕

aliasant ·

Well. The old retrigger works just fine now. No problems lately but I have it in a new less complex osm.

But still. Would some odd floats do so that the code doesnt work at all? Not one single trig was sent thru, unless I put that Dezipper with 3ms infront of. Then it worked as it should....

MichaelBenjamin ·

i got some ghost connections, mainly with green float to code. dezipper seems wierd sometimes. disconnected float values still transmit, but to another place. schematic is simple, but uses wireless for green.

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.