0
$\begingroup$

I want to write an audio file (the particular format does not matter to me) by hand, i.e. for each frame I would write manually which frequencies are present at which intensity. How do I do this? Is there some specialized software for this?

$\endgroup$
3
  • $\begingroup$ I can't flag (when I press 'Flag' it doesn't do anything) $\endgroup$
    – user34413
    Oct 9 at 13:57
  • $\begingroup$ it looks like you didn't take the time to actually register, so stack exchange has no idea the two posts are supposed to be the same person. I've no idea how you get round that. $\endgroup$
    – Tetsujin
    Oct 9 at 14:04
  • $\begingroup$ It is not clear at all what you want to do. In it's current state, a valid solution to your problem (since you state that the file format is irrelevant) would be: 1. open a text editor, 2. enter numbers or letters representing "frequencies" and their "intensity" for each "frame", 3. save the file. I guess this is not what you intended. We are able to help if you describe exactly what you want to achieve. In which format are "frequencies" and their "intensity" available? Do you want to be able to play back this file in real time, or is it acceptable to read the entire file before playback? $\endgroup$
    – applesoup
    yesterday
2
$\begingroup$

Are you sure you want to? An audio file contains samples. Each sample is the amplitude at a specific moment. Amplitudes should be both positive and negative. The sound you hear is because the amplitude changes over time. You may look at the wave form in just about any audio editor, lets say Audacity and then zoom in.

Typically you would have 44100 samples each second, the old CD standard. In order to make, say a 441 Hertz sound (a very slightly sharp mid A), you have to enter 100 samples in order to get one wave form. The value would modulate between, say, +1 and -1 start at zero in beginning, pass zero in the middle and end up at zero. You could then copy this 441 times to get one second of sound.

As for +1 and -1 above, it depends on the software you use. In a 16 bit wave file it would be around +32700 and -32700 for a max volume sound, less if you want to decrease the volume.

You could use Audacity to make this, but it would be tedious. The typical way to make a sound is instead to use a software synth, set it to perhaps sine oscillator and then play it.

$\endgroup$
0
$\begingroup$

You could try the following instructions and create a 5s file with a sine waveform : sox -n a.wav synth 5 sin 440

New contributor
Frédéric Loyer is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy