Hello
I'm a newbie and I'd like to use cSound with my guitar with a Roland gk-3 or some similar equipment.
I have the basic need to translate pitch and amplitude information from the 6 strings to MIDI input notes.
Is there a way to do it? Does it exist for a monophonic instrument like a flute?
Thank you in advance
Sergio



Hi Sergio, take a look at
Hi Sergio,
take a look at the pvspitch opcode:
http://www.csounds.com/manual/html/pvspitch.html
There's also an in-depth article about it in the Csound Journal:
http://www.csounds.com/journal/2006winter/pvspitch.html
Ciao,
-c.
Correct, but my problem is on the other side
Hi Cesare
Thank you for your suggestion on pvspitch opcode, and most of all for the interesting article, without it this opcode should be just a black box for me.
Since I was already testing this opcode, I realized that fine-tuning the pitch detection mechanism I should be able to get pitch and amplitude from a note.
My principal problem now is: let's assume I know the exact values for pitch and amplitude, how can I generate a MIDI note to be used from cSound as if it was written in the score?
Another question: how can I generate a midi file from these values (allowing me to listen to it separately and verify pitch detection)?
It seems to me (but maybe I'm wrong) that cSound is more like an expander or a DSP, I mean, cSound seems an easy-to-use tool for consuming MIDI events or audio samples and producing audio output (realtime or .wav file).
It seems to not so easy to produce MIDI output (realtime or .mid file) from input without having to play anything in the same instrument.
I also attempted to redirect midi output to a file but it seems not to work, maybe because my PC has no MIDI port connected?
Thank you again
Sergio
You can send midi events to
You can send midi events to an external synth with midiout:
http://www.csounds.com/manual/html/midiout.html
Or you can generate score events and let csound save all your performance as a midi file with the --midioutfile command flag.
Of course you have to implement all the logic by yourself.
I suggest to use an external tool to do this and then use the generated midi file to play the notes with csound.
Try to take a look at Sonic Visualizer (http://www.sonicvisualiser.org/).