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 » Nord Modular G2 Discussion
DlyShiftReg bug?
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Rix



Joined: Aug 08, 2004
Posts: 83
Location: Breda, the Netherlands
Audio files: 2
G2 patch files: 25

PostPosted: Sun Aug 22, 2004 3:39 am    Post subject: DlyShiftReg bug? Reply with quote  Mark this post and the followings unread

I was struggeling with an idea for a patch: 'sequence by the numbers'.
The idea is to have constants (numbers) represent the binary pattern that then should be played. So one constant would represent the sequence for a hi-hat, another for a snare, etc.

I tried to use the DlyShiftReg for this, but it does not seem to work as expected.
When I have a number with a single bit as input (e.g., 4, 8 ) and then shift it by a clock, this is what I would expect:

100 (the input number)
010 (after the first shift)
001 (after the second shift)

instead, what happens is that the bit is 'smeared out' like this:

110 (after the first shift)
111 (after the second shift)

This does not seem right for a shift operation.

Or has anyone another idea how to 'scan' a number bit by bit and send the result (0 or 1 ) to a module?

Richard
Back to top
View user's profile Send private message Visit poster's website
Rob



Joined: Mar 29, 2004
Posts: 580
Location: The Hague/Netherlands/EC
G2 patch files: 109

PostPosted: Sun Aug 22, 2004 4:16 am    Post subject: Re: DlyShiftReg bug? Reply with quote  Mark this post and the followings unread

Rix wrote:
I was struggeling with an idea for a patch: 'sequence by the numbers'.
The idea is to have constants (numbers) represent the binary pattern that then should be played. So one constant would represent the sequence for a hi-hat, another for a snare, etc.

I tried to use the DlyShiftReg for this, but it does not seem to work as expected.
When I have a number with a single bit as input (e.g., 4, 8 ) and then shift it by a clock, this is what I would expect:

100 (the input number)
010 (after the first shift)
001 (after the second shift)

instead, what happens is that the bit is 'smeared out' like this:

110 (after the first shift)
111 (after the second shift)

This does not seem right for a shift operation.

Or has anyone another idea how to 'scan' a number bit by bit and send the result (0 or 1 ) to a module?

Richard


Send in a little patch, exampling the behaviour you found. Then its better to check out what goes wrong.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rix



Joined: Aug 08, 2004
Posts: 83
Location: Breda, the Netherlands
Audio files: 2
G2 patch files: 25

PostPosted: Sun Aug 22, 2004 5:15 am    Post subject: Reply with quote  Mark this post and the followings unread

Here is a simple patch.
Ths single bit (made visible in ADConv1) is smeared out by the DlyShiftReg1 (made visible in ADConv2)....

Richard.

[moderator : For some reason the attached patch (seqwie.pch2, Patch to make a sequencer by reading the bits of a constant value.) generated a file not found message, I removed the invalid link to it - Blue Hell]
Back to top
View user's profile Send private message Visit poster's website
Rob



Joined: Mar 29, 2004
Posts: 580
Location: The Hague/Netherlands/EC
G2 patch files: 109

PostPosted: Sun Aug 22, 2004 5:45 am    Post subject: Reply with quote  Mark this post and the followings unread

Rix wrote:
Here is a simple patch.
Ths single bit (made visible in ADConv1) is smeared out by the DlyShiftReg1 (made visible in ADConv2)....

Richard.


Seems to me that you're clocking in the same information again and again. Note that the input to the shift register should have the information only on the first clock it gets, on sbusequenct clocks the input should be zero. It's a serial vs. parallel kind of issue.

What you could try to do is connect a two input switch with its output going to the input of the shift delay and 'gate' with one pulse of the ringcounter, so only one bit can get shifted in during eight clock pulses of the clock. By suppressing the bit that controls the switch the shift delay should recirculate.

But perhaps you need eight of these shift registers to shift the eight bits from your constant value...


seqwie2.pch2
 Description:

Download
 Filename:  seqwie2.pch2
 Filesize:  1.01 KB
 Downloaded:  1585 Time(s)

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



Joined: Aug 08, 2004
Posts: 83
Location: Breda, the Netherlands
Audio files: 2
G2 patch files: 25

PostPosted: Sun Aug 22, 2004 6:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Hmmm...

I modified it slightly, so that the whole number is on the 'On' switch input.
The number also starts with a 101 pattern now.

But I still so not see the 101 pattern shifted to the right, although it is presented only on the first clock pulse...

Oh well, it seemed a nice idea to use numbers for pattern generation.

Richard


seqwie3[1].pch2
 Description:

Download
 Filename:  seqwie3[1].pch2
 Filesize:  1 KB
 Downloaded:  1386 Time(s)

Back to top
View user's profile Send private message Visit poster's website
Rob



Joined: Mar 29, 2004
Posts: 580
Location: The Hague/Netherlands/EC
G2 patch files: 109

PostPosted: Sun Aug 22, 2004 8:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Rix wrote:

Oh well, it seemed a nice idea to use numbers for pattern generation.

Richard


Hé, never say never... Smile


seqwie4.pch2
 Description:

Download
 Filename:  seqwie4.pch2
 Filesize:  1.27 KB
 Downloaded:  1565 Time(s)

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



Joined: Aug 08, 2004
Posts: 83
Location: Breda, the Netherlands
Audio files: 2
G2 patch files: 25

PostPosted: Sun Aug 22, 2004 10:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Hé, you have done it!

Thanks vey much. Now I can use the D7 output of the ADConv2 to trigger the sounds. And of course add some more constants...

Gracias.

Richard
Back to top
View user's profile Send private message Visit poster's website
jamos



Joined: Jun 01, 2004
Posts: 514
Location: Eugene, Oregon, USA
Audio files: 4
G2 patch files: 41

PostPosted: Sun Aug 22, 2004 10:35 am    Post subject: Reply with quote  Mark this post and the followings unread

I've done some experiments with the G2 that lead me to believe that Clavia does not use standard binary for at least some of its numeric storage. I think that the low bit represents either 1/2 - if the control's range is numipolar - or the minus sign for a bipolar value.

This is evident by looking at the output of the A/D convertor.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rob



Joined: Mar 29, 2004
Posts: 580
Location: The Hague/Netherlands/EC
G2 patch files: 109

PostPosted: Tue Aug 24, 2004 8:44 am    Post subject: Reply with quote  Mark this post and the followings unread

jamos wrote:
I've done some experiments with the G2 that lead me to believe that Clavia does not use standard binary for at least some of its numeric storage. I think that the low bit represents either 1/2 - if the control's range is numipolar - or the minus sign for a bipolar value.

This is evident by looking at the output of the A/D convertor.


Yep, the 128 bit is actually the sign bit and the 1 bit is actually 1/2 units. To convert the 64 values between 0 and up to and including +63 it suffices to use the middle six bit outputs, or inputs to the DA.

Numbers is all a matter of interpretation and the 'value' that people assign to numbers. Like the number 12 can mean little to you, but a whole lot to me. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [9 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 » Nord Modular G2 Discussion
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