MergeLignes(lin1, lin2 {, kflag {, kflag2}})
merges lin2 to lin1
the resulting "rac" and "id" fields are the ones from lin1
the "inter" fields are merged
"score", "ph" and "anim" are lin1(|)lin2 ones, which makes sense
all other fields from lin1 (but none from lin2) appears in the resulting ligne
-> if kflag is 1, the operation is not destructive for lin1
THIS IS NOT THE DEFAULT ! if you need lin1 again, set kflag to 1
-> if kflag2 is 1, lin2 is preserved (in any case, only its "score" field
can be modified by AddLignes)
See:
AddLignes
FusionneLignes
Related topics: ligne
MergeMarks(marks1, marks2)
returns marks1 and marks2 as a single set of marks
Related topics: marks
MergeScores(sco1, sco2 {, kflag {, kflag2}})
merges scores sco1 and sco2
if kflag==1 (default is 0), the operation is destructive for sco
if kflag2==1 (default is 0), the operation is destructive for sco2
See:
AddToScore
AddScores
Related topics: csound
MidiCS(note, imap, lsco)
returns a line of score mapped from a MIDI nore
imap is the mapping to use (as returned by CSMap)
if lsco is present, it is used as line template,
otherwise all p-fields not in the mapping will be set to 0
(unless a template is present in imap)
See:
CSMap
MidiPhCS
MidiFromCS
MidiFromScore
Related topics: csound
MidiFromCS(lsco, cmap)
returns a MIDI note mapped from lsco, a line of score
cmap is the mapping to use (as returned by CSMap)
if a "ch" field is present in cmap, it will be the note channel
See:
CSMap
MidiCS
MidiPhCS
MidiFromScore
Related topics: csound
MidiFromScore(sco, maps)
applies MidiFromCS for each line in sco, and returns the resulting phrase
maps is an array of mappings, maps[i] being the mapping used for instrument i
See:
CSMap
MidiCS
MidiPhCS
MidiFromCS
Related topics: csound
MidiPhCS(ph, maps)
applies MidiCS for each note in ph and returns the resulting score
maps is an array of mappings, maps[ch] being the mapping used for channel ch
a f0 statement is used to ensure that the score will at least have a duration
of ph.length (this info is read by ScoreLength)
See:
CSMap
MidiCS
MidiFromCS
MidiFromScore
ScoreLength
Related topics: csound
Milieu(a,b) or Milieu(s)
returns the middle of segment a-b (or s)
See:
Seg
Related topics: segment point math
MinIndex(arr)
returns the smaller integer index in array arr
(returns 0 if arr is empty)
Related topics: array
Minimum(a,b)
returns a if a<b, else returns b
See:
Maximum
Related topics: math programming
Mod2Pi(angle)
returns angle (a float) modulo 2*Pi, in the range 0 to 2*Pi (not included)
Related topics: math angle
Moritz(t, amp, n1, d1, n2, d2)
define a curve with polar equation
-> r = A*cos(t*n1/d1)+n2/d2
-> theta = t
the A factor is such that amp is the maximum value for r
See:
ParaPiste
PolarPiste
Related topics: piste math
Multiple(m,n)
returns the multiple of m closest to n
Related topics: math
NStrings(n, str)
returns a string made of n times string str
Related topics: string