-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide example showing how to play notes with NAudio #32
Comments
You are rendering the waveform to a By the way, if you want to play a MIDI file, I strongly recommend to use Isn't the existing NAudio example suitable for your application? Is there a special reason to use |
Hello Sinshu, Since WaveOut is only available for PC, can you recommend a similar approach for Mac? Thanks! |
@rjjaret For instance, SFML.Net supports Mac, so I believe it should function on a Mac as well. |
I want to play a stream, similar to what is being done in the Windows example above. They're originally using System.Media.SoundPlayer, and you suggested WaveOut. But WaveOut is only for PC. I haven't seen anything quite like that for Mac in the examples, but I'll give another look. Please suggest a place if you know of one. Alternatively, if there's a way to play a series of midi notes, without saving to file first, that would achieve what I need too. Thanks! |
@rjjaret |
I have just made a demo showing how to play notes triggered from a MIDI keyboard with NAudio and MeltySynth which I plan to show at my talk about NAudio at the Copenhagen Developer Festival next week. It's the first time I've tried MeltySynth and I have to say it's amazing! Brilliant job, and I was very impressed at how easy it was to integrate with NAudio. I'll post an example on my blog hopefully in the next week and I'll try to remember to link to it here as well. |
@markheath |
Blog post is up: https://markheath.net/post/naudio-midi-playback-soundfont-meltysynth |
@markheath |
@jeffoulet You can look at my provided code sample for playback MIDI using NAudio below. |
Hi,
Sorry, my request might sound like a very stupid one, and maybe this is not the correct place to ask, but I'm struggling to actually play the waveform generated by Meltysynth.
What I'm trying to do:
What I've achieved so far:
The 'WavePCMFormat' method inserts the .wav header to the data. The result I get is a few seconds of white noise, so I assume there is something wrong in the transformation of the rendered PCM to the .wav stream.
Any help is welcome... Thanks in advance
The text was updated successfully, but these errors were encountered: