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 
 Forum index » Clavia Nord Modular » NM Classic (NM1 or G1)
S/H for logic signals?
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
torsig1967



Joined: Mar 29, 2006
Posts: 162
Location: Sweden
Audio files: 2
G2 patch files: 1

PostPosted: Sun Apr 02, 2006 8:55 pm    Post subject: S/H for logic signals?
Subject description: Trying to make more CPU effective objects for logic signals
Reply with quote  Mark this post and the followings unread

I'm trying to reduce processor needed for logic signals in NM G1.

Is there som way to realize these objects with logic gates and other CPU-effective stuff? They only have to work with logic signals, not audio signals.

- Sample/Hold
- Controllable 2 to 1 switch
- Controllable 1 to 2 switch
(With controllable I mean they should change state when controlsignal changes from 0 to 1 and vice versa)

For the moment I'm using the built in audio S/H, X-fade and pan and they-re not at all CPU-effective. Especially not S/H which needs 1%.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Mon Apr 03, 2006 7:02 am    Post subject: Reply with quote  Mark this post and the followings unread

S&H can be done with a OR gate. Feed the output back on a input. As as you now put a 1 on the other input it'll stay high forever. Put a AND gate inside of the feedback loop and feed the other input of that with a logic inverter. Now putting a 1 on that inverter will break the chain and get the OR to output 0 again.

1 to 2; feed your signal into two seperate AND gates. On the other input of the first you put your controll signal, on the other input of the second a inverted version of it.

For the 2 to 1 you can use the same trick of two AND gates except that there their inputs will be the different signals and you can mix them with a OR.

These tricks are typically a bit cheaper on the cpu but a bit harder on the zero page. Also remember that complex logic chains may suffer from calculation order problems and that could be fixed by using the faster processing of the x-fade and so on.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
torsig1967



Joined: Mar 29, 2006
Posts: 162
Location: Sweden
Audio files: 2
G2 patch files: 1

PostPosted: Mon Apr 03, 2006 2:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks, switches work nicely but I cannot see that the S/H works correctly. Or maybe I didn't understand how you mean. I connected it like in the enclosed picture and it will not work as a proper S/H. Logic 1 on the input will produce logic 1 on the output even before the trig signal. And there's a zeroing issue when output is 1 when the trig arrives.


not_sh.gif
 Description:
 Filesize:  9.98 KB
 Viewed:  3527 Time(s)

not_sh.gif


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 [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 » NM Classic (NM1 or G1)
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