DSPRelated.com
Forums

How to start-off??

Started by krg November 2, 2005
Posted To:
comp.dsp, sci.electronics.misc, rec.music.makers.synth

Hello people,
        Getting straight on to the topic, I read a lot about cool
effects like flanging, reverb, and ... <you got the idea>, and also
that how you can create these with your own programs in C. I believe I
know enough C to carry things on my own, but I just need a start.
       All I want to know is how to get those samples of that fav song
of mine that go out of my PC, so that I can really grab them and do
algebra that sounds good to me and finally play it.
       Thanks for reading my post and further more if you actually
help.

a small addition: I am on Windows platform

thanks

I would recommend that you start by reading the book "Understanding
Digital Signal Processing" by Lyons. It is said to be the easiest
introduction to DSP for beginners.

For the grabbing of the audio signal, you might want to use an audio
library such as PortAudio. If you use the Stk (Synthesis Toolkit for
C/C++) then many of the basics of audio processing such as filters are
pre-defined, and you can skip a lot of the DSP theory.

http://www.amazon.com/exec/obidos/tg/detail/-/0201634678/103-8546001-8973437?v=glance
(apologies for the commercial link)
http://www.portaudio.com
http://ccrma.stanford.edu/software/stk/

Cheers,

Ross-c

krg wrote:
> Posted To: > comp.dsp, sci.electronics.misc, rec.music.makers.synth > > Hello people, > Getting straight on to the topic, I read a lot about cool > effects like flanging, reverb, and ... <you got the idea>, and also > that how you can create these with your own programs in C. I believe I > know enough C to carry things on my own, but I just need a start. > All I want to know is how to get those samples of that fav song > of mine that go out of my PC, so that I can really grab them and do > algebra that sounds good to me and finally play it. > Thanks for reading my post and further more if you actually > help. >
Not quite the right newsgroup for that question, however... You'll either need a decoder for the particular file format that you're wanting to play around with, or you'll have to look into directly modifying the Direct-Sound (or equivalent) buffers to allow for the effects you desire. Once you've got the buffer containing your samples then it's just a matter of applying these samples to a filter to produce the effects you desire. The filter structure would be entirely up to you, however given that it's audio that you're dealing with an IIR filter would probably suffice for pretty much everything that you're wishing to do. Quite a few modern sound cards already have the capability to provide these effects on-board (i.e. without additional CPU load) so you'd just need to look into utilizing those features if this is more what you're trying to do.
Bevan Weiss <kaizen__@NOSPAMhotmail.com> wrote in
news:Lx3af.342$xD6.16930@news.xtra.co.nz: 

> krg wrote: >> Posted To: >> comp.dsp, sci.electronics.misc, rec.music.makers.synth >> >> Hello people, >> Getting straight on to the topic, I read a lot about cool >> effects like flanging, reverb, and ... <you got the idea>, and also >> that how you can create these with your own programs in C. I believe >> I know enough C to carry things on my own, but I just need a start. >> All I want to know is how to get those samples of that fav >> song >> of mine that go out of my PC, so that I can really grab them and do >> algebra that sounds good to me and finally play it. >> Thanks for reading my post and further more if you actually >> help. >> > > Not quite the right newsgroup for that question, however... > You'll either need a decoder for the particular file format that > you're wanting to play around with, or you'll have to look into > directly modifying the Direct-Sound (or equivalent) buffers to allow > for the effects you desire. > > Once you've got the buffer containing your samples then it's just a > matter of applying these samples to a filter to produce the effects > you desire. The filter structure would be entirely up to you, however > given that it's audio that you're dealing with an IIR filter would > probably suffice for pretty much everything that you're wishing to do. > > Quite a few modern sound cards already have the capability to provide > these effects on-board (i.e. without additional CPU load) so you'd > just need to look into utilizing those features if this is more what > you're trying to do. >
You might want to join the music-dsp discussion list http://ceait.calarts.edu/mailman/listinfo/music-dsp Rick Lyon's book is excellent. Another good book with audio examples is Introduction to Signal Processing by Sophocles Orfanidis. -- Al Clark Danville Signal Processing, Inc. -------------------------------------------------------------------- Purveyors of Fine DSP Hardware and other Cool Stuff Available at http://www.danvillesignal.com
Al Clark wrote:
> Bevan Weiss <kaizen__@NOSPAMhotmail.com> wrote in > news:Lx3af.342$xD6.16930@news.xtra.co.nz: > > >>krg wrote: >> >>>Posted To: >>>comp.dsp, sci.electronics.misc, rec.music.makers.synth >>> >>>Hello people, >>> Getting straight on to the topic, I read a lot about cool >>>effects like flanging, reverb, and ... <you got the idea>, and also >>>that how you can create these with your own programs in C. I believe >>>I know enough C to carry things on my own, but I just need a start. >>> All I want to know is how to get those samples of that fav >>> song >>>of mine that go out of my PC, so that I can really grab them and do >>>algebra that sounds good to me and finally play it. >>> Thanks for reading my post and further more if you actually >>>help. >>> >> >>Not quite the right newsgroup for that question, however... >>You'll either need a decoder for the particular file format that >>you're wanting to play around with, or you'll have to look into >>directly modifying the Direct-Sound (or equivalent) buffers to allow >>for the effects you desire. >> >>Once you've got the buffer containing your samples then it's just a >>matter of applying these samples to a filter to produce the effects >>you desire. The filter structure would be entirely up to you, however >>given that it's audio that you're dealing with an IIR filter would >>probably suffice for pretty much everything that you're wishing to do. >> >>Quite a few modern sound cards already have the capability to provide >>these effects on-board (i.e. without additional CPU load) so you'd >>just need to look into utilizing those features if this is more what >>you're trying to do. >> > > > You might want to join the music-dsp discussion list > > http://ceait.calarts.edu/mailman/listinfo/music-dsp > > Rick Lyon's book is excellent. Another good book with audio examples is > Introduction to Signal Processing by Sophocles Orfanidis.
Nobody mentioned C-sound. That's free and worth at least twice the price (that's a joke -- it's good). To take sound files apart and create new ones, the format information in libsndfile is invaluable. <http://www.mega-nerd.com/libsndfile/> Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Follow up set to comp.dsp as that is group I follow and am thinking in 
those terms

Bevan Weiss wrote:
> krg wrote: > >> Posted To: >> comp.dsp, sci.electronics.misc, rec.music.makers.synth >> >> Hello people, >> Getting straight on to the topic, I read a lot about cool >> effects like flanging, reverb, and ... <you got the idea>, and also >> that how you can create these with your own programs in C. I believe I >> know enough C to carry things on my own, but I just need a start. >> All I want to know is how to get those samples of that fav song >> of mine that go out of my PC, so that I can really grab them and do >> algebra that sounds good to me and finally play it. >> Thanks for reading my post and further more if you actually >> help. >> > > Not quite the right newsgroup for that question, however... > You'll either need a decoder for the particular file format that you're > wanting to play around with, or you'll have to look into directly > modifying the Direct-Sound (or equivalent) buffers to allow for the > effects you desire. > > Once you've got the buffer containing your samples then it's just a > matter of applying these samples to a filter to produce the effects you > desire. The filter structure would be entirely up to you, however given > that it's audio that you're dealing with an IIR filter would probably > suffice for pretty much everything that you're wishing to do. > > Quite a few modern sound cards already have the capability to provide > these effects on-board (i.e. without additional CPU load) so you'd just > need to look into utilizing those features if this is more what you're > trying to do.
What cards would this be or can you suggest appropriate Google search terms? What effects are possible on which cards? I'm mulling some wild ideas and need grist for the mill so to speak. Practicality is the *LEAST* of my concerns. I am in "brain storming" mode ;}
Richard Owlett wrote:
> Follow up set to comp.dsp as that is group I follow and am thinking in > those terms > > Bevan Weiss wrote: >> krg wrote: >> >>> Posted To: >>> comp.dsp, sci.electronics.misc, rec.music.makers.synth >>> >>> Hello people, >>> Getting straight on to the topic, I read a lot about cool >>> effects like flanging, reverb, and ... <you got the idea>, and also >>> that how you can create these with your own programs in C. I believe I >>> know enough C to carry things on my own, but I just need a start. >>> All I want to know is how to get those samples of that fav song >>> of mine that go out of my PC, so that I can really grab them and do >>> algebra that sounds good to me and finally play it. >>> Thanks for reading my post and further more if you actually >>> help. >>> >> >> Not quite the right newsgroup for that question, however... >> You'll either need a decoder for the particular file format that >> you're wanting to play around with, or you'll have to look into >> directly modifying the Direct-Sound (or equivalent) buffers to allow >> for the effects you desire. >> >> Once you've got the buffer containing your samples then it's just a >> matter of applying these samples to a filter to produce the effects >> you desire. The filter structure would be entirely up to you, however >> given that it's audio that you're dealing with an IIR filter would >> probably suffice for pretty much everything that you're wishing to do. >> >> Quite a few modern sound cards already have the capability to provide >> these effects on-board (i.e. without additional CPU load) so you'd >> just need to look into utilizing those features if this is more what >> you're trying to do. > > What cards would this be or can you suggest appropriate Google search > terms? > > What effects are possible on which cards? > > I'm mulling some wild ideas and need grist for the mill so to speak. > > Practicality is the *LEAST* of my concerns. > I am in "brain storming" mode ;}
The creative audigy cards are the first that come to mind. They have a DSP onboard them which can be programmed to produce almost any effect you can imagine. You would have to do some coding if it was to be something really different than the norm however. I'd tend to agree with the others however that this topic has really been done to death and that it would be more efficient of your time if you just looking into software that has already been written to perform the features you are after. If you're doing it for just knowledge's sake, then you should probably start right at the beginning and look into signal processing theory. Then go through filter design/implementation etc. That will certainly get you to were you want to know :)
I don't think that this newsgroup is a terribly inappropriate choice. I
consider ourselves, as "music makers," to differ from "musicians" in
the sense that synth players are by necessity at least somewhat well
versed in signal theory. You don't have to know what a filter or an
envelope is to turn on a synth and play presets, but if you don't like
to edit, you can probably find more of what you want in another group.

I think the general character of the discussions here confirms this
opinion.

More technical forums will offer a lot of information, but it'll be
tougher to find the musically useful stuff. We live in a sort of a DMZ
between arts and technology, and most people feel safer on one side or
the other.

Bevan Weiss wrote:
> Richard Owlett wrote: > >> Follow up set to comp.dsp as that is group I follow and am thinking in >> those terms >> >> Bevan Weiss wrote: >> >>> krg wrote: >>> >>>> Posted To: >>>> comp.dsp, sci.electronics.misc, rec.music.makers.synth >>>> >>>> Hello people, >>>> Getting straight on to the topic, I read a lot about cool >>>> effects like flanging, reverb, and ... <you got the idea>, and also >>>> that how you can create these with your own programs in C. I believe I >>>> know enough C to carry things on my own, but I just need a start. >>>> All I want to know is how to get those samples of that fav song >>>> of mine that go out of my PC, so that I can really grab them and do >>>> algebra that sounds good to me and finally play it. >>>> Thanks for reading my post and further more if you actually >>>> help. >>>> >>> >>> Not quite the right newsgroup for that question, however... >>> You'll either need a decoder for the particular file format that >>> you're wanting to play around with, or you'll have to look into >>> directly modifying the Direct-Sound (or equivalent) buffers to allow >>> for the effects you desire. >>> >>> Once you've got the buffer containing your samples then it's just a >>> matter of applying these samples to a filter to produce the effects >>> you desire. The filter structure would be entirely up to you, >>> however given that it's audio that you're dealing with an IIR filter >>> would probably suffice for pretty much everything that you're wishing >>> to do. >>> >>> Quite a few modern sound cards already have the capability to provide >>> these effects on-board (i.e. without additional CPU load) so you'd >>> just need to look into utilizing those features if this is more what >>> you're trying to do. >> >> >> What cards would this be or can you suggest appropriate Google search >> terms? >> >> What effects are possible on which cards? >> >> I'm mulling some wild ideas and need grist for the mill so to speak. >> >> Practicality is the *LEAST* of my concerns. >> I am in "brain storming" mode ;} > > > The creative audigy cards are the first that come to mind. They have a > DSP onboard them which can be programmed to produce almost any effect > you can imagine. You would have to do some coding if it was to be > something really different than the norm however. >
I should have more carefully stated my question, especially considering tread I tacked it to [thread had triggered musing] I'm interested in filtering a microphone input channel before its sent on to some "off the shelf" [commercial or open source] speech recognition software that expects to see input from a 'standard' sound card. The intention is to offload my filtering experiments from main cpu. I repeat that this is "brain storming" mode as I won't have time to really dive in until I retire in a few years.