Page 1 of 1
i´m a beginner, help please!
Posted: Tue Dec 31, 2013 2:13 am
by gvalletto
I saw some things inside DSP Code modules which I can´t find explanations in the Flowstone User Guide.
For example:
a!=0;
x==3;
what does that mean? Please if you know where there is a complete guide, please let me know.
Re: i´m a beginner, help please!
Posted: Tue Dec 31, 2013 3:04 am
by nix
G'day mate,
Please delete the triple post,
if u would kindly delete the other 2 threads.
!= is code for 'does not equal'
== I think is defining equals in a conditional statement,
not for defining an object(line of code)
Here is an example of lines that uses both->
a = input != 0 & 4
output= a == 4 & 1
Sorry if that's more confusing,
but if input is more or less than 0, it will output 1
I can pretty much only do conditional statements in the DSP code window,
but it lets you do a lot.
Many happy returns!
Please ask more questions if you'd like
edit-> and a is 4, when input is not 0
Re: i´m a beginner, help please!
Posted: Tue Dec 31, 2013 3:50 am
by gvalletto
Thanks Nix! I have connection problems here, it its the reason why there´s 3 posts... I´m deleting it.
Well, I have two need:
1- I need to learn more English...
2- Until now I designed some synths with the oscillators that bring SM and FS. But those have no Pulse output. I designed one using DSP code, but it have big aliasing noise on higuer notes.
I downloaded the antialiasing example designed by Andrew J from this forum (search OSC_example_v1.6b.osm)
It´s amazing, but I can´t to make it work fine with my oscillators because I don´t know some things about this.
Re: i´m a beginner, help please!
Posted: Tue Dec 31, 2013 6:03 am
by nix
I'm sorry,
I don't know how to oversample,
but if you post the schematic I can have a quick look.
Hopefully someone who knows what they are doing can help.
Maybe also- is it possible to use a low pass filter(somehow)
- just to filter out beyond Nyquist?
Re: i´m a beginner, help please!
Posted: Tue Dec 31, 2013 6:43 am
by gvalletto
It isn´t enough to filter near Nyquist because aliasing generates lower frequencies, and those frequencies may vary as the played note. Hence if you filter, for example, a sawtooth to eliminate the harmonics that causes aliasing, the saw is destroyed by lack of harmonics... By texts I read, I understand that we must oversample, then filter to frequencies greater that Nyquist... it sound imposible, but there´s ways to simulate it with programming. And that is the part I don´t understand...
I´ll prepare a scheme next days and I´ll publish here so you can poke around. Have a happy New Year!
Re: i´m a beginner, help please!
Posted: Tue Dec 31, 2013 6:52 am
by RJHollins
Hi gvalletto,
Not sure you've seen this, but this thread has some 'oversampling' discussion ...
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=1675&hilit=oversample
Re: i´m a beginner, help please!
Posted: Thu Jan 02, 2014 1:30 am
by gvalletto
Thanks again RJ,
I´ll see these links with care, I have a lot to learn...
Best regards,
Gustavo