Skip to content

Commit

Permalink
added stereo as synonym for aout 0 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dktr0 committed Nov 27, 2024
1 parent 56805dd commit 8a91c41
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 78 deletions.
154 changes: 77 additions & 77 deletions punctual.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Parser.purs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ parseReserved p "bpf" = lift $ signalSignalSignalSignal p $ BPF Combinatorial
parseReserved p "bpfp" = lift $ signalSignalSignalSignal p $ BPF Pairwise
parseReserved p "delay" = lift $ numberSignalSignalSignal p Delay
parseReserved p "audio" = pure $ ValueOutput p Output.Audio
parseReserved p "stereo" = pure $ ValueOutput p (Output.AOut 0 2)
parseReserved p "aout" = pure $ abc p Output.AOut
parseReserved p "blend" = pure $ ValuePolymorphic p (ValueOutput p Output.Blend : signalSignal p Blend : Nil)
parseReserved p "rgba" = pure $ ValueOutput p Output.RGBA -- TODO: rework FragmentShader.purs with support for RGBA as a Signal that accesses previous output
Expand Down
2 changes: 1 addition & 1 deletion src/TokenParser.purs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ functionsWithNoArgumentsDef = [
"pi","mic","audioin","cps","time","beat","etime","ebeat","rnd",
"fx","fy","fxy","px","py","pxy","frt","fr","ft","aspect",
"lo","mid","hi","ilo","imid","ihi","fft","ifft","fb","cam",
"audio","blend","rgba","add","mul","rgb"
"audio","stereo","blend","rgba","add","mul","rgb"
]

functionsWithArgumentsDef :: Array String
Expand Down

0 comments on commit 8a91c41

Please sign in to comment.