Csound Csound-dev Csound-tekno Search About

Reading MIDI in Csound

Date2016-11-30 14:52
FromCelso Machado
SubjectReading MIDI in Csound
Hi everyone, 

i’m trying to read a file MIDI in Csound. I can already connect a MIDI controller to Csound and it works perfectly, but I wrote a peace in a score program and now I would like to play the file in Csound. I found in tutorials solutions such as a instrument that converts a MIDI file into .sco file. I wonder if there is a way to read MIDI file direct in Csound, without the need to convert the information externally. 

A second try that i did was to send via Apple's IAC Audio MIDI environment and receive in Csound as a live input. I did manage to connect both but the result is clipping and distorted sound. 

Does anybody has any considerations or tips on this matter?

Best Regards
Celso Machado
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-11-30 15:04
FromAnders Genell
SubjectRe: Reading MIDI in Csound
The -F command line flag, perhaps?

Regards,
Anders

> 30 nov. 2016 kl. 15:52 skrev Celso Machado :
> 
> Hi everyone, 
> 
> i’m trying to read a file MIDI in Csound. I can already connect a MIDI controller to Csound and it works perfectly, but I wrote a peace in a score program and now I would like to play the file in Csound. I found in tutorials solutions such as a instrument that converts a MIDI file into .sco file. I wonder if there is a way to read MIDI file direct in Csound, without the need to convert the information externally. 
> 
> A second try that i did was to send via Apple's IAC Audio MIDI environment and receive in Csound as a live input. I did manage to connect both but the result is clipping and distorted sound. 
> 
> Does anybody has any considerations or tips on this matter?
> 
> Best Regards
> Celso Machado
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-11-30 15:40
Fromjpff
SubjectRe: Reading MIDI in Csound
Using -F allows reading of a midi file as score.  Look at te opcodes to 
convert midi frequecy etc to csound, and read the manual section 
"Real-time MIDI Support" for moe infomation.

I am not a MIDI user so this is all undigested

On Wed, 30 Nov 2016, Celso Machado wrote:

> Hi everyone,
>
> i’m trying to read a file MIDI in Csound. I can already connect a MIDI controller to Csound and it works perfectly, but I wrote a peace in a score program and now I would like to play the file in Csound. I found in tutorials solutions such as a instrument that converts a MIDI file into .sco file. I wonder if there is a way to read MIDI file direct in Csound, without the need to convert the information externally.
>
> A second try that i did was to send via Apple's IAC Audio MIDI environment and receive in Csound as a live input. I did manage to connect both but the result is clipping and distorted sound.
>
> Does anybody has any considerations or tips on this matter?
>
> Best Regards
> Celso Machado
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-11-30 16:01
FromCelso Machado
SubjectRe: Reading MIDI in Csound
Hi Anders, thanks. I’ve been trying the few deferent examples in Floss Manual that use the -f command flag. I think I found a way which is similar to one of the examples on the Floss Manual, but I need to adapt to my project and run some tests now. Anyway, thanks!

Regards
Celso
> On Nov 30, 2016, at 16:04, Anders Genell  wrote:
> 
> The -F command line flag, perhaps?
> 
> Regards,
> Anders
> 
>> 30 nov. 2016 kl. 15:52 skrev Celso Machado :
>> 
>> Hi everyone, 
>> 
>> i’m trying to read a file MIDI in Csound. I can already connect a MIDI controller to Csound and it works perfectly, but I wrote a peace in a score program and now I would like to play the file in Csound. I found in tutorials solutions such as a instrument that converts a MIDI file into .sco file. I wonder if there is a way to read MIDI file direct in Csound, without the need to convert the information externally. 
>> 
>> A second try that i did was to send via Apple's IAC Audio MIDI environment and receive in Csound as a live input. I did manage to connect both but the result is clipping and distorted sound. 
>> 
>> Does anybody has any considerations or tips on this matter?
>> 
>> Best Regards
>> Celso Machado
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here