Csound Csound-dev Csound-tekno Search About

[Csnd] Midi to score problem

Date2014-01-18 20:47
Fromhlolli
Subject[Csnd] Midi to score problem
Hi guys, Im having problem with converting midi to score. I'm using 4 voice
.mid file  tolvupunktur.mid
   and
I'm looking to get 4 instruments, 1 for each voice. But when I open the
rendered .sco file, the channels and instruments mix up in a weird way.

tpunk.sco   

(If this uploads, as I hope it will, you will see this is 4part
counterpoint, and a shitty one too :) )

My theory is that massign is changing channel assignment as it pleases, so
maybe I'm not far away from the solution.

Thanks for any advie/help.

-Hlolli



Converts Midi File in the CsOptions to Score
p1 midi channel -> instrument number
p2 note on -> start
p3 duration -> duration
p4 velocity -> amp
p5 midi note -> frequency

 

;--nosound
;--midifile=tolvupunktur.mid
-n -F tolvupunktur.mid
 
 
sr =  48000 
ksmps =  1 
nchnls =  1 
massign   0, 1000
pgmassign   0, 1000 

instr 1000
kstatus, kchan, kdata1, kdata2 midiin
ichan = i(kchan); midi channel = to instrument number
inote notnum 
ivel veloc 
istrt times 
krel release 
if (krel == 0) kgoto nothing 
kendt times
kdur =  kendt - istrt

;conversions
/*ivel = (ivel/127) * 32000;amp 0 - 32000  */
;inote = (440.0*exp(log(2.0)*((inote)-69.0)/12.0)); midi to frequency
/*inote = pchmidinn(inote)*/

;prints to file

fprintks "tpunk1.sco", "i %2.0f\\t%15.6f\\t%15.6f\\t%15.3f\\t%15.2f\\n",
ichan, istrt, kdur, inote, ivel 
turnoff


nothing: 
endin 

 
 
f 0 120
i 1000 0 120


 
 



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-to-score-problem-tp5731768.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-01-18 20:50
Fromhlolli
Subject[Csnd] Re: Midi to score problem
one politically important mistake here.

"Hi guys" = "Hi csounders, women and men :)"

sorry :(



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-to-score-problem-tp5731768p5731769.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-01-21 13:59
FromHlöðver Sigurðsson
SubjectRe: [Csnd] Re: Midi to score problem
Well, found solution if anyone is searching for the same solution in the future.

It was to use the midi application roseagrden to convert midi to score. This method of using massign and fprtintks in .csd file is bad in comparison.


2014/1/18 hlolli <hlolli@gmail.com>
one politically important mistake here.

"Hi guys" = "Hi csounders, women and men :)"

sorry :(



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-to-score-problem-tp5731768p5731769.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





--
Hlöðver Sigurðsson

Date2014-01-21 14:10
FromMichael Gogins
SubjectRe: [Csnd] Re: Midi to score problem
CsoundAC.Score can import MIDI and export Csound sco.

Regards,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Jan 21, 2014 at 8:59 AM, Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
Well, found solution if anyone is searching for the same solution in the future.

It was to use the midi application roseagrden to convert midi to score. This method of using massign and fprtintks in .csd file is bad in comparison.


2014/1/18 hlolli <hlolli@gmail.com>
one politically important mistake here.

"Hi guys" = "Hi csounders, women and men :)"

sorry :(



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-to-score-problem-tp5731768p5731769.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





--
Hlöðver Sigurðsson


Date2014-01-21 18:19
FromAndres Cabrera
SubjectRe: [Csnd] Re: Midi to score problem
I remember there is an example in the manual (maybe for midiin?) that could do this too.

Cheers,
Andrés


On Tue, Jan 21, 2014 at 5:59 AM, Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
Well, found solution if anyone is searching for the same solution in the future.

It was to use the midi application roseagrden to convert midi to score. This method of using massign and fprtintks in .csd file is bad in comparison.


2014/1/18 hlolli <hlolli@gmail.com>
one politically important mistake here.

"Hi guys" = "Hi csounders, women and men :)"

sorry :(



--
View this message in context: http://csound.1045644.n5.nabble.com/Midi-to-score-problem-tp5731768p5731769.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





--
Hlöðver Sigurðsson