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 » DIY Hardware and Software
sine to triangle converter
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
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
ian-s



Joined: Apr 01, 2004
Posts: 2669
Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626

PostPosted: Sat May 26, 2007 10:35 pm    Post subject: sine to triangle converter Reply with quote  Mark this post and the followings unread

Stumbled across something that might be useful.
I have been playing with the sin cos generator from the G2 building blocks. I found that you can make a good triangle wave by full wave rectifying the tops and bottoms of the sin and cos respectively, then summing the result. The triangle is at twice the frequency of the sine.
Feeding the sin and cos into a two input xor gate, a square wave is formed with a high period coinciding with the rising slope of the triangle.
This means the triangle can be converted to a sawtooth with the good old conditional inverter technique.

I thought that a hardware version of this would be quite simple, and be an ideal companion for something like the Mankato Filter. Letting it double as a regular oscillator with Triangle, Sawtooth, (PWM is easy) and a true sine suboctave.

Sorry in advance if this is common knowledge.


sine2triangle.GIF
 Description:
 Filesize:  4.27 KB
 Viewed:  9676 Time(s)

sine2triangle.GIF



triSawFromSinCos.pch2
 Description:
G2 patch should run in Demo

Download
 Filename:  triSawFromSinCos.pch2
 Filesize:  1.52 KB
 Downloaded:  1606 Time(s)

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



Joined: Nov 24, 2005
Posts: 1314
Location: France

PostPosted: Sun May 27, 2007 12:55 am    Post subject: Reply with quote  Mark this post and the followings unread

Well there are other ways to do so in analog electronics.
An example is to use a tri2sin converter that you insert in the feedback loop of an OPA.

_________________
Yves
Back to top
View user's profile Send private message Visit poster's website
zipzap



Joined: Nov 22, 2005
Posts: 559
Location: germany
Audio files: 24

PostPosted: Mon May 28, 2007 12:54 am    Post subject: Reply with quote  Mark this post and the followings unread

really?

hey, this sounds interesting. sine subosc! that´s cool!

_________________
http://www.myspace.com/lorolocoacousticpop
http://www.myspace.com/petrolvendor
music and transcribed jazz basslines
Back to top
View user's profile Send private message
Pehr



Joined: Aug 14, 2005
Posts: 1307
Location: Björkvik, Sweden
Audio files: 2

PostPosted: Mon May 28, 2007 1:05 am    Post subject: Reply with quote  Mark this post and the followings unread

how about a comparator (to get a square) and then an integrating circuit to get a tri-wave? Confused

http://www.ee.duke.edu/~cec/final/node64.html

.

_________________
YouTube channel
flickr photostream
http://loxodrom.blogspot.com
http://www.garageband.com/artist/loxodrom
http://soundcloud.com/loxodrom
Back to top
View user's profile Send private message
zipzap



Joined: Nov 22, 2005
Posts: 559
Location: germany
Audio files: 24

PostPosted: Mon May 28, 2007 1:10 am    Post subject: Reply with quote  Mark this post and the followings unread

but that won´t be twice the speed of the sine. Ok, if you keep the rest you would have switchable sine or tri subosc... But than we´re propably better of building a nother vco...

anyway, that´s frequenzy dependant, right?
With higher freq the amplitude will get smaller and smaller.
but i think i´ve got something, let me have a look...

_________________
http://www.myspace.com/lorolocoacousticpop
http://www.myspace.com/petrolvendor
music and transcribed jazz basslines
Back to top
View user's profile Send private message
ian-s



Joined: Apr 01, 2004
Posts: 2669
Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626

PostPosted: Mon May 28, 2007 3:21 am    Post subject: Reply with quote  Mark this post and the followings unread

Making a triangle from a sine is perhaps not so interesting. What I thought was neat was that a simple two input xor gate could be used to generate a square wave with exactly the right phase relationship to convert the triangle to a sawtooth. The sort of luxury you only get with a triangle core vco.

Seems it would only be a few dollars worth of parts to convert any quadrature sine source into a vco with a full set of waveforms.
Back to top
View user's profile Send private message
zipzap



Joined: Nov 22, 2005
Posts: 559
Location: germany
Audio files: 24

PostPosted: Mon May 28, 2007 3:30 am    Post subject: Reply with quote  Mark this post and the followings unread

I once modded a state variable filter to parform like a quadrature sine vco. It was still possible to apply input signals in vco mode (rather strong, diode limited resonance).
Wonder what your shapers would give me in that case...

_________________
http://www.myspace.com/lorolocoacousticpop
http://www.myspace.com/petrolvendor
music and transcribed jazz basslines
Back to top
View user's profile Send private message
ian-s



Joined: Apr 01, 2004
Posts: 2669
Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626

PostPosted: Mon May 28, 2007 3:39 am    Post subject: Reply with quote  Mark this post and the followings unread

zipzap wrote:
Wonder what your shapers would give me in that case...


That's spooky, I was just thinking the same thing.
Back to top
View user's profile Send private message
zipzap



Joined: Nov 22, 2005
Posts: 559
Location: germany
Audio files: 24

PostPosted: Mon May 28, 2007 9:15 am    Post subject: Reply with quote  Mark this post and the followings unread

alien Twisted Evil
_________________
http://www.myspace.com/lorolocoacousticpop
http://www.myspace.com/petrolvendor
music and transcribed jazz basslines
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
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 » DIY Hardware and Software
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