help troubleshooting first synth attempt

Sound synthesis techniques, DSP and related mathematics

Moderators: electrogear, exonerate

help troubleshooting first synth attempt

Postby antialias on Sun Jan 16, 2005 5:10 am

hello there,

i'd be much obliged if someone could tell me why this sounds unexpectedly like a cat in the bath?

http://www.emmrecords.com/~antialias/weepy.osm

thanks
-anti
antialias
essemer
 
Posts: 12
Joined: Tue Jan 11, 2005 5:05 am
Location: ann arbor, michigan

Postby lalo on Sun Jan 16, 2005 10:36 am

i did'nt analyzed your schematic in a deep way..
but i can tell you that i tend to obtain this kind of sounds out of SM when i feed things with values very out of range accepted from the different modules inputs...generally the amplitude related stuff is in the -1/+1 range..
the phase stuff us between 0/1...try to make little tests with values and connect to a wave display after an analyzer (you find both if you click on the 'graphì connector symbol in the left toolbox)
lalo
User avatar
lalo
smanatic
 
Posts: 882
Joined: Wed Jan 14, 2004 1:04 pm
Location: ferrara - italy

Postby jorge on Sun Jan 16, 2005 8:14 pm

antialias, its great when we see someone trying to create a synth with synthmaker. I'm having a look at your schematic and I'll try to show here some of the issues. This is also a good way to highlight possible problems with SM. I'll split my reply in several posts while I keep analysing your schematic.

first minor problem I found is with your slider:
Image
What you're trying to do is a good idea for connecting sliders in series as in your schematic:
Image
As you can see, each slider module is also showing the GUI for the sliders that come after, a better way would be:
Image
Now, each slider module only shows its own GUI:
Image

like I said, this is a minor problem, doesnt affect the sound and not even the front panel of your synth.
User avatar
jorge
smaniac
 
Posts: 1034
Joined: Tue Jan 13, 2004 11:12 pm
Location: Porto, Portugal

Postby jorge on Sun Jan 16, 2005 8:31 pm

ok, moving on to your lowpass filter section:
Image
you're multiplying the cutoff by 11025 but the cutoff doesnt work in Hertz, it works from 0 to 1 where 1 corresponds to 22050Hz. I can easily change the cutoff to work in Hertz but I think it is better to work in zero-to-one as often it avoids additional multiplications/divisions. For example, an ADSR output works from 0 to 1, when it is controlling the cutoff of a lowpass filter it can be directly connected to it. As a general rule in synthmaker, units go from zero to one.

You're also adding cutoff with cutenv and cutlfo. It's a good idea to combine those 3 but when you add values in frequency you get results that vary as you go up and down the scale. For example, 1KHz cutoff added to a 1KHz cutenv would generate a cutoff at 2KHz which is one octave above while 2KHz cutoff added to 1KHz cutenv would generate a cutoff of 3KHz which is not 1 octave above 2Khz, to be one octave above it would have to be 4KHz.

A better aproach when controlling the cutoff of a filter is as in the example schematic that loads with version 0.9.0h, basically it works by adding pitch and converting to frequency. Pitch is similar to midi notes with 57 being 440hHz, each time you add 12 to pitch you're moving one octave above or doubling frequency. Adding pitch is similar to mulptiplying frequency, for example multiplying frequency by 2 is the same as adding 12 to pitch.
User avatar
jorge
smaniac
 
Posts: 1034
Joined: Tue Jan 13, 2004 11:12 pm
Location: Porto, Portugal

Postby jorge on Sun Jan 16, 2005 8:39 pm

inside your module named synth you have the following:
Image
It's very useful to follow your schematic, it highlights the fact that its not easy to know the units accepted by each component.
In this case, you're assuming that phase is in degrees when, once again, it goes from 0 to 1 with 1 being 360 degrees.
User avatar
jorge
smaniac
 
Posts: 1034
Joined: Tue Jan 13, 2004 11:12 pm
Location: Porto, Portugal

Postby jorge on Sun Jan 16, 2005 9:16 pm

When debuging your schematic, it is often useful to look at the actual waves generated, it often gives clues about what is wrong. I'll give you an example how to do that.
Inside your synth module copy and paste the part of the schematic you want to analyse:
Image
now insert two knobs to control pwm and frequency, one analyser and one wave display as follows:
Image
as you move the knobs you'll be able to see the wave changing
User avatar
jorge
smaniac
 
Posts: 1034
Joined: Tue Jan 13, 2004 11:12 pm
Location: Porto, Portugal

Postby malc on Sun Jan 16, 2005 10:10 pm

jorge wrote:it highlights the fact that its not easy to know the units accepted by each component


I better get the connector label enhancements sorted then ;)

(as suggested here: http://www.synthmaker.com/forum/viewtopic.php?t=150 and here: http://www.synthmaker.com/forum/viewtopic.php?t=126 )
User avatar
malc
smychopath
 
Posts: 3111
Joined: Tue Sep 07, 2004 11:17 pm
Location: UK

Postby lalo on Mon Jan 17, 2005 6:59 am

malc wrote:
jorge wrote:it highlights the fact that its not easy to know the units accepted by each component


I better get the connector label enhancements sorted then ;)


cool :)

i'd suggest the idea to have a little number box on cables showing the actual values passing through...may be can be a kind of shortcut thing to spare resources...i mean..if you hit a key or a combination of mouse and key or whatever a little box appear showing the value passing in the cable.

lalo
User avatar
lalo
smanatic
 
Posts: 882
Joined: Wed Jan 14, 2004 1:04 pm
Location: ferrara - italy

Postby bManic on Thu Jan 27, 2005 4:47 pm

I agree. This would be very handy. A little box that shows what current value is going trough, min & max values and average during the time you hold the "modifier" key/button (that shows the value in the first place) held.
bManic
essemist
 
Posts: 105
Joined: Wed Jan 07, 2004 9:38 pm
Location: Finland


Return to Sound

Who is online

Users browsing this forum: No registered users and 2 guests