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
  host / artist show at your time
today> Modulator ESP Adventures In Sound
 Forum index » Clavia Nord Modular » NM Classic (NM1 or G1)
Roof function for control signals?
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [6 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: Mon Sep 29, 2008 11:17 am    Post subject:  Roof function for control signals?
Subject description: Can I implement this in a cheap way
Reply with quote  Mark this post and the followings unread

I'm looking for some way to make a roof functions for control signals.
Working something like this.

input: 0-32 --> output: 0-32 (1:1 ratio)
input: 32-64 --> output: 32 (always 32)

I've figured out a way to (almost) do it with NoteVelScal but it's to CPU expensive for my need and seems to me there's no cheaper way.

But I might be wrong.... Confused
Back to top
View user's profile Send private message
blue hell
Site Admin


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

PostPosted: Mon Sep 29, 2008 11:57 am    Post subject: Reply with quote  Mark this post and the followings unread

Some ideas, non tested.

How about using a cross fader, one input left unconnected the other connected to a constant setting the limit. Then use the fade control input as the input and multiply it by a constant as needed.

For your example the amplification would be two and the limit as set with the constant module would be 32.

Or another way to go could be to use the clip module, set it to work asymetric (its default) and add (or subtract) a value as needed from your input signal that you then subtract (or add) again at the output.

Or maybe easiest ... use cross fader and a compare module, when the input is under the threshold pass trough the input signal and when it's over the threshold switch to a constant value. The constant could be used here as the input for a A>=B comparator and as the input for the cross fader at the same time I think, so just three cheap modules needed.

_________________
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
Wout Blommers



Joined: Sep 07, 2003
Posts: 4529
Location: The Hague - The Netherlands
Audio files: 123
G2 patch files: 12

PostPosted: Mon Sep 29, 2008 9:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, don't slam the Nord into my face yet, but I just want to know what a 'roof function' is and what you want to do with it Smile Maybe it's just a configuration in which all values from 0 up to 32 can be used and all values above 32 will stay 32? Kind of a blue limiter...?

Wout
Back to top
View user's profile Send private message Send e-mail
torsig1967



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

PostPosted: Tue Sep 30, 2008 5:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Wout Blommers wrote:
Well, don't slam the Nord into my face yet, but I just want to know what a 'roof function' is and what you want to do with it Smile Maybe it's just a configuration in which all values from 0 up to 32 can be used and all values above 32 will stay 32? Kind of a blue limiter...?

Wout


Not sure if "roof function" is the correct term, but mathematically speaking:
f(x) = x , 0<x<32>32
Back to top
View user's profile Send private message
torsig1967



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

PostPosted: Tue Sep 30, 2008 5:53 am    Post subject: Reply with quote  Mark this post and the followings unread

[quote="torsig1967"]
Wout Blommers wrote:
Well, don't slam the Nord into my face yet, but I just want to know what a 'roof function' is and what you want to do with it Smile Maybe it's just a configuration in which all values from 0 up to 32 can be used and all values above 32 will stay 32? Kind of a blue limiter...?

Wout


Not sure if "roof function" is the correct term, but mathematically speaking:
f(x) = x , x = [0, 32]
f(x) = 32 , x = [32, 64]
Back to top
View user's profile Send private message
torsig1967



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

PostPosted: Tue Sep 30, 2008 2:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, this is the best I can do right now.
Input value goes from -64 to 64 while output varies like this:
Input -64 to 0 -> output 0-64
Input 0 to 64 -> output 64

Mathematically:
f(x) = x + 64 , x = [-64, 0]
f(x) = 64 , x = [0, 64]

1% CPU I think.

I'd love to get rid of the diode module to get much less CPU but I can't think of how to replace that with something cheaper....

PS. To modify this for the intervals I was asking for earlier (0-32,32-64) I don't think shoould be too hard. But I don't need that right now so I didn't investigate this. DS.


roof curve.png
 Description:
This implements a roof curve (defined earlier in this thread) but with a slightly different input interval. Here the roof curve output goes to a amplifier for testing.
 Filesize:  80.93 KB
 Viewed:  3691 Time(s)

roof curve.png


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 [6 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