Re: [music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!
2015-04-01 22:19 GMT+08:00 robert bristow-johnson r...@audioimagination.com : On 4/0/15 6:24 AM, Max wrote: WOW, I have never seen such a date ( 4/0/15 )[?]. I was glad to hear that Mathworks has finally corrected their array indexing scheme to start with 0 instead of 1, so they're now compatible with all the other languages out in the real world. Apparently they knew all along that array indexes actually start at zero, but a bug in the initial release of the code caused the 'off by one' problem. An admission of such a glaring math error would have been disastrous, so they claimed that they meant to do it. Mark this day on your calendar as the day when corresponding source code needs to be corrected. And perhaps the day that I get hunted down by some humorless Mathworks salesman :-) thought i would cross-post this announcement from comp.dsp . -- r b-j r...@audioimagination.com Imagination is more important than knowledge. -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
Re: [music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!
proud zhu: 2015-04-01 22:19 GMT+08:00 robert bristow-johnson r...@audioimagination.com : On 4/0/15 6:24 AM, Max wrote: WOW, I have never seen such a date ( 4/0/15 )[?]. Well, by that zero-based logic surely the date should be 3/0/14? -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
Re: [music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!
Seems like MathWorks also changed calendar indexing … ;-) Steffan On 02.04.2015|KW14, at 10:18, proud zhu proudzhu@gmail.com wrote: WOW, I have never seen such a date ( 4/0/15 )[?]. -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
Re: [music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!
Den 02.04.15 20:47, skrev Laszlo Toth: On Thu, 2 Apr 2015, Phil Burk wrote: Speaking of zero based indexing, my neighbor's street address is 0 Meadowood Drive. There was a 4 Meadowood Drive already existing. They left room to build one more house at the end of the street. But instead of building a house they built two cottages. So they had to number them 0 and 2. Weird. Here the standard solution for this is to number the new houses as 2/a and 2/b. I don't know how they would handle if the two new houses were built in place of a house already numbered as 2/a... This could be solved by numbering them 2/a and 2/@. Well, seriously, they could be numbered 2/a and 2/c, thus not interferring with the existing 2/b. The ordering of the houses along the street would be a bit weird, but still... Henrik -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
Re: [music-dsp] Calculating e^(i*phase) * (H + H')
Hi MF, It is difficult for me to understand your question or the context of your question. I also don't get the derivative part. One question: are H and H' complex conjugate, and respectively defined for positive and negative frequencies? It would be helpful to know what you are trying to do, or at least which paper are you trying to learn from. Cheers, Esteban On 4/1/2015 4:07 PM, MF wrote: Hi Forum, I am trying to implement a formula from a paper: Y(w) = e^(i*phase) * (H(w) + H’(w)) Where H is the fourier transform of a window function h (a blackman window in my case), H’ is the derivative of H (in the paper, H and H' are called spectrum motifs). A signal will then be generated from ifft(Y). In the paper it says: In practice, the signals to be synthesized are real, and the inverse FFT algorithm only uses the positive frequency half spectrum, *so only one of the two spectral motifs must be synthesized*. I don’t understand what it means by “only one of the two spectral motifs must be synthesized”. How do I decide which spectral motive to use? ps. I simplified the formula for simplicity. But in case you want to see the complete formula: Y(wk) = e^(i*phase) * (0.5 * A * H(wk - wf) + 0.5* B *H’(wk - wf)) for |wk - wf| = K * 2pi / N ps2. sorry I just by accident posted the same question without a subject an hour ago, is there a way to delete it from the archive? Thanks in advance!!! MF -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp -- Esteban Maestre CIRMMT/CAML - McGill Univ MTG - Univ Pompeu Fabra http://ccrma.stanford.edu/~esteban -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
[music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!
On 4/2/2015 10:18 AM, proud zhu wrote: On 4/0/15 6:24 AM, Max wrote: WOW, I have never seen such a date ( 4/0/15 )[?]. The typical error of those who cannot differentiate between cardinal numbers and ordinal numbers... 73 Alberto I2PHD --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
Re: [music-dsp] Calculating e^(i*phase) * (H + H')
On Wed, Apr 1, 2015 at 4:07 PM, MF ukel...@gmail.com wrote: ps2. sorry I just by accident posted the same question without a subject an hour ago, is there a way to delete it from the archive? I can go in and edit the archive files. But I wouldn't worry about it! best, douglas -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
Re: [music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!
Speaking of zero based indexing, my neighbor's street address is 0 Meadowood Drive. There was a 4 Meadowood Drive already existing. They left room to build one more house at the end of the street. But instead of building a house they built two cottages. So they had to number them 0 and 2. My wife doesn't understand why I am so jealous of that street address. My neighbor says he likes it but he keeps getting forms returned asking him to correct his street address. Phil Burk -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp
Re: [music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!
On 4/2/15 12:20 PM, Phil Burk wrote: Speaking of zero based indexing, my neighbor's street address is 0 Meadowood Drive. There was a 4 Meadowood Drive already existing. They left room to build one more house at the end of the street. But instead of building a house they built two cottages. So they had to number them 0 and 2. what if they built 3 cottages? would one address be -2? My wife doesn't understand why I am so jealous of that street address. My neighbor says he likes it but he keeps getting forms returned asking him to correct his street address it's like the perfect two-letter .com domain name. -- r b-j r...@audioimagination.com Imagination is more important than knowledge. -- dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links http://music.columbia.edu/cmc/music-dsp http://music.columbia.edu/mailman/listinfo/music-dsp