New Post: How to set a MIDI instrument on a Chanel
Hello, I would like to create .mid MIDI songs with NAudio and play them with Media Player. I can create a MidiEventCollection and fill it with many NoteOnEvent, prepare for export and export the song....
View ArticleUpdated Wiki: Documentation
The NAudio Documentation WikiNAudio FAQWhat is NAudio?NAudio is an open source audio API for .NET written in C# by Mark Heath, with contributions from many other developers. It is intended to provide a...
View ArticleNew Post: too many samples?
are you making sure you only use BytesRecorded from the record buffer? It may not be full
View ArticleNew Post: Error: "object reference not set to an instance of an object" in...
Visual Studio should tell you which line the null reference exception was on.
View ArticleNew Post: how to add a beat
I'm afraid I don;t have experience trying to add a beat to a frequency, but I'd recommend you write your audio to a file and look at it in a wave editor, and see what your code is actually creating.
View ArticleNew Post: savefile
well you probably have a never-ending stream. You'll just fill up your hard disk. I'd recommend only passing something that actually ends in. Or don't use CreateWaveFile, actually write audio to a...
View ArticleNew Post: How to set a MIDI instrument on a Chanel
Add patch change events for the other channels.
View ArticleNew Post: right speaker and left speaker
Use MultiplexingWaveProvider or MultiplexingSampleProvider to combine two mono signals into a stereo. Or alternate left and right samples.
View ArticleNew Post: savefile
i am making my own tones, and mix then with other files... is that a way to add a timer ? so it will stop. this is what I am doing now:{ public class BinauralBeats : WaveProvider32 { int sample;...
View ArticleNew Post: Setting waveViewer1 to a array of float values
waleedmakarem does you still need an FFT? I got minez to work a while ago.. let me know if you need one
View ArticleNew Post: too many samples?
This is a code snippet and a debug log of bytes recorded against time. In about 24 seconds there is about 5 seconds of drift (stereo 8khz). WaveOutProvider.AddSamples(e.Buffer, 0, e.BytesRecorded);...
View ArticleNew Post: How to set a MIDI instrument on a Chanel
Oh! So easy! It works really fine. I can even change the instrument after some notes without changing the chanel. Thank you.
View ArticleNew Post: too many samples?
it could be a soundcard driver issue. Are you using WaveIn? It's likely that your mic is actually capturing audio at 44.1kHz and the driver is resampling it. Try capturing at 44.1kHz or 48kHz and...
View ArticleNew Post: savefile
markheath, how do i use WaveFileWriter ? I do not see any examples ? I need to have my tones stop a set time, how do i add that?
View Article