Commande JouerSon
De GeoGebra Manual
Révision datée du 29 juin 2011 à 12:40 par NLambert (discussion | contributions)
- Some content was not yet translated. See the English original. Please edit the manual page if you have the rights for translation.
- JouerSon[ <Note>, <Durée>, <Instrument> ]
- Joue une note MIDI .
- Note est un entier entre 0 et 127 qui représente une note de musique donnée dans le tableau ci-dessous. Quand note = 60 un Do moyen est joué.
- Durée est le temps de jeu de la note en secondes.
- Instrument est un entier qui représente l'instrument synthétisé utilisé pour jouer la note. Voir cette page (en anglais) du site midi.org pour les instruments possibles.
- Beaucoup d'instruments sont supportés, mais il y a des différences suivant les plateformes.
Notes MIDI Octave C = Do Do# D = Ré Ré# E = Mi F = Fa Fa# G = Sol Sol# A = La La# B = Si 0 0 1 2 3 4 5 6 7 8 9 10 11 1 12 13 14 15 16 17 18 19 20 21 22 23 2 24 25 26 27 28 29 30 31 32 33 34 35 3 36 37 38 39 40 41 42 43 44 45 46 47 4 48 49 50 51 51 53 54 55 56 57 58 59 5 60 61 62 63 64 65 66 67 68 69 70 71 6 72 73 74 75 76 77 78 79 80 81 82 83 7 84 85 86 87 88 89 90 91 92 93 94 95 8 96 97 98 99 100 101 102 103 104 105 106 107 9 108 109 110 111 112 113 114 115 116 117 118 119 10 120 121 122 123 124 125 126 127
- JouerSon[ <Chaîne Notes>, <Instrument> ]
- Joue une suite de notes MIDI et de commandes en utilisant une chaîne de notes JFugue (en anglais).
- Chaîne Notes est une chaîne de caractères utilisant les caractères de commande JFugue.
- Instrument est l'instrument MIDI utilisé quand la chaîne est jouée.
- Les commandes de base sont données ci-dessous. L'ensemble complet des commandes est décrit (en anglais) dans ce document Guide Complet pour JFugue pdf.
Commandes de base JFugue Caractère Commande A-G Play the musical note donné by the letter in octave 5 - For sharps and flats add b or #
- To change octaves add the octave nombre, e.g. A4
- Note length is a quarter note unless specified otherwise
[nombre] Joue la note MIDI donnée par le nombre (0-127) + Unit les notes ensemble pour les jouer en accord, par ex. C+E+G R Rest w, h, q, i, s Add to the end de a note or rest; sets the length - w = whole note
- h = half note
- q = quarter note
- i = eighth note
- s = sixteenth note
/n Add to a note or rest; sets the length to n (a decimal nombre) - /1 = whole note
- /.5 = half note
- /.25 = quarter note
- /2 = two measures
I[nombre] Définit l'instrument V V suivi d'un nombre de 0 à 15 définit le canal MIDI. "V9" définit le canal MIDI percussion. Espace Joue la note précédente, la combinaison de notes or rest.
Exemple:
JouerSon["C+E+G R Ai Bi Ci A4i B4i C4i ", 0]
- Plays a quarter note chord CEG; rests for a whole note; plays the eighth notes A, B, C; plays them again one octave lower.
- L'instrument utilisé est le Piano.
Exemple:
JouerSon["I[56] C5q D5q I[71] G5q F5q", 0]
- Joue les notes avec différents instruments. Trompette = 56 et Clarinette = 71.
Exemple:
JouerSon["V0 A3q B3q C3q B3q V1 A2h C2h", 0]
- Joue les notes in harmony with différentes voix.
- JouerSon[ <Fichier> ]
- Joue un fichier MIDI (*.mid) ou un fichier texte (* .txt) contenant une chaîne de caractères JFugue.
- "Fichier" est le chemin pour accéder à ce fichier, par ex. JouerSon["C:\Users\NoeL\Music\MidiBobDylan\Bob_Dylan_-_Blowing_in_the_Wind.mid"]
- JouerSon[ <Fonction>, < Valeur Min>, <Valeur Max> ]
- Plays a sound generated by fonction, a time-valued fonction with range [-1,1]. The time units are seconds and the sound is played from time Min Value to Max Value. Sound is generated by 8-bit samples taken at a rate de 8000 samples per second.
Exemple:
JouerSon[sin(440 2Pi x), 0, 1]
- This plays a pure sine wave tone at 440 Hz (musical note A) pendant une seconde.
- JouerSon[ <Fonction>, <Valeur Min>, <Valeur Max>, <Débit>, <Profondeur> ]
- Plays a sound generated by fonction, a time-valued fonction with range [-1,1]. The time units are seconds and the sound is played from time Min Value to Max Value. The sampling method is specified by "Sample Depth" and "Sample Rate".
- "Sample Rate" is the nombre de sample fonction values taken each second. Allowable values are 8000, 11025, 16000, 22050, or 44100
- "Sample Depth" is the data size de a sample in bits. Allowable values are 8 and 16.
- JouerSon[ <Booléen> ]
- Pause or resume play.
- JouerSon[true] = play, JouerSon[false] = pause.