Phase inverter

For general discussions related to SynthMaker.

Moderators: electrogear, exonerate

Phase inverter

Postby tracert on Mon Nov 28, 2011 1:07 pm

I have do a mono stream phase invereter but dont' work, Why ?
i have uploaded my schematic.
Phase_inverter.png
You do not have the required permissions to view the files attached to this post.
tracert
essemer
 
Posts: 29
Joined: Sat Mar 26, 2011 7:55 pm

Re: Phase inverter

Postby lesobrod on Mon Nov 28, 2011 1:52 pm

Firstly, here you should use Float (F) instead of Integers (I).
If this would not help, tell, please, "don't work" how?
For a lovely bowl let's arrange these flowers... Since there is no rice. Basho (c)(p)
User avatar
lesobrod
essemist
 
Posts: 156
Joined: Fri Aug 05, 2011 7:11 am
Location: Moscow, Russia

Re: Phase inverter

Postby theun on Mon Nov 28, 2011 2:51 pm

lesobrod wrote:Firstly, here you should use Float (F) instead of Integers (I).

SM isn't that strict. Using an integer here works also.

It´s quite easy to test simple schematics, e.g. like this

test inverter.PNG
You do not have the required permissions to view the files attached to this post.
Still working on the same stuff.....
But..... back on track!
"I just had to postpone my project for another 3 months, I had some brilliant ideas, you know, so I had to start coding from scratch..."
User avatar
theun
essemilian
 
Posts: 235
Joined: Thu Oct 19, 2006 11:41 am
Location: 10 feet below sea level

Re: Phase inverter

Postby Acrobat on Mon Nov 28, 2011 2:53 pm

lesobrod wrote:Firstly, here you should use Float (F) instead of Integers (I).


well no it's ok to use the integer -1 to revert the phase and it should work - anyway we usually call "stream" the grey stream carrying multiple voices information, this is better to be called an "audio mono signal" instead. ;)
User avatar
Acrobat
smaniac
 
Posts: 1660
Joined: Mon Jun 04, 2007 10:50 pm
Location: Roma, Italia

Re: Phase inverter

Postby tracert on Mon Nov 28, 2011 2:59 pm

I need to rotate the phase of incoming signal , but the oscilloscope, show me the same phase of the input signal
tracert
essemer
 
Posts: 29
Joined: Sat Mar 26, 2011 7:55 pm

Re: Phase inverter

Postby trogluddite on Mon Nov 28, 2011 3:41 pm

tracert wrote:rotate the phase

Sorry if this is a silly question, but do you really mean 'rotate the phase' or do you mean 'invert the signal' - it is only the same thing for certain symmetrical waveforms, yet many technical documents still mix them up.
Multiplying by -1 will invert a signal, but to phase shift (like the phase input to an oscillator) requires delaying the signal in time.

Acrobat wrote:anyway we usually call "stream" the grey stream carrying multiple voices

I wouldn't agree with that - a stream is so called because it carries a continuous flow of information transported at a guaranteed rate, which could easily apply to any information e.g. also video. So mono, mono4 and poly are all types of stream, in contrast with green/yellow data which consists of discrete events.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Phase inverter

Postby tracert on Mon Nov 28, 2011 4:10 pm

ok, my d.a.w. dont have a button to rotate (180) the phase of incoming audio signal, i need a simple software to do this...
some help ?
tracert
essemer
 
Posts: 29
Joined: Sat Mar 26, 2011 7:55 pm

Re: Phase inverter

Postby lesobrod on Mon Nov 28, 2011 4:26 pm

It looks like intricate mystification )))
I agree about Integers (but sometimes it may be important), so your very first schematic must work.

trogluddite wrote:Multiplying by -1 will invert a signal, but to phase shift (like the phase input to an oscillator) requires delaying the signal in time.
Cool, as always from Trog. ;)
But we should start from symm waveform and just damn invert it!
It seems something wrong at the rest part of schematic, so OSM, please!
For a lovely bowl let's arrange these flowers... Since there is no rice. Basho (c)(p)
User avatar
lesobrod
essemist
 
Posts: 156
Joined: Fri Aug 05, 2011 7:11 am
Location: Moscow, Russia

Re: Phase inverter

Postby trogluddite on Mon Nov 28, 2011 4:27 pm

Ah yes, so it is really an inversion that you need - many makers of audio hardware/software call this '180 phase', but technically, that is not correct. Mostly people understand what is meant, but for making synths the difference is more important than for a mixer etc.
(Sorry for me being such a geek - I do not think you are stupid, you are not to blame if the 'teachers' told you wrong!) ;) :)

Your *-1 idea should do what you need - so if you use a Saw wave you should see something like Theun's picture, with wave going 'up' instead of 'down'.

If this is not happening then you should post your design so that we can take a look, maybe there is a problem elsewhere that needs fixing, or a VST export is not working correctly.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Phase inverter

Postby CoreStyler on Mon Nov 28, 2011 4:30 pm

something like
Code: Select all
streamin in;
steamout out;

out = in * -1;


or not? :blush:
http://www.thecorestylerz.net
Sound Design, synth development and websites building...
Image
SM COMMUNITY IS MOVING TO
www.synthmakers.net
User avatar
CoreStyler
essemilian
 
Posts: 474
Joined: Sun May 23, 2010 1:25 pm

Re: Phase inverter

Postby lesobrod on Mon Nov 28, 2011 4:34 pm

CoreStyler wrote:or not? :blush:

Well I hope this code works as first picture ( only if SM was not designed by aliens)))
For a lovely bowl let's arrange these flowers... Since there is no rice. Basho (c)(p)
User avatar
lesobrod
essemist
 
Posts: 156
Joined: Fri Aug 05, 2011 7:11 am
Location: Moscow, Russia

Re: Phase inverter

Postby CoreStyler on Mon Nov 28, 2011 7:20 pm

What i dont understand is...
did the rigth example will require the same amount of CPU of the left (with asm).. Should be =, because when the compiler create the VST or EXE, should interpretate the primitive in the same code of ASM component or not?
ASM.PNG
You do not have the required permissions to view the files attached to this post.
http://www.thecorestylerz.net
Sound Design, synth development and websites building...
Image
SM COMMUNITY IS MOVING TO
www.synthmakers.net
User avatar
CoreStyler
essemilian
 
Posts: 474
Joined: Sun May 23, 2010 1:25 pm

Re: Phase inverter

Postby stw on Mon Nov 28, 2011 7:42 pm

as you can see, it does....

capture.png
You do not have the required permissions to view the files attached to this post.
stw
smanatic
 
Posts: 639
Joined: Mon Jun 30, 2008 2:55 pm

Re: Phase inverter

Postby CoreStyler on Mon Nov 28, 2011 8:44 pm

Well. So changing from code to asm will not make nothing better, true only if i can "fix" directly ASM.
http://www.thecorestylerz.net
Sound Design, synth development and websites building...
Image
SM COMMUNITY IS MOVING TO
www.synthmakers.net
User avatar
CoreStyler
essemilian
 
Posts: 474
Joined: Sun May 23, 2010 1:25 pm

Re: Phase inverter

Postby tracert on Tue Nov 29, 2011 12:19 pm

But, you have tested your schematic on a d.a.w. ?
On my d.a.w. phase not changed...
tracert
essemer
 
Posts: 29
Joined: Sat Mar 26, 2011 7:55 pm

Next

Return to General

Who is online

Users browsing this forum: No registered users and 3 guests