Questions tagged [audio]

Challenges relating to producing an audible output or an audio file which could then be played. If a challenge relates to textual representation of sound, it may fit better in [tag:music].

Filter by
Sorted by
Tagged with
10
votes
3answers
459 views

Make your keyboard into a keyboard

Task You should write a program that when a button is pressed, it outputs a different sound for each key. The keys that you will use are: ...
18
votes
6answers
733 views

Lossy or Lossless?

Given an audio file, determine whether it is encoded in a lossy format or a lossless format. For the purposes of this challenge, only the following formats need to be classified: Lossy AC3 AMR AAC ...
15
votes
5answers
1k views

Play the sound of Pi

Yup, you read the title right. play the sound of pi. More specifically, for every digit of pi in the first 1000, map it to a musical note and output the resulting melody to a file. Basically, each ...
29
votes
8answers
1k views

Play some of Pachelbel's Canon

Output the following excerpt from Pachelbel's Canon in D as audio: Rules Any format/encoding may be used, so long as a codec existed prior to the creation of this challenge Any instrument (a real ...
15
votes
19answers
2k views

Shortest Konami Code

The Problem You must write a program that, when the Konami Code is typed in during runtime, prints the string "+30 lives" and sounds a noise of your choice from ...
1
vote
1answer
311 views

Make some noise-cancelling headphones

I am in desperate need of some ear defenders, so I can program in peace. Unfortunately, I don't have ear defenders. But I do have a pair of headphones, a microphone and a microcontroller, so I thought ...
36
votes
25answers
3k views

Building a Metronome

Introduction Some days ago I needed a metronome for something. I had none available so I downloaded an app from the App Store. The app had a size of 71 MB!!! 71 MB for making tic-toc...?! So code-...
25
votes
20answers
2k views

Output a sound of a certain frequency

This is a rather simple challenge, but I couldn't find any question that was really similar to it. The challenge is to take a frequency in using STDIN or an equivalent, and then output a tone that ...
31
votes
10answers
2k views

Play “Taps”​​​​

Today, November 11, 2015, is Veterans Day in the United States. "Taps" is the bugle call played at U.S. military funerals: ("Taps" on SoundCloud from vtmiller) It is a ...
8
votes
2answers
616 views

Play an RTTTL song

User quartata posted this challenge, but he neglected the fact that, for whatever reason, he's not able to play MIDI files on his computer. Let's help him out by writing a full program that reads a ...
14
votes
1answer
391 views

Make a (software) modem!

Objective Design a modulator/demodulator pair to accurately transmit data as quickly as possible over simulated plain old telephone service (POTS). Steps Generate some random (...
23
votes
4answers
1k views

Play a Song for Me

Challenge Given guitar tablature you must output the song represented by the tab. This may be to the speakers of your computer or to an audio file (.wav, .mp3, .midi, .aiff, etc.). There will also be ...
11
votes
4answers
455 views

The Sound of Words

People have written many things allowing one thing to be visualized as another. Now I propose being able to translate letters to music! Its your job to write a program that takes a text file and ...
33
votes
14answers
3k views

Morse the New Year

This is Weekly Challenge #1. Theme: Audio Processing Your task is to write a program, which writes an audio file to disc (in a format of your choice), which contains the Morse code for ...
7
votes
4answers
1k views

Build a Primitive Root Diffuser

Introduction When a room has bare, parallel walls, it can create unpleasant repeating acoustic reflections (echoes). A diffuser is a device mounted on a wall which creates a blocky surface of many ...
32
votes
1answer
2k views

Voice recognition: “Yes” or “No”?

Task Implement a program in minimum bytes of source or binary code that does voice recognition of a voice sample (me saying "yes", "yeah" or "no" in voice or in whisper, plainly or quirkily) based on ...
24
votes
1answer
2k views

Print the lyrics to “Twinkle Twinkle Little Star”

Your goal is to print the lyrics to the song "Twinkle Twinkle Little Star" as each note is played. The computer's microphone will hear notes. If the pitch (but not necessarily the length) of the note ...
15
votes
7answers
2k views

Generate white noise

The challenge is: generate an audio file made of white noise. Requirements and instructions: Your program must generate an audio file containing only white noise, meaning its intensity is the same ...
6
votes
3answers
346 views

Concert tuning WAV

I used to play the oboe, the instrument that is, for some reason, used to tune the orchestra to A440. Anyways, continuing on with my story, I was bad at it and quit. Write a program that generates a ...
11
votes
2answers
687 views

Just one note - musical instrument synthesizing [closed]

Statement The task is to synthesize sound (one note played) of some musical instrument (of your choice) using function in some general purpose programming language (of your choice). There are two ...
15
votes
1answer
1k views

Speak digits from 0 to 9 aloud

Inspired by this question from electronics.SE, here's a challenge for you: Write a program or subroutine that takes in a sequence of decimal digits (0 to 9) and speaks them aloud, without using an ...
4
votes
1answer
410 views

PCM Wave time stretch

Write the smallest program performs a time stretch operation on a PCM Wave (.wav) file. Rules: Parameter input will by via whatever standard argument mechanism your language comes with, e.g. ...
6
votes
5answers
2k views

Morse code generator in sound

Inspired by the Morse code question, and the Twinkle Twinkle little star question, write a program to accept a letter and generate the morse code audio for that letter.
27
votes
15answers
11k views

Twinkle Twinkle Little Star

Write a program to play the popular English nursery rhyme. (This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. Attribution: Helix84 at the English language ...