smona / faust-loader Goto Github PK
View Code? Open in Web Editor NEWWebpack loader for Faust .dsp files
Webpack loader for Faust .dsp files
Hi!
I am working with SvelteKit , which uses Vite and RollUp. I'd like to try to use FAUST within a project built on these technologies. Will faust-loader work in this config?
The cache isn't being invalidated when they are deleted.
Hello,
First of all thanks for the great project! It's extremely useful for my audio-visual projects.
I'm trying to create a slimmed down version of it (without standardized-audio-context) and I fail at the first step, building the faust-loader. I'll look into it, but hopefully I'm missing something obvious you can pinpoint.
yarn install
yarn build
yarn run v1.22.17
$ tsc
src/FaustAudioProcessorNode.ts(3,25): error TS4094: Property 'json' of exported class expression may not be private or protected.
src/FaustAudioProcessorNode.ts(3,25): error TS4094: Property 'json_object' of exported class expression may not be private or protected.
src/FaustAudioProcessorNode.ts(9,57): error TS7006: Parameter 'nodeOptions' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(16,14): error TS2339: Property 'parse_ui' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(16,35): error TS7006: Parameter 'ui' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(16,39): error TS7006: Parameter 'obj' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(18,18): error TS2339: Property 'parse_group' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(22,14): error TS2339: Property 'parse_group' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(22,38): error TS7006: Parameter 'group' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(22,45): error TS7006: Parameter 'obj' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(24,18): error TS2339: Property 'parse_items' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(28,14): error TS2339: Property 'parse_items' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(28,38): error TS7006: Parameter 'items' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(28,45): error TS7006: Parameter 'obj' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(30,18): error TS2339: Property 'parse_item' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(34,14): error TS2339: Property 'parse_item' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(34,37): error TS7006: Parameter 'item' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(34,43): error TS7006: Parameter 'obj' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(40,18): error TS2339: Property 'parse_items' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(87,30): error TS7006: Parameter 'val' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(98,14): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(101,14): error TS2339: Property 'inputs_items' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(102,14): error TS2339: Property 'outputs_items' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(103,14): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(106,14): error TS2339: Property 'fPitchwheelLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(107,14): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(108,34): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(109,16): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(113,14): error TS2339: Property 'parse_ui' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(119,47): error TS2339: Property 'automationRate' does not exist on type 'IAudioParam'.
src/FaustAudioProcessorNode.ts(124,21): error TS7006: Parameter 'event' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(126,18): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(127,16): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(150,18): error TS2339: Property 'baseURL' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(150,54): error TS2339: Property 'baseURL' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(167,21): error TS7006: Parameter 'path' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(167,27): error TS7006: Parameter 'val' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(169,9): error TS2532: Object is possibly 'undefined'.
src/FaustAudioProcessorNode.ts(173,16): error TS7006: Parameter 'path' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(173,22): error TS7006: Parameter 'val' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(175,9): error TS2532: Object is possibly 'undefined'.
src/FaustAudioProcessorNode.ts(184,16): error TS2532: Object is possibly 'undefined'.
src/FaustAudioProcessorNode.ts(189,16): error TS2532: Object is possibly 'undefined'.
src/FaustAudioProcessorNode.ts(199,29): error TS7006: Parameter 'handler' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(200,14): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(207,21): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(231,21): error TS2339: Property 'inputs_items' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(237,33): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(238,20): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(239,22): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(242,25): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(243,36): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(244,36): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(245,40): error TS2339: Property 'descriptor' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(263,18): error TS7006: Parameter 'channel' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(263,27): error TS7006: Parameter 'ctrl' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(263,33): error TS7006: Parameter 'value' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(264,18): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(265,36): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(266,29): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(273,22): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(274,22): error TS2339: Property 'fCtrlLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(277,22): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(278,20): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(290,18): error TS7006: Parameter 'channel' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(290,27): error TS7006: Parameter 'wheel' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(291,34): error TS2339: Property 'fPitchwheelLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(292,25): error TS2339: Property 'fPitchwheelLabel' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(297,20): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(298,18): error TS2339: Property 'output_handler' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(306,19): error TS7006: Parameter 'data' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(322,14): error TS7006: Parameter 'data' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(323,9): error TS2663: Cannot find name 'midiMessage'. Did you mean the instance member 'this.midiMessage'?
src/FaustAudioProcessorNode.ts(345,22): error TS7006: Parameter 'state' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(351,18): error TS2339: Property 'gui' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(363,16): error TS7006: Parameter 'patch' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(364,28): error TS2339: Property 'presets' does not exist on type 'FaustAudioProcessorNode'.
src/FaustAudioProcessorNode.ts(367,20): error TS7006: Parameter 'v' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(367,23): error TS7006: Parameter 'mn0' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(367,28): error TS7006: Parameter 'mx0' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(367,33): error TS7006: Parameter 'mn1' implicitly has an 'any' type.
src/FaustAudioProcessorNode.ts(367,38): error TS7006: Parameter 'mx1' implicitly has an 'any' type.
src/faustLoader.ts(64,50): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
src/loadProcessor.ts(110,31): error TS4094: Property 'json' of exported class expression may not be private or protected.
src/loadProcessor.ts(110,31): error TS4094: Property 'json_object' of exported class expression may not be private or protected.
src/loadProcessor.ts(124,60): error TS2339: Property 'buffer' does not exist on type 'ExportValue'.
Property 'buffer' does not exist on type 'Function'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Hello! First and foremost, a huge thanks for working on faust-loader
. I'm using it for a project and it's great!
I'm wondering what's blocking support for OfflineAudioContext
. I'm implementing "bouncing" functionality in which I try to render a stream, as quickly as possible, into a buffer, but currently I have to do so bypassing faust effects on that stream because I use OfflineAudioContext
to achieve it. If it's something I can help with I'd be happy to lend a hand.
Having to install libfaust separately isn't ideal. It would be better to bundle a portable version of libfaust either in the package contents, or during a postinstall
hook.
I had a go at doing this, but the current implementation of running the faust compiler in wasm (libfaust-wasm + wasm-wrapper) doesn't work in nodejs because node doesn't support preloaded memory. C++ really isn't my strong suit, so the current means of calling the compiler is pretty hacky and could be improved on.
Related Faust issue: grame-cncm/faust#598
There should be an easy way to add a module definition for *.dsp
files so that accurate types are provided for the returned function and resulting node.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.