electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Clavia Nord Modular » G2 Building Blocks
Division with remainder
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1140
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Fri Jan 16, 2009 1:39 pm    Post subject: Division with remainder
Subject description: math function
Reply with quote  Mark this post and the followings unread

"Division with remainder" function building block, based on audiorate counters. Eg., the calculation of "6/1" equals 6 samples calculation duration etc.

Dividend and divisor have to be positive-going numbers. A inputted logic high flank engages the calculation. A logic gate goes high when the results (quotient and remainder) are ready, stored in two S/H modules.

A divisor of zero will let the calculation hang in there for ever. (It takes a while to count out infinity Laughing). Just re-engage with a more "substantial" divisor value.

6,4% cycles count, 9,4% memory.

cheers,
tim

Addendum: Since the range of the Clavia numerical system is -256 to +256 Clavia units, 256 is the highest possible result. 96000/256 equals 375, so actually you can clock the circuit constantly at 375Hz and always get reliable results. Hey, that's better than the control refresh rate of most synths. Smile


Div w Remain TK.pch2
 Description:
"Division with remainder" math function.

Download
 Filename:  Div w Remain TK.pch2
 Filesize:  1.7 KB
 Downloaded:  825 Time(s)


Last edited by Tim Kleinert on Fri Jan 16, 2009 2:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1140
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Fri Jan 16, 2009 1:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

sweeping dividend and divisor with LFOs makes funny noises.


DivRemainNoodlTK.pch2
 Description:
simple "division with remainder" noodle

Download
 Filename:  DivRemainNoodlTK.pch2
 Filesize:  1.82 KB
 Downloaded:  805 Time(s)

Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22270
Location: The Netherlands, Enschede
Audio files: 210
G2 patch files: 319

PostPosted: Sun Jan 25, 2009 7:14 am    Post subject: Reply with quote  Mark this post and the followings unread

It plays nice sequences when set to a slow clock too!
_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Clavia Nord Modular » G2 Building Blocks
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use