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 » G2 Building Blocks
Linear Feedback Shift Register - pseudo random generator
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
blue hell
Site Admin


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

PostPosted: Sat Jan 19, 2008 12:26 pm    Post subject: Linear Feedback Shift Register - pseudo random generator Reply with quote  Mark this post and the followings unread

A linear Feedback Shift Register, as used for pseudo random generators.

See : Wikipedia

It has a table of various polynomials, I implemented the last one as an example. Just past the last one is a link to a PDF on the Xilinx website having many more.

In this patch I took the shift register outputs and combined them in a Klee like manner to do linear frequency control on a sine oscillator. Sounds a bit like the bleeps that used to be at one end of the FM radio.

I used XNOR ports instead of XOR ports to make the sequence self starting.


l_f_s_r.pch2
 Description:
Linear Feedback Shift Register - pseudo random generator

Download
 Filename:  l_f_s_r.pch2
 Filesize:  1.17 KB
 Downloaded:  2751 Time(s)


_________________
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
JLS



Joined: Nov 05, 2005
Posts: 490
Location: Czech
Audio files: 30
G2 patch files: 316

PostPosted: Sun Jan 20, 2008 2:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

thanks
_________________
Sorry my bad English Smile
https://soundcloud.com/1jls
https://soundcloud.com/user-819966312-266044932
https://github.com/jlswbs
Back to top
View user's profile Send private message Visit poster's website
iPassenger



Joined: Jan 27, 2007
Posts: 1067
Location: Sheffield, UK
Audio files: 5
G2 patch files: 78

PostPosted: Mon Jan 21, 2008 11:39 am    Post subject: Reply with quote  Mark this post and the followings unread

Loved the idea Blue (Thanks), so thought i would make one of my own.

::>>

http://www.electro-music.com/forum/post-164678.html#164678

_________________
iP (Ross)
- http://ipassenger.bandcamp.com
- http://soundcloud.com/ipassenger
Back to top
View user's profile Send private message Visit poster's website
dorremifasol



Joined: Sep 28, 2006
Posts: 814
Location: Barcelona, Spain
Audio files: 7
G2 patch files: 49

PostPosted: Fri Jan 25, 2008 6:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Great patch!

I always wanted to simulate the LFSR noise sound of the Game Boy in the G2, but I'm not a good G2 patcher yet... I have emulated it in software, though... in my GB emulator.

The GB has a switchable LFSR of 7 and 15 stages, giving 128 or 32768 random values before repeating. I might try to convert your patch to suit this behavior... but first I will need to understand it!

_________________
Cheers,
Albert
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


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

PostPosted: Fri Jan 25, 2008 12:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

When you have questions I'll try to answer them Very Happy
_________________
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
JohnL



Joined: Mar 30, 2009
Posts: 8
Location: Baton Rouge, LA, USA
G2 patch files: 1

PostPosted: Sun Apr 05, 2009 9:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

I have played around with Blue Hell's patch to make it sound a bit more musical (to my ears, at least), and the concept is just amazing. Between the LFSR-generated patterns and the strange way the Klee-like programming generates the notes, and the canon created by the delay, the right combination of mixer pot positions results in a kind of fractal self-similarity of ever-changing patterns. I've had the thing running all day, and it's hardly even much of a noodle. I can see I'm going to spend I while exploring this!

But I have a question. I read up on the background (thanks for the reference links!), and I think I understand how the thing works (after going through one round of filling the shift register on paper!). But am I right that what you have programmed is not the polynomial x19 + x18 + x17 + x14 + 1 (I don't know how to do superscript here), but it's mirror image complement x19 + x5 + x2 + x + 1? This would give the inversion of the first sequence. Or does substituting XNORs for XORs reverse the sequence again? Now that I think about it, it would. So I guess it is just a naming convention which polynomial you call it.

Thanks for a wonderful patch!
John
Back to top
View user's profile Send private message
JohnL



Joined: Mar 30, 2009
Posts: 8
Location: Baton Rouge, LA, USA
G2 patch files: 1

PostPosted: Sun Apr 05, 2009 9:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oops! My modified patch is at:
http://electro-music.com/forum/topic-33466.html

J
Back to top
View user's profile Send private message
cappy2112



Joined: Dec 24, 2004
Posts: 2465
Location: San Jose, California
Audio files: 2
G2 patch files: 1

PostPosted: Sun May 03, 2009 9:25 pm    Post subject: Re: Linear Feedback Shift Register - pseudo random generator Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
A linear Feedback Shift Register, as used for pseudo random generators.


And it's demo-friendly

_________________
Free Tibet. Release the Panchen Lama from prison. Let the Dalai Lama return to his home.
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 » 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