Shop OBEX P1 Docs P2 Docs Learn Events
FunnyVoice outputs doubled frequency of microphone input. Uses Propeller Demobo — Parallax Forums

FunnyVoice outputs doubled frequency of microphone input. Uses Propeller Demobo

Christof Eb.Christof Eb. Posts: 1,199
edited 2010-02-26 19:42 in Robotics
· This works with the propeller demo board. It doubles the input frequency. Sounds like Donald Duck or so.

· The adio from the microphone is read in the task ADDAC,
· passed to the task DoubleFreq via sslot(0)
· and passed back via sslot(1). The frequency is doubled before.
· ADDAC outputs the stream.

· DoubleFreq buffers the input stream into a ringbuffer.
· It detects the frequency (actually cycle duration) searching for zerocrossings.
· A region of the buffer between 2 full waves is output omitting every second sample.

· There is a simple oszilloscope via terminal so see the output (or input) waves.
· Input level can be seen on the LEDS.
· Thanks especially for the great PropBasic and its IDE!

· Ideas, Comments?
· Enjoy! Christof

Comments

  • HumanoidoHumanoido Posts: 5,770
    edited 2010-02-26 19:42
    Very nice! Will this also work to use half the frequency
    for a deep voice?

    humanoido
Sign In or Register to comment.