Log in to Freesound

Problems logging in?
Don't have an account? Join now

Problems logging in?

Enter your email or username below and we'll send you a link to help you login into your account.

Back to log in

Almost there!

We've sent a verification link by email

Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.

Default title

  • Sounds
  • Tags
  • Forum
  • Map
    • Sounds
    • Packs
    • Forum
    • Map
    • Tags
    • Random sound
    • Charts
    • Donate
    • Help

Freesound Forums

  • Freesound Forums
  • Production Techniques, Music Gear, Tips and Tricks
  • phase shift

phase shift

Subscribe

Started May 13th, 2006 · 7 replies · Latest reply by Bram 19 years, 4 months ago

I
ingresman

0 sounds

2 posts

19 years, 4 months ago
#1

Hi Guys,

Can anyone tell me how to phase shift a sound?. I need to create some software which will initialy shift some audio by 90degrees (andother values later), but i've got no idea how to go about it. I've looked on the web and it gets into quite deep maths quite quicky !. I've got a fair understanding of how the samples work in a .wav file and I code in C so I can get to the raw bytes with no problem.
I'd be very graetfull for any pointers
Regards
Kevin

A
acclivity

563 sounds

351 posts

19 years, 4 months ago
#2

comment withdrawn

Freesound Moderator "Close your eyes, and you're almost there!"
n2p5

24 sounds

12 posts

19 years, 4 months ago
#3

this isn't a math answer, but a good way of thinking of it:

If you have two of the same waves it will double the amplitude (if played at the same time, and with the same speaker source... or complimentary speaker source).

If you have two signals that are completely opposite in amplitude you have perfect cancellation and no sound comes out. This is signal inversion and is commonly used to create stereo images for M-S imaging.

So, phasing exists somewhere in between those two extremes.
My guess is that if you take a signal and split it, you should be able to invert one, bump the Dbs down by 10 on one and remix the two. That should give you a simple phase effect.

also...

when you think of "phasing" effects for like guitars, its actually just a signal that is split, one staying clean, the other having a sweepable High Q applied to it, and then mixed back together. Sometimes you can invert one of the signals two, to create even truer phasing.

Again, i have never actually created programs for phasing, or tested what i have said above. I think i am correct in my reasoning though.

hope this helps.

~Nathan
I
ingresman

0 sounds

2 posts

19 years, 4 months ago
#4

Thanks for that Nathan, I'll try it out in some code.
I'm actually trying to write a quadraphonic decoder (for the SQ matrix) all in software.
I'll post back with my results
Kevin

n2p5

24 sounds

12 posts

19 years, 4 months ago
#5

oh, i actually left out an important step.

Wave inversion is an important part, but specifically phase shirft comes from the lack on alignment in either case (double or negation of the wave form)...

Thus you may see the problem.

To move something "out of phase" means that you shift the starting point of the wave.

In a sine wave at 440 hz will react differantly to a 3 ms shift than a 5khz sine wave.

Thus, that is why you can get away with the High Q in guitar pedals.

What i forgot to mention is, In a complex wave form "90 degree phase" sort of looses its meaning.

A more accurate way of stating the phase shift would be "90 degree phase shift @ 440 hz (or whatever frequency you choose... a sweepable phaser)...

cool. Glad i cleared that up (i hope)

~Nathan
schluppipuppie

518 sounds

61 posts

19 years, 4 months ago
#6

in Logic 7.0 you have a 'Bit Shifter', with that you can delay one (or both) of the Stereo-Channels of an Audio-File

http://www.marcushorndt.de
Bram

122 sounds

1,573 posts

19 years, 4 months ago
#7

perhaps:
http://en.wikipedia.org/wiki/Hilbert_transform

- bram

Admin | Support
Post reply
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2025 Universitat Pompeu Fabra