[Csnd] Csound and Math
Date | 2014-04-28 12:19 |
From | Askwazzup |
Subject | [Csnd] Csound and Math |
Good day Gentelmen. I'm reading the csound book chapter about gen functions and there are all these mentions about chebyshev polynomial functions, quasi-guassian curves, Fourier transform etc. Now i have no idea what those are and of their use in csound or anywhere else (well i kind of know that fourrier has something to do with adding sines to make a complex wave, but the math is beyond me). My math backround is mostly non existant (6th-7th grade? not even sure), so i'm not sure how much of it i have to know to further my csound knowledge, i guess i could function with the knowledge that i have now (for music purposes), somewhat, but as i stated, i want to know as much as i can. So with that in mind it's kind of hard to read some sections, where i don't even understand what is being talked about. My questions is, do i, and how much do i need to know those exotic terms in csound and where should i start. I'm currently reading Musimathics first volume where it lightly touches aspects of trigonometry (haven't read it all yet) and trying to brush up on some basic caveman algebra in youtube videos. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 12:28 |
From | Michael Gogins |
Subject | Re: [Csnd] Csound and Math |
There is no such thing as too much math. That said, what you really need to know for making music depends on what you are trying to do. To some considerable extent, you can substitute hands-on experience with unit generators for math. Better yet, if you have access to something like a modular analog synthesizer with electronic modules that plug together with actual patch cords, this gives an unparalleled visceral understanding of many concepts in electroacoustic music. I find that my long-ago experience with the Buchla and Steiner-Parker synthesizers was enormously helpful, more so than monkeying with Csound instruments and opcodes.
You can have a similar experience using the Analog Box software synthesizer, which provides a very good simulation of an analog modular synthesizer with patch cords. This is a freebie.There are various commercial forms of this kind of software. I used to use Reaktor, which was pretty good.
There are a number of helpful YouTube videos. I was watching one a few weeks ago about digital sampling that covered some very basic concepts in real depth without a lot of math. I'll see if I can forward you the link.
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Apr 28, 2014 at 7:19 AM, Askwazzup <aistiskaikaris@mail.com> wrote: Good day Gentelmen. |
Date | 2014-04-28 12:38 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-04-28 12:53 |
From | Askwazzup |
Subject | [Csnd] Re: Re: |
Well i have nothing against learning math, i actually want to learn it very much, since i want to break that damn curse that plagued me from my childhood, where i thought that i'm just not talented (a term i don't use anymore) enough to understand math (i also thought that math is just useless dry formulas). The main problem however is that i'm not sure how, where and how much effort has to be put in... hm, i don't even know what i need to know, there are many branches of math and all of them would take me a life time (which i don't mind, i just want to at least use it in this lifetime he he). I actually tried to read various books on algebra, geometry and studied a bit of math in college (terrible experience not knowing anything and getting shouted at by the lecturer). But i am always missing some things, feeling confused and don't understand where the particular math is used in real world. And John, did you mean The Audio Programming Book? -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740p5734744.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 12:54 |
From | joachim heintz |
Subject | Re: [Csnd] Csound and Math |
musimathics by gareth loy is an excellent book in my opinion. the second volume is also about fourier transform, if i recall correctly. j Am 28.04.2014 13:19, schrieb Askwazzup: > Good day Gentelmen. > > I'm reading the csound book chapter about gen functions and there are all > these mentions about chebyshev polynomial functions, quasi-guassian curves, > Fourier transform etc. Now i have no idea what those are and of their use in > csound or anywhere else (well i kind of know that fourrier has something to > do with adding sines to make a complex wave, but the math is beyond me). My > math backround is mostly non existant (6th-7th grade? not even sure), so i'm > not sure how much of it i have to know to further my csound knowledge, i > guess i could function with the knowledge that i have now (for music > purposes), somewhat, but as i stated, i want to know as much as i can. So > with that in mind it's kind of hard to read some sections, where i don't > even understand what is being talked about. > > My questions is, do i, and how much do i need to know those exotic terms in > csound and where should i start. I'm currently reading Musimathics first > volume where it lightly touches aspects of trigonometry (haven't read it all > yet) and trying to brush up on some basic caveman algebra in youtube videos. > > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > > > Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 13:04 |
From | Askwazzup |
Subject | [Csnd] Re: Csound and Math |
joachim-3 wrote > musimathics by gareth loy is an excellent book in my opinion. the second > volume is also about fourier transform, if i recall correctly. > j Oh yes, i love it, though i'm not sure if i will be able to crack the second volume with my current knowledge. And even though there are no exercises in the first volume, i try to write down and play around with the examples, but i feel that one has to write out many more exercises to get a good understanding on the subjects. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740p5734746.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 13:42 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-04-28 14:18 |
From | Askwazzup |
Subject | [Csnd] Re: Re: |
So, getting back on the original question. How about those funky terms (Chebyshev polynomials etc). Will i need to know calculus to crack them, or is precalculus trigonometry enough. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740p5734748.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 15:11 |
From | Askwazzup |
Subject | [Csnd] Re: Re: |
|
Date | 2014-04-28 15:12 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-04-28 15:15 |
From | "\\js" |
Subject | Re: [Csnd] Re: Re: |
On 4/28/14, 7:53 , Askwazzup wrote: > Well i have nothing against learning math, i actually want to learn it very > much, since i want to break that damn curse that plagued me from my > childhood, where i thought that i'm just not talented (a term i don't use > anymore) enough to understand math (i also thought that math is just useless > dry formulas). this is an excellent start, forgetting about what you have been told about your abilities and just diving in. as others have said, once you can open up to it, there is no end to fascination. if you are going to work with computer music, though, you've pretty much got to have some understanding if you want to do more than tweak controls that others have designed. nothing wrong with this, and the musical output can be very nice this way. but you have to be kinda lucky ... i'd suggest you start with something that interests you. as you may or may not know, there are only about a zillion ways you can apply math to the making of interesting sounds to listen to. you will probably have to keep going back, to learn building blocks, but this too will end eventually. and then you'll know ... but as long as you keep working at it, you will grow. and your music will change too ... |
Date | 2014-04-28 15:32 |
From | Askwazzup |
Subject | [Csnd] Re: Re: |
jpff wrote > Depends what you want to do with them! Their interesting properties > come from calculus. > > They are generated by simple recurrence relations > > T_0(x) = 1 > T_1(x) = x > T_{n+1}(x) = 2xT_n(x) - T_{n-1}(x) > > or the more complex > > T_n(x)=cos(n arccos(x)) > > but what makes them interesting is > a) they are orthoginal (weight sqrt{1-x^2} ) > b) they are useful in approximating other functions. > c) etc > > The wikipedia page is rather long and too complicated I guess. > > If you are starting to get maths for audio really you should start > with the complex numbers. Tried to follow what you wrote in the first paragraph, but most of what i kind of understood is that the function redefines itself . Don't know much about recurrence or what does orthoginal mean, but thanks. Complex numbers as in PI, E, sqrt2? \js wrote > you will probably have to keep going back, to learn building blocks, but > this too will end eventually. and then you'll know . Yeah, i pretty much had to do it this way with music theory, since i started out from 0. I guess this will be the same - no work no gain. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740p5734752.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 15:38 |
From | "\\js" |
Subject | Re: [Csnd] Re: Re: |
On 4/28/14, 10:32 , Askwazzup wrote: > no work no gain. i know it's not particularly popular, but this has been my experience. |
Date | 2014-04-28 15:40 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: Re: |
If you are serious about learning math, take some courses with good teachers. Finding the good teachers is the hard part. The reason I say this is that to learn math you have to do the problems at the end of each chapter, and it take extraordinary self-discipline to do that on one's own.
What you need for understanding audio signal processing in reasonable depth is algebra, polynomials, Fourier transforms and digital filters, and the beginnings of differential equations. One book that looked good to me A Digital Signal Processing Primer http://www.cs.princeton.edu/~ken/. Here's the analog box I was talking about: https://code.google.com/p/analog-box/.
The YouTube video about digital sampling is https://www.youtube.com/watch?v=zakAgGXTClU. There are a number of good videos by Erik Bardy.
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Apr 28, 2014 at 7:53 AM, Askwazzup <aistiskaikaris@mail.com> wrote: Well i have nothing against learning math, i actually want to learn it very |
Date | 2014-04-28 15:44 |
From | Askwazzup |
Subject | [Csnd] Re: Re: |
Michael Gogins-2 wrote > If you are serious about learning math, take some courses with good > teachers. Finding the good teachers is the hard part. The reason I say > this > is that to learn math you have to do the problems at the end of each > chapter, and it take extraordinary self-discipline to do that on one's > own. > > What you need for understanding audio signal processing in reasonable > depth > is algebra, polynomials, Fourier transforms and digital filters, and the > beginnings of differential equations. > > One book that looked good to me A Digital Signal Processing Primer > http://www.cs.princeton.edu/~ken/. > > Here's the analog box I was talking about: > https://code.google.com/p/analog-box/. > > The YouTube video about digital sampling is > https://www.youtube.com/watch?v=zakAgGXTClU. There are a number of good > videos by Erik Bardy. > > Regards, > Mike Thank you Michael, i will look it up. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740p5734755.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 15:52 |
From | Anders Genell |
Subject | Re: [Csnd] Re: Re: |
Complex numbers are usually denoted by an i or a j, which is defined as i^2=-1 A ordinary (not complex) number is either positive or negative, and if you multiply such a number with itself it is always positive (-1 * -1 = 1 and 1 * 1 = 1), so there is no ordinary number that you can multiply by itself and obtain a negative number. Enter the complex numbers. They seem strange but are very useful for many somewhat advanced problems. One such problem is the solution to the wave equation which governs the properties of sound waves.
Othogonal functions (such as Chebyshev as well as sin and cos) are functions that in a simplified analogy are independant in the sam way that width, length and height are independent. You can move straight up (e.g. in an elevator) without needing to move left, right or forward,backward. Orthogonal functions are also useful as solutions to complicated equations of motions, thermodynamics and not the least sound (or quantum physics, which also uses the wave equation). So, in essence, chebyshev funtions are good for e.g. physical modelling (e.g. make tones vary in a manner descibed by how heat spreads in a solid object) or for just having numbers varying in a fashion more interesting than a straight line.
John's example above is how to calculate numerical values of the chebyshev function, and is (i assume) how it is implemented in the csound source code. Now I'll let John and his esteemed colleagues here point out all my errors - I'm not a mathematician... Regards, Anders On Mon, Apr 28, 2014 at 4:32 PM, Askwazzup <aistiskaikaris@mail.com> wrote: jpff wrote |
Date | 2014-04-28 16:04 |
From | Askwazzup |
Subject | [Csnd] Re: Re: |
genell wrote > Complex numbers are usually denoted by an i or a j, which is defined as > i^2=-1 > A ordinary (not complex) number is either positive or negative, and if you > multiply such a number with itself it is always positive (-1 * -1 = 1 and > 1 > * 1 = 1), so there is no ordinary number that you can multiply by itself > and obtain a negative number. Enter the complex numbers. They seem strange > but are very useful for many somewhat advanced problems. One such problem > is the solution to the wave equation which governs the properties of sound > waves. > > Othogonal functions (such as Chebyshev as well as sin and cos) are > functions that in a simplified analogy are independant in the sam way that > width, length and height are independent. You can move straight up (e.g. > in > an elevator) without needing to move left, right or forward,backward. > Orthogonal functions are also useful as solutions to complicated equations > of motions, thermodynamics and not the least sound (or quantum physics, > which also uses the wave equation). So, in essence, chebyshev funtions are > good for e.g. physical modelling (e.g. make tones vary in a manner > descibed > by how heat spreads in a solid object) or for just having numbers varying > in a fashion more interesting than a straight line. > > John's example above is how to calculate numerical values of the chebyshev > function, and is (i assume) how it is implemented in the csound source > code. > Now I'll let John and his esteemed colleagues here point out all my errors > - I'm not a mathematician... > > Regards, > Anders Ah, i was mixing up complex numbers with irrational numbers.. Thanks, that cleared up some things (both paragraphs). So i guess part of why we need this is because the the sinusoid moves between values of - to + and so the calculation needs complex numbers? -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740p5734757.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-28 16:10 |
From | Anders Genell |
Subject | Re: [Csnd] Re: Re: |
Well, sort of... If complex number are on the vertical axis and real number are on the horizontal, the resulting plane (called the z-plane) is a tool that is essential for all matters of problems. A problem that is mapped onto that plane (by using what is called z-transform) allows for its solution where it otherwise would be impossible.
Also, the m ost beautiful equation in the world is related to complex numbers: Regards, Anders On Mon, Apr 28, 2014 at 5:04 PM, Askwazzup <aistiskaikaris@mail.com> wrote: genell wrote |
Date | 2014-04-28 18:01 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-04-28 23:20 |
From | Alan Peter Fitch |
Subject | Re: [Csnd] Re: Re: |
On 28/04/14 16:04, Askwazzup wrote: |
Date | 2014-04-29 02:38 |
From | luis jure |
Subject | Re: [Csnd] Re: |
el 2014-04-28 a las 18:01 jpff@cs.bath.ac.uk escribió: > I do agree with Michael about the Princeton book of audio DSP. I > started there (DSP not being in the Maths Tripos) and my students, > both maths and non maths found it a good introduction. yes, steiglitz is a very good book indeed. i always recommend very specially steven smith's The Scientist and Engineer's Guide to Digital Signal Processing. you can buy the printed book, or download it in pdf format for free from here: http://www.dspguide.com/ Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-29 12:30 |
From | Askwazzup |
Subject | [Csnd] Re: Re: |
Already reading the first chapter, thank you Luis. It's a shame that our lives are so short, the books that i want to read (and things i want to learn from them) could make a separate book just out of the titles alone. If by any chance, anyone here is a vampire... i'm all in for the ride... just throwing that out here he, he.. Alan Peter Fitch wrote > It is possible to get some idea of what the filters do just be reading > up on how they were arrived at (what problems they were trying to > solve), even without the maths. > > Chebyshev filters were designed to optimise matching to a particular > frequency response *but* allowing ripple in the passband > > Elliptic filters have very good roll-off, and equal amounts of ripple in > the passband and stopband. By ripple you mean some sort of amplitude changes? I'm not really sure what that means. Thank you, great pointers. For some reason i never thought about these details, i just knew what a bandpass, cutoff freqauency, or resonance meant. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-and-Math-tp5734740p5734789.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-29 20:19 |
From | Alan Fitch |
Subject | Re: [Csnd] Re: Re: |
On 29/04/14 12:30, Askwazzup wrote: > |