Chargement...
 
Skip to main content

6 - Le MIDI


[RÉSOLU] S.O.S. exemple de midifile avec un portamento entre deux notes svp ?

France
Bonjour.
J'aurais besoin d'un exemple de fichier midi avec un portamento entre deux notes svp.
J'ai tenté et retenté d'en coder un, ça ne marche pas 😑
Merci d'avance.
Je ne suis pas certain que ça va t'aider mais ...
Le soucis si je puis dire c'est que le portamento peut etre implémenté sur n'importe quel controleur MIDI Je prend l'exemple d'une mc909

❍Portamento (Controller number 65)

2nd byte
0BH

2nd byte
41H

3rd byte
xxH


Sur un E9 E0 (au hasard sur le net ):

Portamento control (Controller number 84)
Status 2nd byte
3rd byte BnH 54H kkH
n = MIDI channel number: 0H - FH (ch.1 - 16)
kk = source note number: 00H - 7FH (0 - 127)


En fait il vaudrait mieux que tu te réfère à la doc traduite par ardoisebleue qui à mon avis peut t'être d'une aide précieuse ? :
Specifications SoundFont SFZ & SoundFont specification SF2
France
si ça peut aider quelqu'un, j'ai enfin réussi à faire un portamento :

Copy to clipboard
4D 54 68 64 00 00 00 06 00 01 00 02 01 E0 : MThd 4D 54 72 6B 00 00 00 13 : MTrk 00 FF 51 03 07 A1 20 : dt 0, SET-TEMPO 00 FF 58 04 04 02 18 08 : dt 0, TIME-SIGNATURE 00 FF 2F : dt 0, END-OF-TRACK 00 4D 54 72 6B 00 00 00 5A : dt 0, MTrk 00 FF 03 00 : dt 0, meta: sequence/track name "" 00 C0 39 : dt 0, ch1 prgch 58 00 B0 07 64 : dt 0, ch1 vol 100 00 0A 40 : dt 0, ch1 pan 00 5D 00 : dt 0, ch1 control change effect3 (chorus) depth 00h 00 5B 00 : dt 0, ch1 control change effect1 (reverb) depth 00h 00 90 3C 64 : dt 0, note 3Ch on 64h 83 60 80 3C 7F : dt 480, note 3Ch off 7Fh 00 90 3E 64 : dt 0, note 3Eh on 64h 83 60 80 3E 7F : dt 480, note 3Eh off 7Fh 00 90 3C 64 : dt 0, note 3Ch on 64h 83 60 80 3C 7F : dt 480, note 3Ch off 7Fh 00 B0 41 FF : dt 0, portamento on 00 B0 05 50 : dt 0, portamento time msb 00 90 3E 64 : dt 0, note 3Eh on 64h 83 60 80 3E 7F : dt 480, note 3Eh off 7Fh 00 B0 41 00 ; dt 0, portamento off 00 90 3C 64 : dt 0, note 3Ch on 64h 83 60 80 3C 7F : dt 480, note 3Ch off 7Fh 00 90 3E 64 : dt 0, note 3Eh on 64h 83 60 80 3E 7F : dt 480, note 3Eh off 7Fh 00 FF 2F 00 : dt 0, END-OF-TRACK


j'ai utilisé deux outils, http://jlp31.free.fr/cvware/textToMidi.html
et http://jlp31.free.fr/cvware/midiToText.html (que j'ai réalisé il y
a longtemps) pour créer ce fichier midi :

cat > essai-de-portamento.txt
France
oui, c'est résolu, ainsi que je l'avais mis dans le titre qui n'apparaît pas 😑
tout comme il n'y a que la moitié de mon message, l'autre moitié était :

cat > essai-de-portamento.txt
France
suite...

Copy to clipboard
cat > essai-de-portamento.txt << "EOF" MThd 00h 01h 00h 02h 01h E0h /***************************************************************************/ MTrk dt 0 /* meta: SET-TEMPO */ FFh 51h #(07h A1h 20h) dt 0 /* meta: TIME-SIGNATURE */ FFh 58h #(04h 02h 18h 08h) dt 0 /* meta: END-OF-TRACK */ FFh 2Fh #() /***************************************************************************/ MTrk dt 0 /* meta: sequence/track name */ FFh 03h "" dt 0 ch1 prgch 58 dt 0 ch1 vol 100 dt 0 /* ch1 pan */ 0Ah 40h dt 0 /* midi (B0h) */ 5Dh 00h /* ch1, control change, effect3 (chorus) depth 00h */ dt 0 /* midi (B0h) */ 5Bh 00h /* ch1, control change, effect1 (reverb) depth 00h */ dt 0 ch1 + 3Ch 64h dt 480 ch1 - 3Ch 7Fh dt 0 ch1 + 3Eh 64h dt 480 ch1 - 3Eh 7Fh dt 0 ch1 + 3Ch 64h dt 480 ch1 - 3Ch 7Fh dt 0 /* midi */ B0h 41h FFh /* ch1, control change, portamento ON/OFF FFh */ dt 0 /* midi */ B0h 05h 50h /* ch1, control change, portamento time 50h */ dt 0 ch1 + 3Eh 64h dt 480 ch1 - 3Eh 7Fh dt 0 /* midi */ B0h 41h 00h /* ch1, control change, portamento ON/OFF 00h */ dt 0 ch1 + 3Ch 64h dt 480 ch1 - 3Ch 7Fh dt 0 ch1 + 3Eh 64h dt 480 ch1 - 3Eh 7Fh dt 0 /* meta: END-OF-TRACK */ FFh 2Fh #() EOF


./textToMidi essai-de-portamento.txt essai-de-portamento.mid

timidity essai-de-portamento.mid
France
remplacer << par deux signes "inférieur"
France
Comme mis dans le lien que je t'ai filé, c'est le titre de ton premier message qu'il te faut modifier pour que ca marche.

Et pour ton code, il te faut utiliser les balises CODE :
Capture-Linux MAO | Driver M-AUDIO M-TRACK - Mozilla Firefox.png

En espérant que ca aide,
Olivier