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
XY-Pong
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
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1148
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Thu Jun 07, 2007 3:27 am    Post subject: XY-Pong
Subject description: twodimensional ballistic pingpong circuit
Reply with quote  Mark this post and the followings unread

Inspired by this thread:

http://electro-music.com/forum/topic-18643.html

Imagine an object thrown in a twodimensional square space and bouncing back on the walls. The circuit outputs X and Y position, as well as four individual logic pulses for when the "object" bounces of the respective wall.

My first attempts used feedbacked mixers as variables (positions and velocities) and added circuitry for bouncing. But this turned out to be too expensive. So I figured out a simpler solution using triangle shape LFOs with their "Dir" parameter controlled by a logarithmically decaying envelope -which models the same behaviour, but much more economically. This however results in a different way of parametrisation: Instead of setting initial velocities for X and Y, you have to set initial "bouncing frequencies".

Controls:

X LFO Rate: Sets the initial bouncing frequency for X
Y LFO Rate: Same for Y
X LFO Phase: Sets the initial X position
Y LFO Phase: Same for Y
TIME decay knob: sets the time until all energy is dissipated
"Throw" -logic pulse; throws the object
"Reposit " -logic pulse; repositions the object to the position set by the phase parameters above

Outputs:
X and Y LFO: X and Y positions
X Pong Hi: Logic pulse for when the object bounces off the left wall...
X Pong Lo: ...or the right wall.
Y Pong Hi: ...or the upper wall.
Y Pong Lo: ...or the lower wall.
TIME End: Logic pulse to signal that the object has stopped its movement.

Efficiency notes:
If not needed, the pong logic part of the circuit (the constant and the compare modules) can simply be deleted. Also, if the "End" pulse signal is not required, the AD/R envelope module can be replaced by a simple "Decay" module, saving a module output and some cycles.

I added a rather elaborate Laughing demonstration circuit (all the grey modules), which of course can be deleted. (Thanks to Kassen for the 8x8 pixel screen idea.)


XY Pong TK.pch2
 Description:
twodimensional ballistic pingpong circuit

Download (listen)
 Filename:  XY Pong TK.pch2
 Filesize:  2.6 KB
 Downloaded:  1765 Time(s)

Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1148
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Thu Jun 07, 2007 4:43 am    Post subject: Reply with quote  Mark this post and the followings unread

Here's a performance-orientated spinoff, which uses the global wheels as controllers. "Throw" the global wheels in positive or negative direction to add momentum to the X and Y movement of the object. (They are mapped as morphs to two constant modules.)

Plus a button to reposition the object, and control to adjust the overall response of the circuit.


GWheelsXYPong TK.pch2
 Description:
XY Pong circuit using the global wheels as performance controllers.

Download (listen)
 Filename:  GWheelsXYPong TK.pch2
 Filesize:  2.88 KB
 Downloaded:  1668 Time(s)

Back to top
View user's profile Send private message
electri-fire



Joined: Jul 26, 2006
Posts: 536
Location: Dordrecht NL
Audio files: 4
G2 patch files: 4

PostPosted: Thu Jun 07, 2007 3:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi Tim, I can't believe how fast you are!


These patches are brilliant. Thanks a lot.


Quote:
I don't quite understand what you are trying to do. Nothing is connected to the S/H-modules (except a "dead" LevAmp module, as nothing is going into that).


It was very unfinished business. The levelamp uses audio input 3-4 for moitoring the progress. Keypress triggers one S/H module, key release (by inverter) the other S/H .
Throw force is implemented by the modwheel. We didn't get the same response on key release though. The wheel may be dodgy ore we made a thinking flaw.

Quote:
However -I got inspired by your post to make a XY-Pong building block.


At least we attcheaved that. It's largely what I had in mind, I would like a longer decay time though. I suppose adding a constant would do that.

I'll be tinkering with this next week when I'm with Rix's G2. Probably convert for KaossPad use.

Last edited by electri-fire on Fri Jun 08, 2007 4:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
electri-fire



Joined: Jul 26, 2006
Posts: 536
Location: Dordrecht NL
Audio files: 4
G2 patch files: 4

PostPosted: Thu Jun 07, 2007 3:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh and also Kassen's pixel screen is a cool visual demonstration of what's happening. Lovely.
Back to top
View user's profile Send private message
electri-fire



Joined: Jul 26, 2006
Posts: 536
Location: Dordrecht NL
Audio files: 4
G2 patch files: 4

PostPosted: Thu Jun 07, 2007 4:08 pm    Post subject: minor XY-Pong edits Reply with quote  Mark this post and the followings unread

additions in Marine color.

added constant to lenghten bouncing time

Throw module worked with positive values only. Now set to unipolair.

added oscillators demonstrate continuous control properties.

added Textpad user directions.


xy_pong____tk_712[1].pch2
 Description:

Download (listen)
 Filename:  xy_pong____tk_712[1].pch2
 Filesize:  3.88 KB
 Downloaded:  1818 Time(s)

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: Thu Jun 07, 2007 8:47 pm    Post subject: Re: XY-Pong
Subject description: twodimensional ballistic pingpong circuit
Reply with quote  Mark this post and the followings unread

tim wrote:
(Thanks to Kassen for the 8x8 pixel screen idea.)


You're welcome. I quite like this triangle LFO solution. As I remember making my patch the zero-page was a huge issue there and this seems like a fine solution as long as the modulation source is up to it.

_________________
Kassen
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 [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 » 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