SynthMaker

streamselector with hop / shutdown in code

Archive · 2008 7 old posts

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

MichaelBenjamin ·

a streamselector with 2 inputs uses 12 cycles on my machine. a custom code written selector can be hopped, but does not shut down the process behind. for control streams this would be very nice to have a stream selector with hop, easily saving ~10 cycles per selector. or maybe you could implement a shutdown command in the code component, so we can decide when things need to be running.

infuzion ·

MichaelBenjamin wrote: A streamselector with 2 inputs uses 12 cycles on my machine.

The Selector & Multiplexer in Stream/Poly/Mono/Pack4 on my Core2 seems to use only 2 cycles on multiple tests, but I recall they used 14-15 on my AMD64 laptop.

I think you have a good idea, but unfortunately my instinct says the hop() causes clicks on the Multi Stage Envelope, & would be likely to cause clicks in a Selector since it may be several samples before it clicks over. The hop() itself also takes a few cycles, so it will be even slower on many machines.

Maybe a simpler 2-input "Poly Select" could be faster for those slower CPUs? Or add the ability to shut down an input to ASM could be better, so one can merge Selector with ASM?

Acrobat ·

infuzion wrote: MichaelBenjamin wrote: A streamselector with 2 inputs uses 12 cycles on my machine.

The Selector & Multiplexer in Stream/Poly/Mono/Pack4 on my Core2 seems to use only 2 cycles on multiple tests, but I recall they used 14-15 on my AMD64 laptop.

I think you have a good idea, but unfortunately my instinct says the hop() causes clicks on the Multi Stage Envelope, & would be likely to cause clicks in a Selector since it may be several samples before it clicks over. The hop() itself also takes a few cycles, so it will be even slower on many machines.

Maybe a simpler 2-input "Poly Select" could be faster for those slower CPUs? Or add the ability to shut down an input to ASM could be better, so one can merge Selector with ASM?

Stream Selector ?

MichaelBenjamin ·

thanks for mentioning it acrobat, but this selector does not shutdown the process behind it. btw wierd that the selector uses 10% cycles on a core2 compared to the amd..

Acrobat ·

MichaelBenjamin wrote: thanks for mentioning it acrobat, but this selector does not shutdown the process behind it. btw wierd that the selector uses 10% cycles on a core2 compared to the amd..

Mmh...well instead of shutting down a stream, why don't you try to use it for another function? (If you can't beat em, make'em good friends) 😀

kirkagur ·

MichaelBenjamin wrote: a streamselector with 2 inputs uses 12 cycles on my machine. a custom code written selector can be hopped, but does not shut down the process behind. for control streams this would be very nice to have a stream selector with hop, easily saving ~10 cycles per selector. or maybe you could implement a shutdown command in the code component, so we can decide when things need to be running.

I am with you on this....I want to be able to shutdown a stream with a code... 🙂

infuzion ·

kirkagur wrote: MichaelBenjamin wrote: ...maybe you could implement a shutdown command in the code component, so we can decide when things need to be running.

I am with you on this....I want to be able to shutdown a stream with a code... 🙂

+1 I'm starting to see advantages to this.

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.