Skip to content

Commit

Permalink
Use audio units to control audio units (#55)
Browse files Browse the repository at this point in the history
Audio units can now be used to set the a-rate parameters of other audio units
  • Loading branch information
Mike Solomon authored May 2, 2022
1 parent d2aca38 commit fe05ec1
Show file tree
Hide file tree
Showing 76 changed files with 1,638 additions and 1,017 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
#- name: Spago test
# run: npx spago -x test.dhall test
- name: Build qc
run: npx spago -x examples.dhall bundle-app --main WAGS.Example.Docs --to examples/docs/index.js --minify
run: npx spago -x examples.dhall bundle-module --main WAGS.Example.Docs --to examples/docs/index.js --minify
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.2] - 2022-05-03

- Allows for Audio Units to control Audio units.

## [1.1.1] - 2022-04-30

- Updates to 0.15.0.
Expand Down
2 changes: 1 addition & 1 deletion examples/atari-speaks/AtariSpeaks.purs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import WAGS.Control (analyser, gain, loopBuf, speaker2)
import WAGS.Core (Node)
import WAGS.Example.Utils (RaiseCancellation)
import WAGS.Interpret (close, context, decodeAudioDataFromUri, effectfulAudioInterpret, getByteFrequencyData, makeFFIAudioSnapshot)
import WAGS.Parameter (opticN, bangOn)
import WAGS.Core (opticN, bangOn)
import WAGS.Properties (loopEnd, loopStart, playbackRate)
import WAGS.WebAPI (AnalyserNodeCb(..), AudioContext, BrowserAudioBuffer)
import Web.HTML (window)
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Allpass.purs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import WAGS.Core (mix)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Analyser.purs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import WAGS.Core (Po2(..))
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (WrapperStates(..), clickCb, mkWrapperEvent)
import WAGS.Interpret (close, context, contextState, bracketCtx, decodeAudioDataFromUri, effectfulAudioInterpret, getByteFrequencyData, makeFFIAudioSnapshot)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.WebAPI (AnalyserNodeCb(..), BrowserAudioBuffer)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Bandpass.purs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import WAGS.Core (mix)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Compression.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (dynamicsCompressor_, loopBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Constant.purs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (gain_, constant)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Parameter (AudioEnvelope(..), bangOn)
import WAGS.Core (AudioEnvelope(..), bangOn)
import WAGS.Properties (offset)
import WAGS.Run (run2)

Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Convolution.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (convolver, loopBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Delay.purs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import WAGS.Core (mix)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Gain.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (gain_, loopBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Highpass.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (highpass_, loopBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Highshelf.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (highshelf_, loopBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/IIRFilter.purs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import WAGS.Control (iirFilter, loopBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/LoopBuf.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (loopBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Lowpass.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (loopBuf, lowpass_)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Lowshelf.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (loopBuf, lowshelf_)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Notch.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (loopBuf, notch_)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Peaking.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (loopBuf, peaking_)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/PeriodicOsc.purs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (gain_, periodicOsc)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/PlayBuf.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (playBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/Sawtooth.purs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (gain_, sawtoothOsc)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/SineOsc.purs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (gain_, sinOsc)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px = Proxy :: Proxy """<section>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/SquareOsc.purs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (gain_, squareOsc)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/StereoPanner.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WAGS.Control (loopBuf, pan_)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/TriangleOsc.purs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (gain_, triangleOsc)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/AudioUnits/WaveShaper.purs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import WAGS.Control (loopBuf, waveShaper)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (decodeAudioDataFromUri, makeFloatArray)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2)

px =
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/Component.purs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import WAGS.Example.Docs.AudioUnits.WaveShaper as WaveShaper
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page(..), SingleSubgraphEvent, SingleSubgraphPusher)
import WAGS.Example.Docs.Util (audioWrapperSpan, ccassp, mkNext, scrollToTop)
import WAGS.Interpret (bracketCtx, decodeAudioDataFromUri)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Run (run2, run2_)


Expand Down
8 changes: 5 additions & 3 deletions examples/docs/Docs.purs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import WAGS.Example.Docs.MultiChannel as Multichannel
import WAGS.Example.Docs.Portals as Portals
import WAGS.Example.Docs.Pursx1 as Pursx1
import WAGS.Example.Docs.Pursx2 as Pursx2
import WAGS.Example.Docs.Params as Params
import WAGS.Example.Docs.Subgraphs as Subgraph
import WAGS.Example.Docs.Types (Page(..), ToplevelEvent(..))
import Web.HTML (window)
Expand Down Expand Up @@ -95,9 +96,9 @@ scene push event' =
, Events
/\ "Events"
/\ true
-- , MultiChannel
-- /\ "Merging and splitting"
-- /\ true
, Params
/\ "Parameters"
/\ true
-- , AudioWorklets
-- /\ "Audio worklets"
-- /\ true
Expand Down Expand Up @@ -145,6 +146,7 @@ scene push event' =
go AudioUnits = D.div_ $ map plant $ bus (Component.components setCancellation setPage)
go AudioWorklets = D.div_ $ map plant $ bus (Pursx1.pursx1 setCancellation setPage)
go Events = D.div_ $ map plant $ bus (Events.events setCancellation setPage)
go Params = D.div_ $ map plant $ bus (Params.params setCancellation setPage)
go State = D.div_ $ map plant $ bus (Effects.effects setCancellation setPage)
go Imperative = D.div_ $ map plant $ bus (Pursx2.pursx2 setCancellation setPage)
go MultiChannel = D.div_ $ map plant $ bus (Multichannel.multiChannel setCancellation setPage)
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/Effects.purs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import WAGS.Example.Docs.Types (CancelCurrentAudio, Page(..), SingleSubgraphEven
import WAGS.Example.Docs.Util (ccassp, mkNext, scrollToTop)
import WAGS.Interpret (close, context)
import WAGS.Math (calcSlope)
import WAGS.Parameter (AudioNumeric(..), _linear, bangOn)
import WAGS.Core (AudioNumeric(..), _linear, bangOn)
import WAGS.Properties as P
import WAGS.Run (run2)

Expand Down
4 changes: 2 additions & 2 deletions examples/docs/Events.purs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ px = Proxy :: Proxy
@ex2@
<h2>Next steps</h2>
<p>In this section, saw how to build rich audio applications using the <code>Event</code> and <code>Behavior</code> types. We also covered the three most common patterns you'll see when working with events: events that need to happen <i>now</i>, events that come from user interaction, and timed events. In the next section, we'll look at how to make events <a @next@ style="cursor:pointer;">stateful</a>.</p>
<p>In this section, saw how to build rich audio applications using the <code>Event</code> and <code>Behavior</code> types. We also covered the three most common patterns you'll see when working with events: events that need to happen <i>now</i>, events that come from user interaction, and timed events. In the next section, we'll look at different ways to specify <a @next@ style="cursor:pointer;">the numeric parameters being sent as events</a>.</p>
</div>"""

events :: forall lock payload. CancelCurrentAudio -> (Page -> Effect Unit) -> SingleSubgraphPusher -> Event SingleSubgraphEvent -> Element lock payload
events cca' dpage ssp ev = makePursx' (Proxy :: _ "@") px
{ next: mnx State
{ next: mnx Params
, primer: nut $ Primer.primer
, inWags: nut $ InWags.inWags
, flavors: nut $ Flavors.flavors
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/Events/Ex0.purs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (gain, gain_, microphone, recorder, sinOsc)
import WAGS.Core (Node)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent(..))
import WAGS.Parameter (AudioEnvelope(..), AudioOnOff(..), _off, _on)
import WAGS.Core (AudioEnvelope(..), AudioOnOff(..), _off, _on)
import WAGS.Properties (onOff)
import WAGS.Properties as P
import WAGS.Run (run2_)
Expand Down Expand Up @@ -103,7 +103,7 @@ import FRP.Event (bus)
import FRP.Event.Class (bang)
import Math (pow)
import WAGS.Control (gain_, gain, sinOsc)
import WAGS.Parameter (AudioEnvelope(..), AudioOnOff(..), _on, _off)
import WAGS.Core (AudioEnvelope(..), AudioOnOff(..), _on, _off)
import WAGS.Properties (onOff)
import WAGS.Properties as P
import WAGS.Run (run2_)
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/Events/Ex0TL.purs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import FRP.Event (bus)
import FRP.Event.Class (bang)
import Data.Number (pow)
import WAGS.Control (gain_, gain, sinOsc)
import WAGS.Parameter (AudioEnvelope(..), AudioOnOff(..), _on, _off)
import WAGS.Core (AudioEnvelope(..), AudioOnOff(..), _on, _off)
import WAGS.Properties (onOff)
import WAGS.Properties as P
import WAGS.Run (run2_)
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/Events/Ex1.purs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent(..
import WAGS.Example.Docs.Util (raceSelf)
import WAGS.Interpret (close, constant0Hack, context, decodeAudioDataFromUri)
import WAGS.Math (calcSlope)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Properties (loopEnd, loopStart, playbackRate)
import WAGS.Run (run2)
import Web.Event.Event (target)
Expand Down Expand Up @@ -75,7 +75,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (loopBuf)
import WAGS.Interpret (bracketCtx, decodeAudioDataFromUri)
import WAGS.Math (calcSlope)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Properties (loopEnd, loopStart, playbackRate)
import WAGS.Run (run2_)
import WAGS.WebAPI (BrowserAudioBuffer)
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/Events/Ex1TL.purs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Type.Proxy (Proxy(..))
import WAGS.Control (loopBuf)
import WAGS.Interpret (bracketCtx, decodeAudioDataFromUri)
import WAGS.Math (calcSlope)
import WAGS.Parameter (bangOn)
import WAGS.Core (bangOn)
import WAGS.Properties (loopEnd, loopStart, playbackRate)
import WAGS.Run (run2_)
import WAGS.WebAPI (BrowserAudioBuffer)
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/Events/Ex2.purs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import WAGS.Core (Node, mix)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent(..))
import WAGS.Interpret (close, context)
import WAGS.Math (calcSlope)
import WAGS.Parameter (AudioEnvelope(..), bangOn)
import WAGS.Core (AudioEnvelope(..), bangOn)
import WAGS.Properties (frequency)
import WAGS.Properties as P
import WAGS.Run (run2e)
Expand Down Expand Up @@ -82,7 +82,7 @@ import WAGS.Control (bandpass_, fan1, gain, gain_, highpass_, triangleOsc)
import WAGS.Core (Node, mix)
import WAGS.Interpret (close, context)
import WAGS.Math (calcSlope)
import WAGS.Parameter (AudioEnvelope(..), bangOn)
import WAGS.Core (AudioEnvelope(..), bangOn)
import WAGS.Properties (frequency)
import WAGS.Properties as P
import WAGS.Run (run2e)
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/Events/Ex2TL.purs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import WAGS.Control (bandpass_, fan1, gain, gain_, highpass_, triangleOsc)
import WAGS.Core (Node, mix)
import WAGS.Interpret (close, context)
import WAGS.Math (calcSlope)
import WAGS.Parameter (AudioEnvelope(..), bangOn)
import WAGS.Core (AudioEnvelope(..), bangOn)
import WAGS.Properties (frequency)
import WAGS.Properties as P
import WAGS.Run (run2e)
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/FixFan/AI0.purs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import WAGS.Control (gain_, playBuf)
import WAGS.Example.Docs.Types (CancelCurrentAudio, Page, SingleSubgraphEvent)
import WAGS.Example.Docs.Util (audioWrapper)
import WAGS.Interpret (bracketCtx, decodeAudioDataFromUri)
import WAGS.Parameter (apOn, dt)
import WAGS.Core (apOn, dt)
import WAGS.Properties (onOff)
import WAGS.Run (run2, run2_)

Expand Down
Loading

0 comments on commit fe05ec1

Please sign in to comment.