Csound Csound-dev Csound-tekno Search About

[Csnd] midion not working as I expected.

Date2012-05-26 20:02
FromTobiah
Subject[Csnd] midion not working as I expected.
Before hitting send on the below message, I tried drastically
increasing the p2 and p3 values.  It turns out that I must multiply
them by 100 to get the desired effect.  The following score makes
notes with 2 second duration, 1 second apart:

i 1.0 0 200.0 100.0 60.0
i 1.0 100 200.0 100.0 61.0
i 1.0 200 200.0 100.0 63.0
i 1.0 300 200.0 100.0 66.0
i 1.0 400 200.0 100.0 70.0
i 1.0 500 200.0 100.0 75.0
i 1.0 600 200.0 100.0 81.0
i 1.0 700 200.0 100.0 88.0
i 1.0 800 200.0 100.0 96.0
i 1.0 900 200.0 100.0 105.0

So that's useable, but I wonder what it will do to
other instruments that aren't using midi out.

###################################################################

I'm using midion to send note on/off to and external
midi controlled program (Kontakt).  I'm getting sound,
but no matter what I do, the sound comes out immediately
for all notes, and only lasts for an instant, rather than
following my p3.  The orchestra was taken from the midion
example.  Btw, the manual incorrectly uses +3 and +5 to form
what it calls a 'minor chord'.

Score:

i 1.0 0 22.0 100.0 60.0
i 1.0 2 22.0 100.0 61.0
i 1.0 4 22.0 100.0 63.0
i 1.0 6 22.0 100.0 66.0
i 1.0 8 22.0 100.0 70.0
i 1.0 10 22.0 100.0 75.0
i 1.0 12 22.0 100.0 81.0
i 1.0 14 22.0 100.0 88.0
i 1.0 16 22.0 100.0 96.0
i 1.0 18 22.0 100.0 105.0

Orc:

instr 1

         ivel    init    p4
         ifund   init    p5

         knote1 init ifund
         knote2 init ifund + 3
         knote3 init ifund + 7

         ;minor chord on MIDI out channel 1
         ;Needs something plugged to csound's MIDI output
         midion 1, knote1, ivel
         midion 1, knote2, ivel
         midion 1, knote3, ivel

endin

Running csound like this:

csound  -f  --displays -o dac -b256 -B512 -Q3

I just get a burst of all of the notes at the same time, as though
a keyboard was pressed for 1/2 second or so.

Thanks for any help.

Tobiah

Date2012-05-31 17:21
FromJim Aikin
Subject[Csnd] Re: midion not working as I expected.
Since nobody else has replied to this....

You don't by any chance have the line

t 0 6000

in your score, do you? That would explain it. If that's not the explanation,
I'm out of ideas.

--
View this message in context: http://csound.1045644.n5.nabble.com/midion-not-working-as-I-expected-tp5713380p5713507.html
Sent from the Csound - General mailing list archive at Nabble.com.