Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-13 Thread Julian Schmidt
yes, this is quite similar to the clicks i've got ;) I said 2-3 times per second, not every 2-3 secons. julian Am 10.04.2012 19:06, schrieb Olli Niemitalo: On Tue, Apr 10, 2012 at 6:54 PM, Nigel Redmon wrote: "Clicks", especially 2-3 seconds apart doesn't describe aliasing Here are clicks cr

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 cas

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 only

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-10 Thread Julian Schmidt
the signal at 1kHz and its harmonics is digital noise coming from the USB power supply. it is gone if i connect headphones or my Oscilloscope instead of my pc soundcard. julian Am 10.04.2012 12:02, schrieb Tim Goetze: [Julian Schmidt] here are some screenshots... the beating bell shape on

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-10 Thread Julian Schmidt
So far I havn't inspected static waveforms with an fft so closely. I'm still waiting for my ordered midi uart parts for the board, so i don't have anymated waveforms for now ;) julian Am 10.04.2012 00:00, schrieb Olli Niemitalo: On Tue, Apr 10, 2012 at 12:25 AM, Julian Schmid

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 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 a single 440hz sine i get

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
. julian Am 09.04.2012 20:28, schrieb Olli Niemitalo: On Mon, Apr 9, 2012 at 7:17 PM, Julian Schmidt 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 is still very audible. [...] The

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
yes. that was the first place i looked, the codec datasheet. ;) limiter, de-emphasis, tone control are all turned off gain is about 50% of the possible amplitude. julian Am 09.04.2012 19:38, schrieb Gwenhwyfaer: On 09/04/2012, Julian Schmidt wrote: yes exactly. it's cheaper than buyin

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
if so, 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 qu

Re: [music-dsp] OSC problem on STM32F4Discovery

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

Re: [music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
le accurate increment. That won't change the fact 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 boar

[music-dsp] OSC problem on STM32F4Discovery

2012-04-09 Thread Julian Schmidt
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: phase += phaseInc(440); // calculate the phase increment for 440 hz a