[{"data":1,"prerenderedAt":1046},["ShallowReactive",2],{"navigation_docs":3,"-runtime-listening-to-sound":271,"-runtime-listening-to-sound-surround":1041},[4,35,70,120,154,183,217,246,261],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"What is ISF Studio","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Your first shader","\u002Fgetting-started\u002Ffirst-shader","1.getting-started\u002F3.first-shader","i-lucide-code-2",{"title":25,"path":26,"stem":27,"icon":28},"Your first pipeline","\u002Fgetting-started\u002Ffirst-pipeline","1.getting-started\u002F4.first-pipeline","i-lucide-workflow",{"title":30,"path":31,"stem":32,"icon":33},"Interface tour","\u002Fgetting-started\u002Finterface-tour","1.getting-started\u002F5.interface-tour","i-lucide-layout-panel-left",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Library","\u002Flibrary","2.library",[40,45,50,55,60,65],{"title":41,"path":42,"stem":43,"icon":44},"The explorer","\u002Flibrary\u002Fexplorer","2.library\u002F1.explorer","i-lucide-folder-tree",{"title":46,"path":47,"stem":48,"icon":49},"Organizing files","\u002Flibrary\u002Forganizing-files","2.library\u002F2.organizing-files","i-lucide-files",{"title":51,"path":52,"stem":53,"icon":54},"Images and gallery","\u002Flibrary\u002Fimages-and-gallery","2.library\u002F3.images-and-gallery","i-lucide-image",{"title":56,"path":57,"stem":58,"icon":59},"Sharing","\u002Flibrary\u002Fsharing","2.library\u002F4.sharing","i-lucide-package",{"title":61,"path":62,"stem":63,"icon":64},"Installing in software","\u002Flibrary\u002Finstalling-in-software","2.library\u002F5.installing-in-software","i-lucide-folder-input",{"title":66,"path":67,"stem":68,"icon":69},"OpenFX plug-ins","\u002Flibrary\u002Fopenfx-plugins","2.library\u002F6.openfx-plugins","i-lucide-plug",{"title":71,"path":72,"stem":73,"children":74,"page":34},"Shaders","\u002Fshaders","3.shaders",[75,80,85,90,95,100,105,110,115],{"title":76,"path":77,"stem":78,"icon":79},"The code editor","\u002Fshaders\u002Fcode-editor","3.shaders\u002F1.code-editor","i-lucide-square-code",{"title":81,"path":82,"stem":83,"icon":84},"The ISF header","\u002Fshaders\u002Fisf-header","3.shaders\u002F2.isf-header","i-lucide-braces",{"title":86,"path":87,"stem":88,"icon":89},"The preview","\u002Fshaders\u002Fpreview","3.shaders\u002F3.preview","i-lucide-monitor-play",{"title":91,"path":92,"stem":93,"icon":94},"Input controls","\u002Fshaders\u002Finput-controls","3.shaders\u002F4.input-controls","i-lucide-sliders-horizontal",{"title":96,"path":97,"stem":98,"icon":99},"Presets","\u002Fshaders\u002Fpresets","3.shaders\u002F5.presets","i-lucide-bookmark",{"title":101,"path":102,"stem":103,"icon":104},"Console and fixes","\u002Fshaders\u002Fconsole","3.shaders\u002F6.console","i-lucide-terminal",{"title":106,"path":107,"stem":108,"icon":109},"Shader templates","\u002Fshaders\u002Ftemplates","3.shaders\u002F7.templates","i-lucide-layout-template",{"title":111,"path":112,"stem":113,"icon":114},"Vertex shaders","\u002Fshaders\u002Fvertex-shaders","3.shaders\u002F8.vertex-shaders","i-lucide-shapes",{"title":116,"path":117,"stem":118,"icon":119},"Font images","\u002Fshaders\u002Ffont-images","3.shaders\u002F9.font-images","i-lucide-type",{"title":121,"path":122,"stem":123,"children":124,"page":34},"Pipelines","\u002Fpipelines","4.pipelines",[125,129,134,139,144,149],{"title":126,"path":127,"stem":128,"icon":28},"Concepts","\u002Fpipelines\u002Fconcepts","4.pipelines\u002F1.concepts",{"title":130,"path":131,"stem":132,"icon":133},"Editing a graph","\u002Fpipelines\u002Fediting-graphs","4.pipelines\u002F2.editing-graphs","i-lucide-mouse-pointer-click",{"title":135,"path":136,"stem":137,"icon":138},"Node catalog","\u002Fpipelines\u002Fnode-catalog","4.pipelines\u002F3.node-catalog","i-lucide-boxes",{"title":140,"path":141,"stem":142,"icon":143},"Toolbox and snippets","\u002Fpipelines\u002Fsnippets-and-toolbox","4.pipelines\u002F4.snippets-and-toolbox","i-lucide-toolbox",{"title":145,"path":146,"stem":147,"icon":148},"Composing","\u002Fpipelines\u002Fcomposing","4.pipelines\u002F5.composing","i-lucide-combine",{"title":150,"path":151,"stem":152,"icon":153},"Macros","\u002Fpipelines\u002Fmacros","4.pipelines\u002F6.macros","i-lucide-package-plus",{"title":155,"path":156,"stem":157,"children":158,"page":34},"Media and inputs","\u002Fmedia","5.media",[159,164,168,173,178],{"title":160,"path":161,"stem":162,"icon":163},"Resources","\u002Fmedia\u002Fresources","5.media\u002F1.resources","i-lucide-clapperboard",{"title":165,"path":166,"stem":167,"icon":163},"Export a video","\u002Fmedia\u002Fvideo-export","5.media\u002F2.video-export",{"title":169,"path":170,"stem":171,"icon":172},"Videos and sounds","\u002Fmedia\u002Fvideos-and-sounds","5.media\u002F3.videos-and-sounds","i-lucide-audio-lines",{"title":174,"path":175,"stem":176,"icon":177},"MIDI","\u002Fmedia\u002Fmidi","5.media\u002F4.midi","i-lucide-sliders-vertical",{"title":179,"path":180,"stem":181,"icon":182},"OSC","\u002Fmedia\u002Fosc","5.media\u002F5.osc","i-lucide-radio-tower",{"title":184,"path":185,"stem":186,"children":187,"page":34},"Workspace","\u002Fworkspace","6.workspace",[188,193,198,203,208,213],{"title":189,"path":190,"stem":191,"icon":192},"Tabs and layout","\u002Fworkspace\u002Ftabs-and-layout","6.workspace\u002F1.tabs-and-layout","i-lucide-columns-2",{"title":194,"path":195,"stem":196,"icon":197},"History and clipboard","\u002Fworkspace\u002Fhistory-and-clipboard","6.workspace\u002F2.history-and-clipboard","i-lucide-history",{"title":199,"path":200,"stem":201,"icon":202},"Saving and drafts","\u002Fworkspace\u002Fsaving","6.workspace\u002F3.saving","i-lucide-save",{"title":204,"path":205,"stem":206,"icon":207},"Shortcuts","\u002Fworkspace\u002Fshortcuts","6.workspace\u002F4.shortcuts","i-lucide-keyboard",{"title":209,"path":210,"stem":211,"icon":212},"Preferences","\u002Fworkspace\u002Fpreferences","6.workspace\u002F5.preferences","i-lucide-settings",{"title":56,"path":214,"stem":215,"icon":216},"\u002Fworkspace\u002Fsharing","6.workspace\u002F6.sharing","i-lucide-share-2",{"title":218,"path":219,"stem":220,"children":221,"page":34},"Reference","\u002Freference","7.reference",[222,226,231,236,241],{"title":223,"path":224,"stem":225,"icon":84},"ISF header","\u002Freference\u002Fisf-header-reference","7.reference\u002F1.isf-header-reference",{"title":227,"path":228,"stem":229,"icon":230},"File formats","\u002Freference\u002Ffile-formats","7.reference\u002F2.file-formats","i-lucide-file-archive",{"title":232,"path":233,"stem":234,"icon":235},"Troubleshooting","\u002Freference\u002Ftroubleshooting","7.reference\u002F3.troubleshooting","i-lucide-life-buoy",{"title":237,"path":238,"stem":239,"icon":240},"ISF specifications","\u002Freference\u002Fisf-specifications","7.reference\u002F4.isf-specifications","i-lucide-book-marked",{"title":242,"path":243,"stem":244,"icon":245},"Pipeline text","\u002Freference\u002Fpipeline-text","7.reference\u002F5.pipeline-text","i-lucide-bot-message-square",{"title":247,"path":248,"stem":249,"children":250,"page":34},"For developers","\u002Fruntime","8.runtime",[251,256],{"title":252,"path":253,"stem":254,"icon":255},"Playing pipelines and shaders","\u002Fruntime\u002Fplaying-pipelines","8.runtime\u002F1.playing-pipelines","i-lucide-play",{"title":257,"path":258,"stem":259,"icon":260},"Listening to sound","\u002Fruntime\u002Flistening-to-sound","8.runtime\u002F2.listening-to-sound","i-lucide-audio-waveform",{"title":262,"path":263,"stem":264,"children":265,"page":34},"Licensing","\u002Flicensing","9.licensing",[266],{"title":267,"path":268,"stem":269,"icon":270},"Pricing","\u002Flicensing\u002Fpricing","9.licensing\u002F1.pricing","i-lucide-badge-euro",{"id":272,"title":257,"body":273,"description":1034,"extension":1035,"links":1036,"meta":1037,"navigation":1038,"path":258,"seo":1039,"stem":259,"__hash__":1040},"docs\u002F8.runtime\u002F2.listening-to-sound.md",{"type":274,"value":275,"toc":1028},"minimark",[276,297,303,311,330,334,353,357,362,669,678,728,741,745,904,918,922,972,987,995,1002,1006,1024],[277,278,279,280,284,285,288,289,292,293,296],"p",{},"A shader with an ",[281,282,283],"code",{},"audio"," (waveform) or ",[281,286,287],{},"audioFFT"," (spectrum) input reads the sound as an image: one row of values per channel. ",[281,290,291],{},"IsfRenderer"," draws it, and ",[281,294,295],{},"listen()"," is what gives the input a sound to hear.",[298,299],"isf-pipeline-player",{"ratio":300,"src":301,"title":302},"16 \u002F 10","\u002Fexamples\u002Faudio-bars.fs","Audio Bars · listens to a sound",[277,304,305,306,310],{},"Click ",[307,308,309],"strong",{},"Play with sound",": a page may not start audio before a click. It starts muted, the speaker in the bar unmutes it, and the inputs panel lets each audio input choose what it hears: the built-in sounds (Dark Beat, Dark Pad, Dark Sweep, Beat, Sweep, Pad…), or your microphone.",[277,312,313,314,317,318,321,322,325,326,329],{},"A bigger one (pipeline), with five audio inputs: a core that morphs through nine solids, from an extruded flower to a pyramid and a spinning top, lit and casting shadows, ",[307,315,316],{},"signed distance field (SDF) text",", with a camera that orbits it. Its audio inputs hear a ",[307,319,320],{},"Dark Beat",", a ",[307,323,324],{},"Dark Pad"," and a ",[307,327,328],{},"Dark Sweep"," by default; change them in the inputs panel.",[298,331],{"ratio":300,"src":332,"title":333},"\u002Fexamples\u002Faudio-cosmos-text.istpipe","Audio Cosmos With Text · five audio inputs",[277,335,336,337,340,341,344,345,348,349,352],{},"The same scene with a ",[307,338,339],{},"drone behind it",". A fourth audio input, ",[281,342,343],{},"drone",", hears a slow sound (",[307,346,347],{},"Drone Wide",", by default) and lifts a faint haze behind the solid: the lows swell it, the mids make it drift and bring the accent colour in. Choose a drone that has something in the mids and the highs (Wide, Industrial, Glass, Air): one that is all low, like Drone Dark, only holds the haze still. The beat still moves the solid, the drone is the floor under it. The ",[281,350,351],{},"droneAmount"," slider sets how much of it you see.",[298,354],{"ratio":300,"src":355,"title":356},"\u002Fexamples\u002Faudio-cosmos-drone.istpipe","Audio Cosmos Drone · a haze that follows a drone",[358,359,361],"h2",{"id":360},"giving-an-input-a-sound","Giving an input a sound",[363,364,369],"pre",{"className":365,"code":366,"language":367,"meta":368,"style":368},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { IsfRenderer, microphone } from '@isf-studio\u002Fisf-renderer';\n\nconst renderer = new IsfRenderer();\nrenderer.bind(canvas);\nawait renderer.load('\u002Fshaders\u002Faudio-bars.fs');\n\nbutton.addEventListener('click', async () => {\n  \u002F\u002F A URL, a Blob, an ArrayBuffer or a MediaStream.\n  const beat = await renderer.listen('spectrum', '\u002Fsounds\u002Fbeat.ogg');\n  await renderer.listen('wave', '\u002Fsounds\u002Fbeat.ogg', { muted: true });\n\n  beat.setMuted(true); \u002F\u002F it feeds the shader either way\n});\n","ts","",[281,370,371,413,420,444,461,490,495,529,536,581,630,635,659],{"__ignoreMap":368},[372,373,376,380,384,388,391,394,397,400,403,407,410],"span",{"class":374,"line":375},"line",1,[372,377,379],{"class":378},"s7zQu","import",[372,381,383],{"class":382},"sMK4o"," {",[372,385,387],{"class":386},"sTEyZ"," IsfRenderer",[372,389,390],{"class":382},",",[372,392,393],{"class":386}," microphone",[372,395,396],{"class":382}," }",[372,398,399],{"class":378}," from",[372,401,402],{"class":382}," '",[372,404,406],{"class":405},"sfazB","@isf-studio\u002Fisf-renderer",[372,408,409],{"class":382},"'",[372,411,412],{"class":382},";\n",[372,414,416],{"class":374,"line":415},2,[372,417,419],{"emptyLinePlaceholder":418},true,"\n",[372,421,423,427,430,433,436,439,442],{"class":374,"line":422},3,[372,424,426],{"class":425},"spNyl","const",[372,428,429],{"class":386}," renderer ",[372,431,432],{"class":382},"=",[372,434,435],{"class":382}," new",[372,437,387],{"class":438},"s2Zo4",[372,440,441],{"class":386},"()",[372,443,412],{"class":382},[372,445,447,450,453,456,459],{"class":374,"line":446},4,[372,448,449],{"class":386},"renderer",[372,451,452],{"class":382},".",[372,454,455],{"class":438},"bind",[372,457,458],{"class":386},"(canvas)",[372,460,412],{"class":382},[372,462,464,467,470,472,475,478,480,483,485,488],{"class":374,"line":463},5,[372,465,466],{"class":378},"await",[372,468,469],{"class":386}," renderer",[372,471,452],{"class":382},[372,473,474],{"class":438},"load",[372,476,477],{"class":386},"(",[372,479,409],{"class":382},[372,481,482],{"class":405},"\u002Fshaders\u002Faudio-bars.fs",[372,484,409],{"class":382},[372,486,487],{"class":386},")",[372,489,412],{"class":382},[372,491,493],{"class":374,"line":492},6,[372,494,419],{"emptyLinePlaceholder":418},[372,496,498,501,503,506,508,510,513,515,517,520,523,526],{"class":374,"line":497},7,[372,499,500],{"class":386},"button",[372,502,452],{"class":382},[372,504,505],{"class":438},"addEventListener",[372,507,477],{"class":386},[372,509,409],{"class":382},[372,511,512],{"class":405},"click",[372,514,409],{"class":382},[372,516,390],{"class":382},[372,518,519],{"class":425}," async",[372,521,522],{"class":382}," ()",[372,524,525],{"class":425}," =>",[372,527,528],{"class":382}," {\n",[372,530,532],{"class":374,"line":531},8,[372,533,535],{"class":534},"sHwdD","  \u002F\u002F A URL, a Blob, an ArrayBuffer or a MediaStream.\n",[372,537,539,542,545,548,551,553,555,558,561,563,566,568,570,572,575,577,579],{"class":374,"line":538},9,[372,540,541],{"class":425},"  const",[372,543,544],{"class":386}," beat",[372,546,547],{"class":382}," =",[372,549,550],{"class":378}," await",[372,552,469],{"class":386},[372,554,452],{"class":382},[372,556,557],{"class":438},"listen",[372,559,477],{"class":560},"swJcz",[372,562,409],{"class":382},[372,564,565],{"class":405},"spectrum",[372,567,409],{"class":382},[372,569,390],{"class":382},[372,571,402],{"class":382},[372,573,574],{"class":405},"\u002Fsounds\u002Fbeat.ogg",[372,576,409],{"class":382},[372,578,487],{"class":560},[372,580,412],{"class":382},[372,582,584,587,589,591,593,595,597,600,602,604,606,608,610,612,614,617,620,624,626,628],{"class":374,"line":583},10,[372,585,586],{"class":378},"  await",[372,588,469],{"class":386},[372,590,452],{"class":382},[372,592,557],{"class":438},[372,594,477],{"class":560},[372,596,409],{"class":382},[372,598,599],{"class":405},"wave",[372,601,409],{"class":382},[372,603,390],{"class":382},[372,605,402],{"class":382},[372,607,574],{"class":405},[372,609,409],{"class":382},[372,611,390],{"class":382},[372,613,383],{"class":382},[372,615,616],{"class":560}," muted",[372,618,619],{"class":382},":",[372,621,623],{"class":622},"sfNiH"," true",[372,625,396],{"class":382},[372,627,487],{"class":560},[372,629,412],{"class":382},[372,631,633],{"class":374,"line":632},11,[372,634,419],{"emptyLinePlaceholder":418},[372,636,638,641,643,646,648,651,653,656],{"class":374,"line":637},12,[372,639,640],{"class":386},"  beat",[372,642,452],{"class":382},[372,644,645],{"class":438},"setMuted",[372,647,477],{"class":560},[372,649,650],{"class":622},"true",[372,652,487],{"class":560},[372,654,655],{"class":382},";",[372,657,658],{"class":534}," \u002F\u002F it feeds the shader either way\n",[372,660,662,665,667],{"class":374,"line":661},13,[372,663,664],{"class":382},"}",[372,666,487],{"class":386},[372,668,412],{"class":382},[277,670,671,673,674,677],{},[281,672,295],{}," takes the name of the input (",[281,675,676],{},"renderer.inputs"," lists them) and what to hear. It must run from a click, a key press or a touch.",[679,680,681,694],"table",{},[682,683,684],"thead",{},[685,686,687,691],"tr",{},[688,689,690],"th",{},"You give",[688,692,693],{},"The input hears",[695,696,697,713],"tbody",{},[685,698,699,710],{},[700,701,702,703,706,707],"td",{},"A URL, a ",[281,704,705],{},"Blob"," or an ",[281,708,709],{},"ArrayBuffer",[700,711,712],{},"The sound, in a loop, out loud.",[685,714,715,721],{},[700,716,717,718],{},"A ",[281,719,720],{},"MediaStream",[700,722,723,724,727],{},"A live source, such as ",[281,725,726],{},"microphone()",". Never out loud: it would feed back.",[277,729,730,731,733,734,737,738,740],{},"An ",[281,732,287],{}," input asks for as many bins as its ",[281,735,736],{},"MAX"," says; an ",[281,739,283],{}," input, as many samples.",[358,742,744],{"id":743},"what-it-gives-back","What it gives back",[363,746,748],{"className":365,"code":747,"language":367,"meta":368,"style":368},"const listener = await renderer.listen('spectrum', '\u002Fsounds\u002Fbeat.ogg', { loop: false, muted: true });\n\nlistener.pause();\nlistener.play();\nlistener.setLoop(true);\nlistener.setMuted(false);\nlistener.state; \u002F\u002F { playing, loop, muted }\nlistener.stop(); \u002F\u002F lets go of the sound; the input hears nothing again\n",[281,749,750,809,813,827,840,857,874,888],{"__ignoreMap":368},[372,751,752,754,757,759,761,763,765,767,769,771,773,775,777,779,781,783,785,787,790,792,795,797,799,801,803,805,807],{"class":374,"line":375},[372,753,426],{"class":425},[372,755,756],{"class":386}," listener ",[372,758,432],{"class":382},[372,760,550],{"class":378},[372,762,469],{"class":386},[372,764,452],{"class":382},[372,766,557],{"class":438},[372,768,477],{"class":386},[372,770,409],{"class":382},[372,772,565],{"class":405},[372,774,409],{"class":382},[372,776,390],{"class":382},[372,778,402],{"class":382},[372,780,574],{"class":405},[372,782,409],{"class":382},[372,784,390],{"class":382},[372,786,383],{"class":382},[372,788,789],{"class":560}," loop",[372,791,619],{"class":382},[372,793,794],{"class":622}," false",[372,796,390],{"class":382},[372,798,616],{"class":560},[372,800,619],{"class":382},[372,802,623],{"class":622},[372,804,396],{"class":382},[372,806,487],{"class":386},[372,808,412],{"class":382},[372,810,811],{"class":374,"line":415},[372,812,419],{"emptyLinePlaceholder":418},[372,814,815,818,820,823,825],{"class":374,"line":422},[372,816,817],{"class":386},"listener",[372,819,452],{"class":382},[372,821,822],{"class":438},"pause",[372,824,441],{"class":386},[372,826,412],{"class":382},[372,828,829,831,833,836,838],{"class":374,"line":446},[372,830,817],{"class":386},[372,832,452],{"class":382},[372,834,835],{"class":438},"play",[372,837,441],{"class":386},[372,839,412],{"class":382},[372,841,842,844,846,849,851,853,855],{"class":374,"line":463},[372,843,817],{"class":386},[372,845,452],{"class":382},[372,847,848],{"class":438},"setLoop",[372,850,477],{"class":386},[372,852,650],{"class":622},[372,854,487],{"class":386},[372,856,412],{"class":382},[372,858,859,861,863,865,867,870,872],{"class":374,"line":492},[372,860,817],{"class":386},[372,862,452],{"class":382},[372,864,645],{"class":438},[372,866,477],{"class":386},[372,868,869],{"class":622},"false",[372,871,487],{"class":386},[372,873,412],{"class":382},[372,875,876,878,880,883,885],{"class":374,"line":497},[372,877,817],{"class":386},[372,879,452],{"class":382},[372,881,882],{"class":386},"state",[372,884,655],{"class":382},[372,886,887],{"class":534}," \u002F\u002F { playing, loop, muted }\n",[372,889,890,892,894,897,899,901],{"class":374,"line":531},[372,891,817],{"class":386},[372,893,452],{"class":382},[372,895,896],{"class":438},"stop",[372,898,441],{"class":386},[372,900,655],{"class":382},[372,902,903],{"class":534}," \u002F\u002F lets go of the sound; the input hears nothing again\n",[277,905,906,907,910,911,913,914,917],{},"A sound that does not loop stops at its end: ",[281,908,909],{},"state.playing"," is ",[281,912,869],{}," then, and ",[281,915,916],{},"play()"," starts it again.",[358,919,921],{"id":920},"the-microphone","The microphone",[363,923,925],{"className":365,"code":924,"language":367,"meta":368,"style":368},"const stream = await microphone(); \u002F\u002F asks the user, without the clean-up made for voices\nawait renderer.listen('spectrum', stream);\n",[281,926,927,947],{"__ignoreMap":368},[372,928,929,931,934,936,938,940,942,944],{"class":374,"line":375},[372,930,426],{"class":425},[372,932,933],{"class":386}," stream ",[372,935,432],{"class":382},[372,937,550],{"class":378},[372,939,393],{"class":438},[372,941,441],{"class":386},[372,943,655],{"class":382},[372,945,946],{"class":534}," \u002F\u002F asks the user, without the clean-up made for voices\n",[372,948,949,951,953,955,957,959,961,963,965,967,970],{"class":374,"line":415},[372,950,466],{"class":378},[372,952,469],{"class":386},[372,954,452],{"class":382},[372,956,557],{"class":438},[372,958,477],{"class":386},[372,960,409],{"class":382},[372,962,565],{"class":405},[372,964,409],{"class":382},[372,966,390],{"class":382},[372,968,969],{"class":386}," stream)",[372,971,412],{"class":382},[277,973,974,975,978,979,982,983,986],{},"Give each input its own ",[281,976,977],{},"stream.clone()"," when several listen to it: closing one stops the tracks of the others. ",[281,980,981],{},"pause()"," silences a microphone without turning its light off; ",[281,984,985],{},"stop()"," turns it off.",[988,989,990,991,994],"note",{},"Each input plays the sound for itself. When several hear the same one, mute all but one (",[281,992,993],{},"{ muted: true }","), or they are heard together.",[988,996,997,998,1001],{},"Loading another shader, or calling ",[281,999,1000],{},"dispose()",", stops everything the renderer was listening to.",[358,1003,1005],{"id":1004},"with-your-own-audio","With your own audio",[277,1007,1008,1009,1012,1013,1016,1017,1019,1020,1023],{},"Already have a ",[281,1010,1011],{},"\u003Caudio>"," or a Web Audio graph? The frames an input reads are made by ",[281,1014,1015],{},"@isf-studio\u002Fweb-audio-source",", which ",[281,1018,291],{}," builds on; its ",[281,1021,1022],{},"AudioGraphService"," turns any Web Audio source into the same frames.",[1025,1026,1027],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":368,"searchDepth":415,"depth":415,"links":1029},[1030,1031,1032,1033],{"id":360,"depth":415,"text":361},{"id":743,"depth":415,"text":744},{"id":920,"depth":415,"text":921},{"id":1004,"depth":415,"text":1005},"Give the audio and audioFFT inputs of a shader a sound or a microphone in your own page, with IsfRenderer.listen().","md",null,{},{"icon":260,"title":257},{"title":257,"description":1034},"vtSjD4Chrk_oQM-eM-GE3imjqhJgyvckwzUlmzXI3yI",[1042,1044],{"title":252,"path":253,"stem":254,"description":1043,"icon":255,"children":-1},"Play a pipeline, a shader bundle or a .fs\u002F.vs pair on a canvas, in any web page, with IsfRenderer.",{"title":267,"path":268,"stem":269,"description":1045,"icon":270,"children":-1},"What is free, what needs Pro, and what a license costs.",1796047427512]