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 » G2 Building Blocks
N input/shuffle(permutation)/N output
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
Falk



Joined: Mar 07, 2006
Posts: 75
Location: Sweden
G2 patch files: 29

PostPosted: Sat Jun 16, 2007 5:58 am    Post subject: N input/shuffle(permutation)/N output Reply with quote  Mark this post and the followings unread

Hello.

A question on the G2 FAQ forum by audible about how to randomly route N inputs to N outputs eventually led to this binary switching network patch.

Patch contains a 2 in/2 out, 4 in/4 out and a 8 in/8 out building blocks.
16 in/16 out is too large to fit in the G2 (would require 100.8% memory).

Pro: Easy to understand
Con: Can only be power of 2 in size (i.e. no 3 in/3 out, 7 in/7 out etc)
Con: Uses a lot more CPU if used to route audio rate signals

Enjoy
/Falk


ShuffleN.pch2
 Description:
Randomly routing N inputs to N outputs

Download
 Filename:  ShuffleN.pch2
 Filesize:  5.68 KB
 Downloaded:  1286 Time(s)

Back to top
View user's profile Send private message
Falk



Joined: Mar 07, 2006
Posts: 75
Location: Sweden
G2 patch files: 29

PostPosted: Sat Jun 16, 2007 6:53 am    Post subject: A second take on the problem Reply with quote  Mark this post and the followings unread

Hello.

After my first approach I thought I could do better (i.e. cheaper). 3 days of hard patching later ....

This is based on the idea of shifting the values 0, 4, 8, 12, 16, 20 and 28 around a circular shift register and for every shift operation randomly swap elements at position 1 and 2. The shift register is sampled and used to drive a bunch of Mux8-1 to get a new permutation.

Pro: Cheaper at 20.0% CPU and 30.5% memory for 8 in/8 out
Pro: No increase in CPU for audio rate signal routing
Pro: Can be modified to work from 2 in/2 out up to 7 in/7 out
Con: Bloody hard to understand
Con: Needs to be triggered to get a random permutation, initially input 1 is routed to all outputs
Con: Can not easily be expanded to be larger then 8 in/8 out

Enjoy
/Falk


ShuffleN_v2.pch2
 Description:
Another take on the N in/N out permutation

Download
 Filename:  ShuffleN_v2.pch2
 Filesize:  3.99 KB
 Downloaded:  1097 Time(s)

Back to top
View user's profile Send private message
Falk



Joined: Mar 07, 2006
Posts: 75
Location: Sweden
G2 patch files: 29

PostPosted: Sun Jun 17, 2007 3:40 am    Post subject: OK, I lied......
Subject description: 15 in/15 out shuffle
Reply with quote  Mark this post and the followings unread

Hello all.

Same approach as previous patch but expanded to 15 in/15 out

At 66.4% CPU and 95.4% memory I really can't see how you'd get the modulation sources in, or the modulation targets.

You can however easily modify this patch to do 14/14, 13/13 etc
You can also do 15 in/14 out all the way down to 15 in/1 out.

Descriptions of how to do that is in the textpad.

I think I have earned myself a beer but the fridge is all empty Sad

/Falk


ShuffleN_v3.pch2
 Description:
Expanded to 15 in/15 out

Download
 Filename:  ShuffleN_v3.pch2
 Filesize:  6.26 KB
 Downloaded:  1125 Time(s)

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 » 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


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