<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          LissajousJavaScript 音頻性能工具

          聯(lián)合創(chuàng)作 · 2023-09-29 20:27

          Lissajous 是一個 JavaScript 的實(shí)時音頻的性能工具。它將創(chuàng)建震蕩器和采樣器的方法封裝成 API,允許通過簡單的數(shù)行代碼提升歌曲的構(gòu)建和即興創(chuàng)作。

          Lissajous 存在于 JavaScript 控制臺中,專門為 Firefox 和 Chrome 所設(shè)計(jì)。

          示例代碼:

          // make a triangle wave that loops the notes 69, 67, then 60 in quarter note intervals
          t = new track()
          t.tri().beat(4).notes(69,67,60)
          
          // load a sample, set the beat to quarter notes, set the note length to a half measure,
          // set the envelope to give it a little attack and release, and loop the notes 69, 67, then 60
          s = new track()
          s.sample(buffer)
          s.beat(4).nl(8).adsr(0.1,0,1,1).notes(69,67,60)
          
          // load an array of three AudioBuffers called 'drums', play them in 8th notes and give them
          // the sequence drums[0], drums[2], drums[1], drums[2]
          d = new track()
          d.sample(drums)
          d.beat(2).sseq(0,2,1,2)
          
          // load a piano sample and mess it up real good
          p = new track()
          p.sample(pianoSample)
          p.beat(2).nl(2).speed(0.5).clamp(1/16).clshift(-1/16)
          瀏覽 28
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  天天日bb | 天天干 天天操 天天射 | 百度一下黑人巨鸡干处女 | 成年人看的毛片 | 久夜午爱免费视频 |