(Python) audio feedback w/ continuous data stream @ 45 Hz
- or -
Post a project like this1796
€200(approx. $215)
- Posted:
- Proposals: 3
- Remote
- #2389863
- Completed
Description
Experience Level: Expert
Estimated project duration: 1 day or less
I have a piece of python code that generates a continuous signal stream based upon sensor input with an update frequency of 45Hz. It performs some calculations and then spits out a float number per iteration.
I need a (preferably python) script that generates audio feedback, taking this 45Hz signal as input. The script must be threaded to prevent data acquisition from stalling. The audio feedback must be the following and must be configurable using easy to read settings.
1) A beeping sound of which the beep frequency and duration can be preset (or takes a beep audio file as input). The pause length between beeps is governed by the signal input. Note: this functions very much like a car parking sensor.
2) A continuous sinusoidal tone of which the frequency is governed by the signal input. Minimum and maximum fequencies should be configurable. Note that this would require ad-hoc joining of two sinuses as we do not want to 'hear' the sound skipping from one frequency to another. The behavior should be roughly comparable to https://www.szynalski.com/tone-generator/ sliding the bar from left to right or reverse.
Any discussion on functionality / implementability of 1) or 2) is welcome within scope of this project.
Pseudocode for the required script:
[External script] - Continuous data acquisition at 45Hz; pass signal to [Required Script]
[Required script] - Is called each iteration with the output of external script [Signal Input]
[Audio option 1] - Threaded:
For [Signal Input] determine [Pause Duration]
Generate beep with preset [frequency] and [duration]
Repeat beep until new and different input is obtained
Repeat until exit
[Audio option 2] - Threaded:
For [Signal Input] determine [Sine Frequency]
Generate continuous sine with [Sine Frequency]
Play Sine until new and different input is obtained
If (new and different input)
Join previous and new sine in transition of [X] ms
Play new sine
Repeat until exit
Parts of the project are open for discussion so please let me know which parts you feel comfortable with.
I need a (preferably python) script that generates audio feedback, taking this 45Hz signal as input. The script must be threaded to prevent data acquisition from stalling. The audio feedback must be the following and must be configurable using easy to read settings.
1) A beeping sound of which the beep frequency and duration can be preset (or takes a beep audio file as input). The pause length between beeps is governed by the signal input. Note: this functions very much like a car parking sensor.
2) A continuous sinusoidal tone of which the frequency is governed by the signal input. Minimum and maximum fequencies should be configurable. Note that this would require ad-hoc joining of two sinuses as we do not want to 'hear' the sound skipping from one frequency to another. The behavior should be roughly comparable to https://www.szynalski.com/tone-generator/ sliding the bar from left to right or reverse.
Any discussion on functionality / implementability of 1) or 2) is welcome within scope of this project.
Pseudocode for the required script:
[External script] - Continuous data acquisition at 45Hz; pass signal to [Required Script]
[Required script] - Is called each iteration with the output of external script [Signal Input]
[Audio option 1] - Threaded:
For [Signal Input] determine [Pause Duration]
Generate beep with preset [frequency] and [duration]
Repeat beep until new and different input is obtained
Repeat until exit
[Audio option 2] - Threaded:
For [Signal Input] determine [Sine Frequency]
Generate continuous sine with [Sine Frequency]
Play Sine until new and different input is obtained
If (new and different input)
Join previous and new sine in transition of [X] ms
Play new sine
Repeat until exit
Parts of the project are open for discussion so please let me know which parts you feel comfortable with.
Bram S.
100% (1)Projects Completed
1
Freelancers worked with
2
Projects awarded
100%
Last project
17 May 2019
Netherlands
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies