About the | phrase-operator

1 view
Skip to first unread message

Tony

unread,
Jul 30, 2008, 7:28:40 AM7/30/08
to KeyKit
Hello Tim,

the | (parallel concatenation) operator for phrases seems to work only
correctly if the phrases contain notes, e.g. if you have phrases which
contain

- only midi-cc or
- only pitchbend

events, the | operator doesn't work in a "correct" way. For midi-cc
and pitchbend I had to use always + (serial concetenation) operator
for phrases to get the results I wanted. Maybe it would be useful to
mention this also in the documentation.

I give one simple example:

1. THIS WORKS correctly:
#WorkingMidi is note only midi
PitchonlyMidi = readmf(pitchmodels+"\\"+fnp)

r = ''
for (note in WorkingMidi)
{
#PitchmodelMidi.time = note.time
r |= note+PitchmodelMidi
}




2. THIS DOES NOT work correctly:
#WorkingMidi is note only midi
PitchonlyMidi = readmf(pitchmodels+"\\"+fnp)

r = ''
for (note in WorkingMidi)
{
PitchmodelMidi.time = note.time
r |= note|PitchmodelMidi
}

In the second case Keykit seems to consider only the first pitchbend
event in PitchmodelMidi but not all contained pitchbend events, what I
would normally expect.

Kind regards,
Tony

Tony

unread,
Jul 30, 2008, 7:41:51 AM7/30/08
to KeyKit
Sorry, I had some typo in my examples, there should be always:

Pitchonlymidi = PitchmodelMidi
Reply all
Reply to author
Forward
0 new messages