Recettes musicales
Points de départ à copier/coller pour les transformations MIDI courantes.
Transposer d'une octave vers le haut
neuroscript
transpose +12
passlua
if event.type == "noteOn" or event.type == "noteOff" then
event.data1 = MIDI.clamp(event.data1 + 12)
end
return eventSupprimer les notes sous le Do central (C3)
neuroscript
drop note where note < 60
passlua
if event.type == "noteOn" and event.data1 < 60 then
return {}
end
return eventRemapper le canal 1 → 2
neuroscript
when ch == 1 {
ch -> 2
}
passlua
if event.channel == 0 then
event.channel = 1
end
return eventÉcrêtage de vélocité (40-100)
neuroscript
vel clamp 40..100
passlua
if event.type == "noteOn" then
event.data2 = math.max(40, math.min(100, event.data2))
end
return eventRouter les notes à haute vélocité vers un canal différent
neuroscript
when type == note_on and vel > 100 {
ch -> 10
}
passlua
if event.type == "noteOn" and event.data2 > 100 then
event.channel = 9 -- Canal MIDI 10
end
return eventRetarder les notes de 100ms
neuroscript
after 100ms {
pass
}