electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
poster
 Forum index » Clavia Nord Modular » Bugs
OS 1.40 BinCounter Module Bug
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
varice



Joined: Dec 29, 2004
Posts: 961
Location: Northeastern shore of Toledo Bend
Audio files: 29
G2 patch files: 54

PostPosted: Tue Feb 12, 2008 12:11 am    Post subject: OS 1.40 BinCounter Module Bug Reply with quote  Mark this post and the followings unread

Well, it may be a long shot to report another bug in the G2 in the hope of getting it fixed, but for what it's worth...

The attached patch shows that the BinCounter module (in OS version 1.40) appears to have a bug that causes it to malfunction after a certain number of clock cycles. When the malfunction occurs, it appears that all of the module outputs jump to a higher incorrect rate.

BinCounter1 clocked at 48KHz will run for about 2 minutes and 55 seconds and then malfunction. It will crash at lower clock rates, it just takes longer. At any rate, it will crash just after the 128 output of BinCounter3 goes high (the BinCounter modules are cascaded). Resetting the counter will clear the fault, but it will crash again when it reaches the same count.

Tested on a G2X running in patch mode without any MIDI connections. The G2 Demo Software version 1.40 running on a Windows PC also has the same bug.


BinCounter Bug.pch2
 Description:

Download
 Filename:  BinCounter Bug.pch2
 Filesize:  2.05 KB
 Downloaded:  1985 Time(s)


_________________
varice
Back to top
View user's profile Send private message
Fozzie



Joined: Jun 04, 2004
Posts: 875
Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49

PostPosted: Tue Feb 12, 2008 1:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Interesting little bug you have there! It appears the bincounters do not reset when they reach 255, but internally keep on counting. I remember that Rob mentions in his G2/synthesis workshop pages that the internal resolution of the G2 is 32768 subdivisions per clavia unit. Since the max headroom of the G2 is 4x64=256 clavia units, my guess is it works like this: it would take a counter at 48kHz (32768 * 256) / 48000 = 174.8 seconds to reach max internal value. Which is very very close to your clocked 175 seconds (2'55'').

Luckily, the reset input on the bincounter can be used easily enough to work around this bug, but a bug it is for sure.

_________________
Spinning at ~0.0000115740740741 Hz
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Tue Feb 12, 2008 9:20 am    Post subject: Reply with quote  Mark this post and the followings unread

Hmm, I wonder if this might be what is causing this: http://electro-music.com/forum/topic-20812.html

which was also a weird problem with a patch (that contained a bincounter) that appeared after a while.

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24075
Location: The Netherlands, Enschede
Audio files: 277
G2 patch files: 320

PostPosted: Tue Feb 12, 2008 1:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Antimon wrote:
Hmm, I wonder if this might be what is causing this: http://electro-music.com/forum/topic-20812.html

which was also a weird problem with a patch (that contained a bincounter) that appeared after a while.


Seems so ... there was some reasoning there that could indicate it was going faster than usual as well after an hour or so, just like described here.

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24075
Location: The Netherlands, Enschede
Audio files: 277
G2 patch files: 320

PostPosted: Tue Feb 12, 2008 1:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

When fast it seems to run at 256 times the rate ... at all outputs, so all outputs just pass on the input clock it seems.
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
varice



Joined: Dec 29, 2004
Posts: 961
Location: Northeastern shore of Toledo Bend
Audio files: 29
G2 patch files: 54

PostPosted: Wed Feb 13, 2008 1:16 am    Post subject: Reply with quote  Mark this post and the followings unread

A workaround for this bug is to connect a flipflop and XNOR gate to each BinCounter as shown in the attached patch that will auto reset the counter at the time that it rolls over at count 256. If you do not need to have an external reset for the BinCounter, then you do not have to use the OR gate. Just connect the output of the XNOR gate to the reset input of the BinCounter and FlipFlop modules.

This is the best solution that I could think of. If anyone can think of a better way, please share it!


BinCounter BugWA.pch2
 Description:
BinCounter Bug Workaround

Download
 Filename:  BinCounter BugWA.pch2
 Filesize:  2.66 KB
 Downloaded:  1915 Time(s)


_________________
varice
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Wed Feb 13, 2008 1:21 am    Post subject: Reply with quote  Mark this post and the followings unread

Just want to say: nice bug tracing, Varice!

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
varice



Joined: Dec 29, 2004
Posts: 961
Location: Northeastern shore of Toledo Bend
Audio files: 29
G2 patch files: 54

PostPosted: Wed Feb 13, 2008 1:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Antimon wrote:
Just want to say: nice bug tracing, Varice!


Thanks Stefan! I actually worked for many years as an electronic technician and then as a hardware and software test engineer. I guess I was good enough at troubleshooting that I was able to make a living by doing it.

_________________
varice
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [8 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 » Bugs
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


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