Csound Csound-dev Csound-tekno Search About

[Csnd] Output midi files via MIDI OUT to Disklavier

Date2014-08-31 16:50
FromKITA
Subject[Csnd] Output midi files via MIDI OUT to Disklavier
Hi,

i am just trying to play Disklavier (MIDI piano) by csound.
i have already complete .mid files to be played.
Is there any way to output the MIDI messages (same as in the .mid files) to the MIDI OUT by csound?

My idea is :
(1) convert .mid files to Csound Scores by Rosegarden
(2) revise the Scores (Control Change Data like Sustain Pedal are dropped through the conversion)
(3) define Instrument which uses midiout Opcode to play the scores
(4) mix up them with other Instruments and Scores to create the complete .csd file to play a piece.
# a bit too complicated. MIDI-to-Csound-to-MIDI conversion...

Any suggestions or experiences on MIDI OUT by csound ?
-- 
KITA Toshihiro
http://tkita.net/


Date2014-08-31 17:20
FromMichael Gogins
SubjectRe: [Csnd] Output midi files via MIDI OUT to Disklavier

I have a number of alternative suggestions.

You could use a plug-in opcode to play the piano sounds. The best one is the Pianotec from Modartt, which I have used on Windows and Linux. And there are the Fluidsynth opcodes that do a pretty good job of playing SF2 samples of pianos.  These only work if you can do without the sound of a real piano, but I must say I have found both the Pianotec and sampled pianos usable enough for my purposes. You would use the vst4cs opcodes on Windows or the jacko opcodes on other platforms.

You could use the regular Csound MIDI out opcodes.

If you want your piano to play a stored MIDI file you can create this file along with a Csound score file using either CsoundAC or my LuaJIT-based Silencio package and the LuaJIT opcodes.

Regards,
Mike

On Aug 31, 2014 11:51 AM, "KITA" <t-kita@kumamoto-u.ac.jp> wrote:
Hi,

i am just trying to play Disklavier (MIDI piano) by csound.
i have already complete .mid files to be played.
Is there any way to output the MIDI messages (same as in the .mid files) to the MIDI OUT by csound?

My idea is :
(1) convert .mid files to Csound Scores by Rosegarden
(2) revise the Scores (Control Change Data like Sustain Pedal are dropped through the conversion)
(3) define Instrument which uses midiout Opcode to play the scores
(4) mix up them with other Instruments and Scores to create the complete .csd file to play a piece.
# a bit too complicated. MIDI-to-Csound-to-MIDI conversion...

Any suggestions or experiences on MIDI OUT by csound ?
--
KITA Toshihiro
http://tkita.net/



Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-09-02 16:10
FromKITA
SubjectRe: [Csnd] Output midi files via MIDI OUT to Disklavier
Hi Mike,

Thank you for your quick reply with many suggestions.
Yes, excellent digitally-simulated realistic piano sounds are good enough for generating sound of a piece.
It is nice knowing examples of software digital pianos by your suggestions. i think i will have a chance to use them.
This time my intention is to drive an external real instrument by csound.
i have no experience in using CsoundAC nor Silencio. Is there any example codes for outputting MIDI messages?
i am now thinking of converting MIDI files (that have been already created by other composition tools) to text files usable for midiout Opcode by some MIDI-to-text tool or library.

Best regards,

kita

On 2014年09月01日 01:20, Michael Gogins wrote:
> I have a number of alternative suggestions.
> 
> You could use a plug-in opcode to play the piano sounds. The best one is the Pianotec from Modartt, which I have used on Windows and Linux. And there are the Fluidsynth opcodes that do a pretty good job of playing SF2 samples of pianos.  These only work if you can do without the sound of a real piano, but I must say I have found both the Pianotec and sampled pianos usable enough for my purposes. You would use the vst4cs opcodes on Windows or the jacko opcodes on other platforms.
> 
> You could use the regular Csound MIDI out opcodes.
> 
> If you want your piano to play a stored MIDI file you can create this file along with a Csound score file using either CsoundAC or my LuaJIT-based Silencio package and the LuaJIT opcodes.
> 
> Regards,
> Mike
> 
> On Aug 31, 2014 11:51 AM, "KITA" > wrote:
> 
>     Hi,
> 
>     i am just trying to play Disklavier (MIDI piano) by csound.
>     i have already complete .mid files to be played.
>     Is there any way to output the MIDI messages (same as in the .mid files) to the MIDI OUT by csound?
> 
>     My idea is :
>     (1) convert .mid files to Csound Scores by Rosegarden
>     (2) revise the Scores (Control Change Data like Sustain Pedal are dropped through the conversion)
>     (3) define Instrument which uses midiout Opcode to play the scores
>     (4) mix up them with other Instruments and Scores to create the complete .csd file to play a piece.
>     # a bit too complicated. MIDI-to-Csound-to-MIDI conversion...
> 
>     Any suggestions or experiences on MIDI OUT by csound ?
>     --
>     KITA Toshihiro
>     http://tkita.net/
> 
> 
> 
>     Send bugs reports to
>             https://github.com/csound/csound/issues
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk  with body "unsubscribe csound"
> 
> 
> 

-- 
KITA Toshihiro
http://tkita.net/