SoundNote
SoundNote[pitch]
表示和指定音高相符的一个音符.
SoundNote[pitch,t]
音符持续的时间长度为 t.
SoundNote[pitch,{tmin,tmax}]
音符持续的时间间隔从 tmin 到 tmax.
SoundNote[pitch,tspec,"style"]
设置指定风格的音符.
SoundNote[pitch,tspec,"style",opts]
用指定选项渲染音符.
更多信息和选项
- 下面是音高的具体规范:
-
0 中央 C 音 n 距中央 C n 个半音 "C", "C#", "D" 等 中央 C 八度音阶的的所有音符 "Cm", "C#m", "Dm" 等 m 八度音阶的所有音符 ("C4" 是中央C音) {p1,p2,…} 包含音高 pi 的和弦 None 休止 (一次音乐停顿) "percussion" 一个打击乐器音 - 形式 "C#"、 "C♯"(以 \[Sharp] 形式键入)和 "CSharp" 是等价的.
- "Cb"、"C♭" (以 \[Flat] 形式键入) 和 "CFlat" 也是等价的.
- 负数用来指定中央 C 音以下的音调.
- 中央 C 音以上的一个八度音阶,可以通过 12 或 "C5" 来指定.
- "C+4" 等价于 "C4";低音符可以通过 "C-1" 等指定.
- SoundNote[pitch,t] 指定一个时间 t;音符的音量在 t 时间前逐步减小.
- SoundNote[pitch,tspec] 在缺省情况下用钢琴的风格.
- 在1和128间的风格 s 表示通常 MIDI 乐器 s.
- 风格 {bank,patch,s} 表示一种乐器,用指定的音色库和音色.
- 在 Sound 中,{"style",SoundNote[…],…} 可以用来指定,音符按给出的风格演奏.
- SoundNote[] 在默认情况下,表示用钢琴演奏的中央 C 音,演奏时长为 1 秒.
- 典型风格包括:
-
"Accordion" "Agogo" "AltoSax" "Applause" "Atmosphere" "Bagpipe" "Bandoneon" "Banjo" "BaritoneSax" "Bass" "BassAndLead" "Bassoon" "Bird" "BlownBottle" "Bowed" "BrassSection" "Breath" "Brightness" "BrightPiano" "Calliope" "Celesta" "Cello" "Charang" "Chiff" "Choir" "Clarinet" "Clavi" "Contrabass" "Crystal" "DrawbarOrgan" "Dulcimer" "Echoes" "ElectricBass" "ElectricGrandPiano" "ElectricGuitar" "ElectricPiano" "ElectricPiano2" "EnglishHorn" "Fiddle" "Fifths" "Flute" "FrenchHorn" "FretlessBass" "FretNoise" "Glockenspiel" "Goblins" "Guitar" "GuitarDistorted" "GuitarHarmonics" "GuitarMuted" "GuitarOverdriven" "Gunshot" "Halo" "Harmonica" "Harp" "Harpsichord" "Helicopter" "HonkyTonkPiano" "JazzGuitar" "Kalimba" "Koto" "Marimba" "MelodicTom" "Metallic" "MusicBox" "MutedTrumpet" "NewAge" "Oboe" "Ocarina" "OrchestraHit" "Organ" "PanFlute" "PercussiveOrgan" "Piano" "Piccolo" "PickedBass" "PizzicatoStrings" "Polysynth" "Rain" "Recorder" "ReedOrgan" "ReverseCymbal" "RockOrgan" "Sawtooth" "SciFi" "Seashore" "Shakuhachi" "Shamisen" "Shanai" "Sitar" "SlapBass" "SlapBass2" "SopranoSax" "Soundtrack" "Square" "Steeldrums" "SteelGuitar" "Strings" "Strings2" "Sweep" "SynthBass" "SynthBass2" "SynthBrass" "SynthBrass2" "SynthDrum" "SynthStrings" "SynthStrings2" "SynthVoice" "Taiko" "Telephone" "TenorSax" "Timpani" "Tinklebell" "TremoloStrings" "Trombone" "Trumpet" "Tuba" "TubularBells" "Vibraphone" "Viola" "Violin" "Voice" "VoiceAahs" "VoiceOohs" "Warm" "Whistle" "Woodblock" "Xylophone" - 典型的打击乐包括:
-
"BassDrum" "BassDrum2" "BellTree" "Cabasa" "Castanets" "ChineseCymbal" "Clap" "Claves" "Cowbell" "CrashCymbal" "CrashCymbal2" "ElectricSnare" "GuiroLong" "GuiroShort" "HighAgogo" "HighBongo" "HighCongaMute" "HighCongaOpen" "HighFloorTom" "HighTimbale" "HighTom" "HighWoodblock" "HiHatClosed" "HiHatOpen" "HiHatPedal" "JingleBell" "LowAgogo" "LowBongo" "LowConga" "LowFloorTom" "LowTimbale" "LowTom" "LowWoodblock" "Maracas" "MetronomeBell" "MetronomeClick" "MidTom" "MidTom2" "MuteCuica" "MuteSurdo" "MuteTriangle" "OpenCuica" "OpenSurdo" "OpenTriangle" "RideBell" "RideCymbal" "RideCymbal2" "ScratchPull" "ScratchPush" "Shaker" "SideStick" "Slap" "Snare" "SplashCymbal" "SquareClick" "Sticks" "Tambourine" "Vibraslap" "WhistleLong" "WhistleShort" - 选项 SoundVolume->v 为一个音符指定相应的音量 v.
- 具体音符的播放效果依靠于计算机系统的安装.
范例
打开所有单元关闭所有单元范围 (16)
基本音符与和弦 (6)
应用 (8)
Wolfram Research (2007),SoundNote,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SoundNote.html.
文本
Wolfram Research (2007),SoundNote,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SoundNote.html.
CMS
Wolfram 语言. 2007. "SoundNote." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/SoundNote.html.
APA
Wolfram 语言. (2007). SoundNote. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/SoundNote.html 年