Re: [music-dsp] okay, so i got my STM32F4-Discovery board in the mail today.

2012-04-13 Thread Julian Schmidt
here is the eclipse tutorial i used to get the free toolchain with GDB support working under windows http://shareee.netne.net/wordpress/?p=5 there you will also find a simple LED blink example project. afaik CodeSourcery lite and Yagarto don't support the hardware FPU at the moment. They

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-13 Thread Julian Schmidt
It is, in fact, an aliasing problem. I changed the code to use a sine table wich works fine. Then I implemented a phase distortion saw oscillator similar to the casio CZ series. when i increase the harmonic content (morph more and more to saw) I get the clicks again. But this is a special

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
that frequencies that don't have an integer-sample period will look different each cycle. Ross. On 9/04/2012 11:28 PM, Julian Schmidt wrote: Hello all, I'm trying to get an oscillator running on the STM32F4 discovery board. I'm sending my audio with 44100Hz via I2S to the onboard codec. However

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
oscillator at full-scale amplitude. Try reducing the wavetable amplitude. -olli On Mon, Apr 9, 2012 at 4:28 PM, Julian Schmidt julian_schm...@chipmusik.de wrote: phase += phaseInc(440); // calculate the phase increment for 440 hz and add it to phase if(phase= TABLESIZE) phase -= TABLESIZE; return

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
, what size? On Apr 9, 2012, at 6:28 AM, Julian Schmidt wrote: Hello all, I'm trying to get an oscillator running on the STM32F4 discovery board. I'm sending my audio with 44100Hz via I2S to the onboard codec. However I'm experiencing strange problems. my code ist quite straight forward

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
Am 09.04.2012 19:16, schrieb robert bristow-johnson: i hadn't heard of this dev board before. at http://www.st.com/internet/evalboard/product/252419.jsp it says that the single unit prices is US$14.9 . is that right? that's nearly free. yes exactly. it's cheaper than buying the cortex m4

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
. julian Am 09.04.2012 20:28, schrieb Olli Niemitalo: On Mon, Apr 9, 2012 at 7:17 PM, Julian Schmidt julian_schm...@chipmusik.de wrote: setting the phase increment to an integer value solves the problem. [...] adding linear or cubic interpolation makes it a little better, but the pulsing

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
here are some screenshots... the beating bell shape on 440Hz sinus with 84 harmonics http://i.imgur.com/B4s0M.png a simple sine table 220Hz http://i.imgur.com/hPKj1.png julian Am 09.04.2012 22:32, schrieb Julian Schmidt: I think you win! ;) first i tried switching to integer phase

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
Am 09.04.2012 23:22, schrieb Olli Niemitalo: On Mon, Apr 9, 2012 at 11:32 PM, Julian Schmidt julian_schm...@chipmusik.de wrote: I really think it is an aliasing problem. but not due to the wrong wavetable content, but due to a cheap audio codec with poor filters. [...] even when i output