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
Square to sawtooth waveform conversion?
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 2 [26 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
Peake



Joined: Jun 29, 2007
Posts: 1113
Location: Loss Angeles
Audio files: 3

PostPosted: Wed Apr 09, 2008 11:35 am    Post subject: Square to sawtooth waveform conversion?
Subject description: I want to get more mileage out of suboctaves
Reply with quote  Mark this post and the followings unread

Hi, Google hath failed me Smile

I want to add a suboctave module to my system, and want more than a square or pulse waveform. Was it Fritz who posted a sine suboctave generator? Does anyone have a circuit for square to saw conversion?

Thanks..
Back to top
View user's profile Send private message
françois



Joined: Dec 23, 2006
Posts: 139
Location: Paris (France)
Audio files: 1

PostPosted: Wed Apr 09, 2008 11:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Hello,

Generating a sawtooth from a square is not possible since the square has lost almost all time information. OTOH, making a sine is possible by filtering out all the harmonics.

I posted here some weeks (or was it months ?) ago a topic on how to generate sub-octave and super-octave sawtooths (and also ×3, ×5, ÷3 and ÷5 frequencies). I'll try to find it.

EDIT: here it is :
http://electro-music.com/forum/topic-22679.html

Yours,

-- françois
Back to top
View user's profile Send private message
bubblechamber



Joined: Nov 04, 2006
Posts: 280
Location: NYC
Audio files: 1

PostPosted: Wed Apr 09, 2008 12:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

well, if you convert your Square to a Triangle, you can use them both to create a Saw using the EN#129 waveshaper...
Back to top
View user's profile Send private message Visit poster's website
françois



Joined: Dec 23, 2006
Posts: 139
Location: Paris (France)
Audio files: 1

PostPosted: Wed Apr 09, 2008 12:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

bubblechamber wrote:
well, if you convert your Square to a Triangle, you can use them both to create a Saw using the EN#129 waveshaper...


Indeed. The only problem is that a triangle is as impossible to get from a square as a sawtooth is.

Of course, if you let your square wave go through an integrator, you do get a triangle wave. But its amplitude will change with the frequency of the square wave, a most undesirable feature I think.

-- françois
Back to top
View user's profile Send private message
ian-s



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

PostPosted: Wed Apr 09, 2008 1:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

You can get a 75% pulse by ORing divide by 2 and divide by 4. This is close to a saw harmonically. Roland do it on some of their synths.
Back to top
View user's profile Send private message
bubblechamber



Joined: Nov 04, 2006
Posts: 280
Location: NYC
Audio files: 1

PostPosted: Wed Apr 09, 2008 1:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

françois wrote:
bubblechamber wrote:
well, if you convert your Square to a Triangle, you can use them both to create a Saw using the EN#129 waveshaper...


Indeed. The only problem is that a triangle is as impossible to get from a square as a sawtooth is.

Of course, if you let your square wave go through an integrator, you do get a triangle wave. But its amplitude will change with the frequency of the square wave, a most undesirable feature I think.

-- françois


and I think it's an inverse relationship so that the higher the frequency the lower the amplitude.
there is a sawtooth generator in the op amp cookbook, fig 7-25 in my copy, that might do the trick. it runs off a Square input so your suboct Square should work as the trigger. if you need a scan let me know and I'll post it... looks very simple. if I have the time over the next day or 2 I'll breadboard it and see how it works.
d
Back to top
View user's profile Send private message Visit poster's website
Peake



Joined: Jun 29, 2007
Posts: 1113
Location: Loss Angeles
Audio files: 3

PostPosted: Wed Apr 09, 2008 8:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thank you for all of the replies. Yes, please scan it and post away. I appreciate it and it might create a bit of interest.
Back to top
View user's profile Send private message
françois



Joined: Dec 23, 2006
Posts: 139
Location: Paris (France)
Audio files: 1

PostPosted: Thu Apr 10, 2008 3:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Peake wrote:
Thank you for all of the replies. Yes, please scan it and post away. I appreciate it and it might create a bit of interest.


Yes, I'd like to see it too. I have so many documents entitled "Opamp Cookbook" or something similar, I can't guess which one you are referring to... and it might be I miss this one !

Attached is a sawtooth suboctave generator. Input is a raising sawtooth (from -5V to +5V) and a train of sync (CLK) pulses, as are available from any ASM-1 type VCO core. Output is an inverted sawtooth at half the frequency.

Yours,

-- françois


Visio-Sawtooth Suboctave.pdf
 Description:

Download (listen)
 Filename:  Visio-Sawtooth Suboctave.pdf
 Filesize:  6.15 KB
 Downloaded:  826 Time(s)

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



Joined: Jun 01, 2006
Posts: 679
Location: NYC
Audio files: 26

PostPosted: Thu Apr 10, 2008 3:29 am    Post subject: Reply with quote  Mark this post and the followings unread

http://home.comcast.net/~sbernardi/elec/og2/og3_sine_suboctave.html
_________________
Revenge is a dish best served with a fork... to the eye
Back to top
View user's profile Send private message Visit poster's website
sneakthief



Joined: Jul 24, 2006
Posts: 569
Location: Berlin

PostPosted: Thu Apr 10, 2008 3:33 am    Post subject: Reply with quote  Mark this post and the followings unread

for your edification, i suggest that you read this thread if you haven't already:

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

_________________
Sneak-Thief - raw electrofunk
Back to top
View user's profile Send private message Visit poster's website
françois



Joined: Dec 23, 2006
Posts: 139
Location: Paris (France)
Audio files: 1

PostPosted: Thu Apr 10, 2008 5:25 am    Post subject: Reply with quote  Mark this post and the followings unread

richardc64 wrote:
http://home.comcast.net/~sbernardi/elec/og2/og3_sine_suboctave.html

Interesting, and very similar to my design. The ony differnce is that mine was only SPICE tested, not even breadboarded... But even so, it has glitches (spikes) at every reset of the input saw. These are normally not audible, but can be removed (to a large amound) by adding a small (say, 100p) cap across the feedback resistore at U1.

-- françois
Back to top
View user's profile Send private message
Funky40



Joined: Sep 24, 2005
Posts: 875
Location: Swiss
Audio files: 1
G2 patch files: 5

PostPosted: Thu Apr 10, 2008 5:51 am    Post subject: Re: Square to sawtooth waveform conversion?
Subject description: I want to get more mileage out of suboctaves
Reply with quote  Mark this post and the followings unread

Peake wrote:
Hi, Google hath failed me Smile

I want to add a suboctave module to my system, and want more than a square or pulse waveform. Was it Fritz who posted a sine suboctave generator?

Thanks..


the Modul fcrom Scott Bernardi delivers Sine, saw, and Square suboctaves.
It must be feed with Sawwaves.

I just opened a Thread for this Module:
http://www.electro-music.com/forum/post-179578.html#179578


here the link to Scott B' site: ( schematic is on the Bottom )
http://home.comcast.net/~sbernardi/elec/og2/og3_sine_suboctave.html
Back to top
View user's profile Send private message
bubblechamber



Joined: Nov 04, 2006
Posts: 280
Location: NYC
Audio files: 1

PostPosted: Thu Apr 10, 2008 12:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

this is from Jung's Op Amp Cookbook. it doesn't look prefect, but it does look easy...


SQR2SAW.jpg
 Description:
 Filesize:  214.39 KB
 Viewed:  285 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

SQR2SAW.jpg


Back to top
View user's profile Send private message Visit poster's website
françois



Joined: Dec 23, 2006
Posts: 139
Location: Paris (France)
Audio files: 1

PostPosted: Fri Apr 11, 2008 2:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Thank you !

I must have a deeper look on this circuit, but at first view I doubt it will convert a square into a saw at the same frequency. It seems to be just a synchronized sawtooth generator. But I'm not really sure, I'll have a really torough analysis before I can say more.

BTW, which book did you get this from ? I've not seen it in any of mine, so I must have missed one of the (very many) refverence book around there...

-- françois
Back to top
View user's profile Send private message
yusynth



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

PostPosted: Fri Apr 11, 2008 2:50 am    Post subject: Reply with quote  Mark this post and the followings unread

bubblechamber wrote:
this is from Jung's Op Amp Cookbook. it doesn't look prefect, but it does look easy...


This schematic is based on what is called a TAC for Time to Amplitude Converter, this is used to measure a time delay between two events or convert a frequency into a CV. This is not what you expect, the slope of the generated ramp is constant (adjustable by the potentiometer R5). Therefore, if you apply a rectangular signal to the inputs then you will get a ramp of constant slope and variable amplitude depending on the input frequency. You would have to change the value of R5 in phase with the input frequency...

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



Joined: Aug 08, 2005
Posts: 438
Location: Walthamstow - london
Audio files: 5
G2 patch files: 1

PostPosted: Fri Apr 11, 2008 7:15 am    Post subject: Reply with quote  Mark this post and the followings unread

yusson wrote:

You would have to change the value of R5 in phase with the input frequency...


would it be possible to do ? with another frequency to volt converter? I imagine it would be pretty hard to sync. but possible?

This kind of thing would be ideal for a F multiplier too as a sawtooth can be split with comparators.

_________________
Clacktronics.co.uk
Back to top
View user's profile Send private message Visit poster's website
yusynth



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

PostPosted: Fri Apr 11, 2008 7:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Mr Clack wrote:
yusson wrote:

You would have to change the value of R5 in phase with the input frequency...


would it be possible to do ? with another frequency to volt converter? I imagine it would be pretty hard to sync. but possible?

This kind of thing would be ideal for a F multiplier too as a sawtooth can be split with comparators.

Yes it would, but that would be poorly efficient. If you have TAC like here you can easily extract the average amplitude of the sawtooth and use this voltage to drive a sawtooth linear VCO.

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



Joined: Nov 04, 2006
Posts: 280
Location: NYC
Audio files: 1

PostPosted: Fri Apr 11, 2008 10:39 am    Post subject: Reply with quote  Mark this post and the followings unread

françois wrote:


BTW, which book did you get this from ? I've not seen it in any of mine, so I must have missed one of the (very many) refverence book around there...

-- françois


it's from Walter Jung's IC Op Amp Cookbook. I seem to have a first edition, so maybe this was left out in later versions. there might be something in the 555 timer cookbook I have. I'll look through these over the weekend. this is something I'm pretty interested in too.
Back to top
View user's profile Send private message Visit poster's website
françois



Joined: Dec 23, 2006
Posts: 139
Location: Paris (France)
Audio files: 1

PostPosted: Sat Apr 12, 2008 1:59 am    Post subject: Reply with quote  Mark this post and the followings unread

bubblechamber wrote:
it's from Walter Jung's IC Op Amp Cookbook. I seem to have a first edition, so maybe this was left out in later versions. there might be something in the 555 timer cookbook I have. I'll look through these over the weekend. this is something I'm pretty interested in too.

Oh, this one ? I should have thought of it at first glance. I don't have it, but it is quoted every here and there as a "classic". I think I'll buy it, I had a look at Amazon, it is not really expensive (around US$40, i.e. €30).

Thanks !

-- françois
Back to top
View user's profile Send private message
Danno Gee Ray



Joined: Sep 25, 2005
Posts: 1351
Location: Telford, PA USA

PostPosted: Sun Apr 13, 2008 9:19 am    Post subject: Reply with quote  Mark this post and the followings unread

I have the third edition of that book and in mine, the figure is now "Fig. 10-24" and is found on page 492.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Mon Apr 14, 2008 6:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Some years ago, someone sent me a schematic for a square to saw (or perhaps square to tri) circuit. It was based on successive approximation, but the wave would quickly evolve when the input changed frequency.

Unfortunately, I am not at liberty to reveal the schematic, I promised not to do that.

_________________
FPGA, dsPIC and Fatman Synth Stuff

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
corruptio optimi pessima
Back to top
View user's profile Send private message Visit poster's website
jhaible



Joined: May 25, 2007
Posts: 2014
Location: Germany
Audio files: 24

PostPosted: Mon Apr 14, 2008 8:35 am    Post subject: Reply with quote  Mark this post and the followings unread

Has anybody mentioned the old Korg trick to create Saw suboctaves?

You start with a saw in the highest octave, then divide down the frequency with flipflops to get the lower octaves, all in square wave form.
Then you build starcase waveforms from weighted squares of the required octave, and all higher octaves.
And finally, you fill the gaps of this staircase with the saw wave from the highest octave.

Voila, saw wave in every sub octave.

Many old Korg synths did this:

Minikorg, Maxikorg, PS-3100 (and if memory serves, the Polysix as well).

This was mainly used for creating the "normal" oscillator signal in different transpositions rather than for dedicated suboctave generators.

I've used this method in the JH-720, whose VCO was inspired by the Minikorg 700:
http://home.debitel.net/user/jhaible/jh_720_vco_core.gif

JH.

(wondering if it makes sense to ffer some old style Korg synth PCBs at one time - there's a lot of interesing stuff burried in old Korg's - "singing" envelope, anybody? Smile )

_________________
"I tell you the truth, if anyone says to this mountain, 'Go, throw yourself into the sea,' and does not doubt in his heart but believes that what he says will happen, it will be done for him. Therefore I tell you, whatever you ask for in prayer, believe that you have received it, and it will be yours." (Mk 11,23f)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Peake



Joined: Jun 29, 2007
Posts: 1113
Location: Loss Angeles
Audio files: 3

PostPosted: Mon Apr 14, 2008 10:49 am    Post subject: Reply with quote  Mark this post and the followings unread

That rings a bell- wasn't the SH7 something similar to that Korg design? It would be interesting to have that with mixing versus switching.
Back to top
View user's profile Send private message
jhaible



Joined: May 25, 2007
Posts: 2014
Location: Germany
Audio files: 24

PostPosted: Mon Apr 14, 2008 1:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

Peake wrote:
That rings a bell- wasn't the SH7 something similar to that Korg design? It would be interesting to have that with mixing versus switching.


I think the SH7 has two VCOs (x2), with one sync'ed to the other. (Long time since I checked - forgot what has been the goal behind that - but it's certainly a different method from Korg's)

JH.

_________________
"I tell you the truth, if anyone says to this mountain, 'Go, throw yourself into the sea,' and does not doubt in his heart but believes that what he says will happen, it will be done for him. Therefore I tell you, whatever you ask for in prayer, believe that you have received it, and it will be yours." (Mk 11,23f)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gavgomad



Joined: Jan 29, 2006
Posts: 69
Location: Canada

PostPosted: Mon Apr 14, 2008 2:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ah, the ol' Korg "singing" envelope.... Memories of my ol' maxi-korg that I sold many years ago. Unique instrument, although there were elements of the design that were SO foreign to me that I could never really tell if the synth was actually working to spec, or just "freaking out" - the "Repeat" circuit, for example.... Never understood those modes! ;-P

Gavin.
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 2 [26 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
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