Differenze tra le versioni di "Comando Suono"
Da GeoGebra Manual.
Riga 178: | Riga 178: | ||
|} | |} | ||
− | ;Suono[ | + | ;Suono[ Sequenza di note, Strumento ] |
− | :{{ | + | : Riproduce una sequenza di note MIDI e di comandi, utilizzando una stringa musicale di [http://www.jfugue.org JFugue ]. |
+ | : ''Sequenza di note'' è una stringa di testo che utilizza i comandi e i caratteri di JFugue. | ||
+ | : ''Strumento'' è lo strumento MIDI predefinito per riprodurre la stringa musicale. | ||
+ | : I comandi di base sono elencati di seguito. L'elenco di tutti i comandi disponibili è descritto in | ||
+ | : [http://www.jfugue.org/jfugue-chapter1.pdf The Complete Guide to JFugue ] (in Inglese). | ||
+ | |||
+ | |||
+ | ::{| class="pretty" | ||
+ | |+ '''Comandi di base di JFugue''' | ||
+ | !Carattere | ||
+ | !Comando | ||
+ | |||
+ | |+ | ||
+ | | A-G | ||
+ | | Riproduce la nota musicale corrispondente alla lettera, nell'ottava 5 | ||
+ | : For sharps and flats aggiungere b o # | ||
+ | : Per cambiare ottava aggiunger eil numero relativo all'ottava, ad es. A4 | ||
+ | : La durata della nota è un quarto, a meno di ulteriori impostazioni specifiche | ||
+ | |||
+ | |+ | ||
+ | | [number] | ||
+ | | Play the MIDI note given by the number (0-127) | ||
+ | |||
+ | |+ | ||
+ | | + | ||
+ | | Join notes together to play them in harmony, e.g. C+E+G | ||
+ | |||
+ | |+ | ||
+ | | R | ||
+ | | Rest | ||
+ | |||
+ | |+ | ||
+ | | w, h, q, i, s | ||
+ | | Add to the end of 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 number) | ||
+ | :: /1 = whole note | ||
+ | :: /.5 = half note | ||
+ | :: /.25 = quarter note | ||
+ | :: /2 = two measures | ||
+ | |||
+ | |+ | ||
+ | | I[number] | ||
+ | | Set the instrument | ||
+ | |||
+ | |+ | ||
+ | | V | ||
+ | | V followed by a number from 0 to 15 sets the MIDI channel. "V9" sets the MIDI percussion channel. | ||
+ | |+ | ||
+ | | Space | ||
+ | | Play the previous note, combination of notes or rest. | ||
+ | |} | ||
+ | |||
+ | |||
+ | {{Example| 1=<code>PlaySound["C+E+G R Ai Bi Ci A4i B4i C4i ", 0]</code> | ||
+ | : Plays a quarter note chord CEG; rests for a whole note; plays the eighth notes A, B, C; plays them again one octave lower. | ||
+ | : Piano instrument is used. | ||
+ | }} | ||
+ | {{Example| 1=<code>PlaySound["I[56] C5q D5q I[71] G5q F5q", 0]</code> | ||
+ | : Plays notes with different instruments. Trumpet = 56 and Clarinet = 71. | ||
+ | }} | ||
+ | {{Example| 1=<code>PlaySound["V0 A3q B3q C3q B3q V1 A2h C2h", 0]</code> | ||
+ | : Plays notes in harmony with different voices. | ||
+ | }} | ||
+ | |||
+ | |||
+ | |||
;Suono[ <File> ] | ;Suono[ <File> ] | ||
:{{translate|PlaySound Command}} | :{{translate|PlaySound Command}} |
Versione delle 10:09, 28 giu 2011
- Suono[ Nota, Durata, Strumento ]
- Emette una nota MIDI.
- Nota è un intero compreso tra 0 a 127, che rappresenta una nota musicale, come elencato nella seguente tabella. Ad esempio, quando Nota = 60 viene emesso un Do centrale.
- Durata è il tempo di emissione della nota, in secondi.
- Strumento è un numero intero che rappresenta lo strumento sintetizzato che emette la nota. Fare riferimento a technical specifications at midi.org per un elenco degli strumenti disponibili.
- Pur essendo supportati gran parte degli strumenti, sono possibili piccole differenze tra le varie piattaforme di computer.
Note MIDI Ottave Do Do# Re Re# Mi Fa Fa# Sol Sol# La La# 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
- Suono[ Sequenza di note, Strumento ]
- Riproduce una sequenza di note MIDI e di comandi, utilizzando una stringa musicale di JFugue .
- Sequenza di note è una stringa di testo che utilizza i comandi e i caratteri di JFugue.
- Strumento è lo strumento MIDI predefinito per riprodurre la stringa musicale.
- I comandi di base sono elencati di seguito. L'elenco di tutti i comandi disponibili è descritto in
- The Complete Guide to JFugue (in Inglese).
Comandi di base di JFugue Carattere Comando A-G Riproduce la nota musicale corrispondente alla lettera, nell'ottava 5 - For sharps and flats aggiungere b o #
- Per cambiare ottava aggiunger eil numero relativo all'ottava, ad es. A4
- La durata della nota è un quarto, a meno di ulteriori impostazioni specifiche
[number] Play the MIDI note given by the number (0-127) + Join notes together to play them in harmony, e.g. C+E+G R Rest w, h, q, i, s Add to the end of 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 number) - /1 = whole note
- /.5 = half note
- /.25 = quarter note
- /2 = two measures
I[number] Set the instrument V V followed by a number from 0 to 15 sets the MIDI channel. "V9" sets the MIDI percussion channel. Space Play the previous note, combination of notes or rest.
Esempio:
PlaySound["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.
- Piano instrument is used.
Esempio:
PlaySound["I[56] C5q D5q I[71] G5q F5q", 0]
- Plays notes with different instruments. Trumpet = 56 and Clarinet = 71.
Esempio:
PlaySound["V0 A3q B3q C3q B3q V1 A2h C2h", 0]
- Plays notes in harmony with different voices.
- Suono[ <File> ]
- Some content was not yet translated. See the English original. Please edit the manual page if you have the rights for translation.
- Suono[ <Funzione>, <Valore min>, <Valore max> ]
- Some content was not yet translated. See the English original. Please edit the manual page if you have the rights for translation.
- Suono[ <Funzione>, <Valore min>, <Valore max>, <Frequenza campionamento>, <Profondità> ]
- Some content was not yet translated. See the English original. Please edit the manual page if you have the rights for translation.