Csound Csound-dev Csound-tekno Search About

[Csnd] simple question about .mid file

Date2005-08-31 20:44
FromJuan Carlos Martinez
Subject[Csnd] simple question about .mid file
I am a beginner user of CSOUND , I want to know How I
can use a .mid file (instead of score) in CSOUND VST ?
(CSOUND version 5.0).

Regards, 

Juan Carlos Martinez


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-08-31 20:46
FromIstvan Varga
SubjectRe: [Csnd] simple question about .mid file
Juan Carlos Martinez wrote:

> I am a beginner user of CSOUND , I want to know How I
> can use a .mid file (instead of score) in CSOUND VST ?
> (CSOUND version 5.0).

You need to use the -F command line option with the file name.
-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-09-01 04:24
FromAidan Collins
SubjectRe: [Csnd] simple question about .mid file
AttachmentsNone  None  

Date2005-09-01 10:13
FromIstvan Varga
SubjectRe: [Csnd] simple question about .mid file
Aidan Collins wrote:

> on the topic of midi files,
> if there are people reading this thread who have used them often,
> do you ever have problems with the tempo? I've used max/msp to convert a 
> simple midi file into the Csound friendly type 0 format, and it plays as 
> I would expect through the Quicktime synth, but when I run my Csound 
> file it plays at a fraction of the tempo.

With Csound 5 you do not need to convert to type 0.
-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-09-01 16:39
FromJuan Carlos Martinez
SubjectRe: [Csnd] simple question about .mid file
AttachmentsNone  intro5.MID  

Date2005-09-01 17:17
FromIstvan Varga
SubjectRe: [Csnd] simple question about .mid file
It is most likely that the MIDI file has program change
messages, and that is why the channels are reverted to
instr 1. You can disable program changes by adding
pgmassign 0, 0 to the orchestra header (alternatively,
you can also assign instrument numbers to program changes,
for example with pgmassign 2, 3 program 2 will use instr 3).

Juan Carlos Martinez wrote:

> I follow your instruccion with the command -F , and I
> can to run a CSOUND with mi MIDI FILE, I use a midi
> file format 1 (separated tracks, it was created in
> FINALLE 2000), i dont have problems with the tempo ,
> but although i use MASSIGN instruction to assign
> channels to instruments, CSOUND assign all channels to
> instrument 1.
> 
> Note:the MIDI FILE have only music to channel 2. I
> attached the MIDI FILE with this email.
> 
> I check the messages in CSOUND VST , and i found this:
> 
> 1. At begin, CSOUND assigns channel 1 to instrument 1,
> channel 2 to instrument 2 , and channel 3 to
> instrument 3, but after to load the f-table , it
> assigns channel 2 to instrumen 1.
> 
> Note:I check the channel with print option and the
> channel is ok .
> 
> I dont know what am i doing wrong?
> 
> I attach my orchestra and score file, and the command
> line:
> 
> 
> 
> csound -F D:\intro_csound\intro5.MID temp.orc temp.sco
> 
> 
> 
> sr=44100
> kr=441
> ksmps=100
> nchnls=2
> 
> massign 1,1
> massign 2,2
> massign 3,3 
> 
> instr 1
> 
> icps cpsmidi
> ichn midichn
> 
> print icps, ichn
> aout oscil 1, icps, 1
> outs (aout*10000) , (aout*10000)
> 
> endin
> 
> instr 2
> 
>   icps cpsmidi
>   print icps
>   a1 pluck 20000, icps, icps, 0, 1
>   outs a1,a1
> endin
> 
> instr 3
> 
> icps cpsmidi
> print icps
> aout oscil 1, icps, 1
> outs (aout*10000) , (aout*10000)
> 
> endin
> 
> 
> 
> f 1 0 4096 10 1
> f 0 120
-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk