Testing audio output: Difference between revisions
Appearance
| Line 31: | Line 31: | ||
//Impulse i => dac; | //Impulse i => dac; | ||
//while( true ) { | |||
// 1.0 => i.next; | |||
// 100::ms => now; | |||
//} | |||
// Use this for noise | // Use this for noise | ||
//Noise n => dac; | //Noise n => dac; | ||
//.2 => n.gain; | //.2 => n.gain; | ||
//while( true ) | //while( true ) | ||
//{ | //{ | ||
// 100::ms => now; | // 100::ms => now; | ||
//} | //} | ||
} | } | ||
Download and install. From there you'll need to create a small bit of code to make the same output signals. | Download and install. From there you'll need to create a small bit of code to make the same output signals. | ||
Revision as of 21:57, 22 September 2010
Reference Signals
When creating signal generators yourself, you will want to compare your audio output to reference signals. Here are a few audio programing languages/environments that might be useful.
- [Chuck]-audio programming language
- [Pure Data]- a graphical audio programming language
- [SuperCollider]-audio programming language
SAMPLE CHUCK CODE
{
// Comment/uncomment the different oscillators to hear each
SinOsc s => dac; //TriOsc s => dac; //SqrOsc s => dac; //PulseOsc s => dac;
.2 => s.gain;
while( true )
{
440.0 => s.freq;
100::ms => now;
}
// Use this for impulse
//Impulse i => dac;
//while( true ) {
// 1.0 => i.next;
// 100::ms => now;
//}
// Use this for noise
//Noise n => dac;
//.2 => n.gain;
//while( true )
//{
// 100::ms => now;
//}
}
Download and install. From there you'll need to create a small bit of code to make the same output signals.