Live data from Hacker News

Audio from Scratch with Go: Stereo Panning

dylanmeeus.github.io

1–10 of 24 posts

Re: Audio from Scratch with Go: Stereo Panning

#3
[ Edited/Deleted reply because I missed the fact that this code distributes a single mono signal across 2 outputs. The terminology for this stuff is never totally clear: some people would call this a mono panner, some would call it a stereo panner, some call it a 1in/2out panner ]

Re: Audio from Scratch with Go: Stereo Panning

#4
post #2

Wow, this is really cool. I wonder how far the author plans to go with this? DSP gets pretty complex pretty quickly . . .

Her, author here! :)

Glad you liked it! I don't have concrete plans actually, just doing this for fun so we'll see how far I get :)

Re: Audio from Scratch with Go: Stereo Panning

#5

[ Edited/Deleted reply because I missed the fact that this code distributes a single mono signal across 2 outputs. The terminology for this stuff is never totally clear: some people would call this a mono panner, some would call it a stereo panner, some call it a 1in/2out panner ]

Hey there, yep I'm actually aware of what you're saying. I actually wrote this at the bottom of the post:

"There is actually a flaw with this panning function that we are using. However it is not apparent to us yet because we can only set a pan for an entire audio source"

I'm working from something simple up to something more complex, but tackling it in small parts. Next I'm writing about applying breakpoints where the pan can be set throughout the track and you can notice the power dip - and then we'll work on fixing that. ;-)

Re: Audio from Scratch with Go: Stereo Panning

#6
post #4
post #2

Wow, this is really cool. I wonder how far the author plans to go with this? DSP gets pretty complex pretty quickly . . .

Her, author here! :) Glad you liked it! I don't have concrete plans actually, just doing this for fun so we'll see how far I get :)

Might have been an interesting point to stream this data (basic sine) to an audio output instead of file. That's more immediately hands on.

(Sorry, this refers to the first entry in your audio/go series)

Re: Audio from Scratch with Go: Stereo Panning

#7
post #5

[ Edited/Deleted reply because I missed the fact that this code distributes a single mono signal across 2 outputs. The terminology for this stuff is never totally clear: some people would call this a mono panner, some would call it a stereo panner, some call it a 1in/2out panner ]

Hey there, yep I'm actually aware of what you're saying. I actually wrote this at the bottom of the post: "There is actually a flaw with this panning function that we are using. However it is not apparent to us yet because we can only set a pan for an entire audio source" I'm working from something simple up to something more complex, but tackling it in small parts. Next I'm writing about applying breakpoints where t…

[deleted]

Re: Audio from Scratch with Go: Stereo Panning

#8
post #5

[ Edited/Deleted reply because I missed the fact that this code distributes a single mono signal across 2 outputs. The terminology for this stuff is never totally clear: some people would call this a mono panner, some would call it a stereo panner, some call it a 1in/2out panner ]

Hey there, yep I'm actually aware of what you're saying. I actually wrote this at the bottom of the post: "There is actually a flaw with this panning function that we are using. However it is not apparent to us yet because we can only set a pan for an entire audio source" I'm working from something simple up to something more complex, but tackling it in small parts. Next I'm writing about applying breakpoints where t…

For some reason, I just realized that despite your talk about 2 channel WAV files, this code is actually a 1 input to 2 output panner.

So I take back what I said about it being a balance control entirely. Sorry for that.

Re: Audio from Scratch with Go: Stereo Panning

#9
post #6
post #4

Earlier quoted context omitted.

Her, author here! :) Glad you liked it! I don't have concrete plans actually, just doing this for fun so we'll see how far I get :)

Might have been an interesting point to stream this data (basic sine) to an audio output instead of file. That's more immediately hands on. (Sorry, this refers to the first entry in your audio/go series)

Thanks, that's a good idea!
Post reply on HN