round to even integer

Discuss problems and solutions.
Post Reply
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

round to even integer

Post by Phil999 »

a sample library rounds values to even integers, and I would like to display these values in Lemur. In C+ there are some solutions, but is this possible in Lemur?
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
oldgearguy
Regular
Posts: 315
Joined: 02 Nov 2013 11:19

Re: round to even integer

Post by oldgearguy »

here's a quick one that rounds whole numbers to even integers.
Attachments
Untitled.jzml
even rounder
(3.82 KiB) Downloaded 74 times
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: round to even integer

Post by Phil999 »

brilliant, simple solution. Thank you very much.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
oldgearguy
Regular
Posts: 315
Joined: 02 Nov 2013 11:19

Re: round to even integer

Post by oldgearguy »

you're welcome. I like these types of challenges. :)
I wasn't too fancy with the names, but I figured if I showed the raw and the rounded in 2 monitor windows you'd be able to understand it.

It could pretty much be a full time (or more!) job, sitting on the Lemur forum working out examples, solving problems, and coming up with scripting solutions to people's questions. There's so much to be learned from worked examples that isn't covered in the basic manual.

Sure, if all you want to do is throw up a page of buttons and sliders and send basic CC/note stuff out, it's not so bad. Once you start pushing the envelope though, you're kind of left to yourself to figure things out.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: round to even integer

Post by Softcore »

Nice one! I was thinking it would have to incorporate modulo.
Post Reply