Re: [Faudiostream-users] Faust intermediate code?

2022-11-14 Thread Stéphane Letz


> Le 15 nov. 2022 à 00:28, Boenn, Georg  a écrit :
> 
> Thanks very much Stéphane,
> 
> If this code is generated by the client and then sent to the server,

Yes indeed.

> then the original dsp should be still available? Does the original code, 
> maybe also the expanded dsp version, remain in the browser cache? 

Yes. Reloading the https://faustide.grame.fr/ URL restores the set of 
previously loaded DSP files (.dsp files), and possibly users libraries (.lib 
files)

Stéphane 



___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users


Re: [Faudiostream-users] Faust intermediate code?

2022-11-14 Thread Boenn, Georg
Thanks very much Stéphane,

If this code is generated by the client and then sent to the server, then the 
original dsp should be still available? Does the original code, maybe also the 
expanded dsp version, remain in the browser cache?

Best

Georg





From: Stéphane Letz 
Sent: Monday, November 14, 2022 12:38 PM
To: Boenn, Georg 
Cc: faudiostream-users@lists.sourceforge.net 

Subject: Re: [Faudiostream-users] Faust intermediate code?

Caution: This email was sent from someone outside of the University of 
Lethbridge. Do not click on links or open attachments unless you know they are 
safe. Suspicious emails should be forwarded to phish...@uleth.ca.


Hi Georg,

This code is a self-contained expanded version that embeds all needed 
libraries, currently sent by the Faust Web IDE client side to the remote 
compilation service. The need is when we want to allow developers to use their 
own client side Faust libraries.

It is not really possible to convert it back to the original form..

The real solution on our side is to send the DSP + all needed libraries as a 
ZIP archive to the remote compilation service. Not yet done...

Stéphane

> Le 14 nov. 2022 à 20:11, Boenn, Georg  a écrit :
>
> Hi,
>
> The code below compiles but is hard to read.
> I received it from somebody who used the Faust online IDE and switched 
> machines between different stages of the coding process. The user says that 
> it changed from readable code suddenly into this format. In my own work this 
> has never happened, and i am puzzled.
> I guess this type of Faust code is in an intermediate stage before compiling 
> for the various platforms, correct?
> Is there a way to convert the code below into a more readable format?
>
> Many thanks.
>
> Georg Boenn
>
>
> declare filename "A1_1.dsp"; declare name "A1_1"; declare version "2.52.3";
> declare compile_options "-single -scal -I libraries/ -I project/ -lang wasm";
> declare library_path0 "/libraries/stdfaust.lib";
> declare library_path1 "/libraries/signals.lib";
> declare library_path2 "/libraries/maths.lib";
> declare library_path3 "/libraries/platform.lib";
> declare library_path4 "/libraries/oscillators.lib";
> declare library_path5 "/libraries/basics.lib";
> declare library_path6 "/libraries/envelopes.lib";
> declare basics_lib_name "Faust Basic Element Library";
> declare basics_lib_version "0.8";
> declare envelopes_lib_adsre_author "Julius O. Smith III";
> declare envelopes_lib_adsre_licence "STK-4.3";
> declare envelopes_lib_author "GRAME";
> declare envelopes_lib_copyright "GRAME";
> declare envelopes_lib_license "LGPL with exception";
> declare envelopes_lib_name "Faust Envelope Library";
> declare envelopes_lib_version "0.2";
> declare filename "FaustDSP";
> declare maths_lib_author "GRAME";
> declare maths_lib_copyright "GRAME";
> declare maths_lib_license "LGPL with exception";
> declare maths_lib_name "Faust Math Library";
> declare maths_lib_version "2.5";
> declare name "FaustDSP";
> declare oscillators_lib_name "Faust Oscillator Library";
> declare oscillators_lib_version "0.3";
> declare platform_lib_name "Generic Platform Library";
> declare platform_lib_version "0.2";
> declare signals_lib_name "Faust Signal Routing Library";
> declare signals_lib_version "0.3";
> ID_0 = (65536 : int);
> ID_1 = _, ID_0;
> ID_2 = (ID_1 : %);
> ID_3 = (1 : mem);
> ID_4 = _, ID_3;
> ID_5 = (ID_4 : +);
> ID_6 = ID_2 ~ ID_5;
> ID_7 = (ID_6 : float);
> ID_8 = ID_7, 6.2831855f;
> ID_9 = (ID_8 : *);
> ID_10 = (65536 : float);
> ID_11 = ID_9, ID_10;
> ID_12 = ID_11 : /;
> ID_13 = (ID_12 : sin);
> ID_14 = _, 65536;
> ID_15 = (ID_14 : %);
> ID_16 = ID_15 ~ ID_5;
> ID_17 = (ID_16 : float);
> ID_18 = ID_17, 6.2831855f;
> ID_19 = (ID_18 : *);
> ID_20 = ID_19, 65536.0f;
> ID_21 = ID_20 : /;
> ID_22 = (ID_21 : sin);
> ID_23 = hslider("h: Main Controls /Frequency", 256.0f, 2e+01f, 2e+03f, 1.0f);
> ID_24 = hslider("h:Modulator 1 /5 modRatio1", 1.0f, 1.0f, 1e+01f, 0.01f);
> ID_25 = ID_23, ID_24;
> ID_26 = (ID_25 : *);
> ID_27 = fconstant(int fSamplingFreq, );
> ID_28 = 1.0f, ID_27;
> ID_29 = (ID_28 : max);
> ID_30 = 1.92e+05f, ID_29;
> ID_31 = (ID_30 : min);
> ID_32 = ID_26, ID_31;
> ID_33 = (ID_32 : /);
> ID_34 = _, ID_33;
> ID_35 = (ID_34 : +);
> ID_36 = ID_35, 0;
> ID_37 = 0, ID_36;
> ID_38 = ID_37 : select2;
> ID_39 = (ID_38 : \(x36).(x36,(x36 : floor)

Re: [Faudiostream-users] Faust intermediate code?

2022-11-14 Thread Stéphane Letz
Hi Georg,

This code is a self-contained expanded version that embeds all needed 
libraries, currently sent by the Faust Web IDE client side to the remote 
compilation service. The need is when we want to allow developers to use their 
own client side Faust libraries.

It is not really possible to convert it back to the original form..

The real solution on our side is to send the DSP + all needed libraries as a 
ZIP archive to the remote compilation service. Not yet done...

Stéphane 

> Le 14 nov. 2022 à 20:11, Boenn, Georg  a écrit :
> 
> Hi,
> 
> The code below compiles but is hard to read.
> I received it from somebody who used the Faust online IDE and switched 
> machines between different stages of the coding process. The user says that 
> it changed from readable code suddenly into this format. In my own work this 
> has never happened, and i am puzzled.
> I guess this type of Faust code is in an intermediate stage before compiling 
> for the various platforms, correct?
> Is there a way to convert the code below into a more readable format?
> 
> Many thanks.
> 
> Georg Boenn
> 
> 
> declare filename "A1_1.dsp"; declare name "A1_1"; declare version "2.52.3";
> declare compile_options "-single -scal -I libraries/ -I project/ -lang wasm";
> declare library_path0 "/libraries/stdfaust.lib";
> declare library_path1 "/libraries/signals.lib";
> declare library_path2 "/libraries/maths.lib";
> declare library_path3 "/libraries/platform.lib";
> declare library_path4 "/libraries/oscillators.lib";
> declare library_path5 "/libraries/basics.lib";
> declare library_path6 "/libraries/envelopes.lib";
> declare basics_lib_name "Faust Basic Element Library";
> declare basics_lib_version "0.8";
> declare envelopes_lib_adsre_author "Julius O. Smith III";
> declare envelopes_lib_adsre_licence "STK-4.3";
> declare envelopes_lib_author "GRAME";
> declare envelopes_lib_copyright "GRAME";
> declare envelopes_lib_license "LGPL with exception";
> declare envelopes_lib_name "Faust Envelope Library";
> declare envelopes_lib_version "0.2";
> declare filename "FaustDSP";
> declare maths_lib_author "GRAME";
> declare maths_lib_copyright "GRAME";
> declare maths_lib_license "LGPL with exception";
> declare maths_lib_name "Faust Math Library";
> declare maths_lib_version "2.5";
> declare name "FaustDSP";
> declare oscillators_lib_name "Faust Oscillator Library";
> declare oscillators_lib_version "0.3";
> declare platform_lib_name "Generic Platform Library";
> declare platform_lib_version "0.2";
> declare signals_lib_name "Faust Signal Routing Library";
> declare signals_lib_version "0.3";
> ID_0 = (65536 : int);
> ID_1 = _, ID_0;
> ID_2 = (ID_1 : %);
> ID_3 = (1 : mem);
> ID_4 = _, ID_3;
> ID_5 = (ID_4 : +);
> ID_6 = ID_2 ~ ID_5;
> ID_7 = (ID_6 : float);
> ID_8 = ID_7, 6.2831855f;
> ID_9 = (ID_8 : *);
> ID_10 = (65536 : float);
> ID_11 = ID_9, ID_10;
> ID_12 = ID_11 : /;
> ID_13 = (ID_12 : sin);
> ID_14 = _, 65536;
> ID_15 = (ID_14 : %);
> ID_16 = ID_15 ~ ID_5;
> ID_17 = (ID_16 : float);
> ID_18 = ID_17, 6.2831855f;
> ID_19 = (ID_18 : *);
> ID_20 = ID_19, 65536.0f;
> ID_21 = ID_20 : /;
> ID_22 = (ID_21 : sin);
> ID_23 = hslider("h: Main Controls /Frequency", 256.0f, 2e+01f, 2e+03f, 1.0f);
> ID_24 = hslider("h:Modulator 1 /5 modRatio1", 1.0f, 1.0f, 1e+01f, 0.01f);
> ID_25 = ID_23, ID_24;
> ID_26 = (ID_25 : *);
> ID_27 = fconstant(int fSamplingFreq, );
> ID_28 = 1.0f, ID_27;
> ID_29 = (ID_28 : max);
> ID_30 = 1.92e+05f, ID_29;
> ID_31 = (ID_30 : min);
> ID_32 = ID_26, ID_31;
> ID_33 = (ID_32 : /);
> ID_34 = _, ID_33;
> ID_35 = (ID_34 : +);
> ID_36 = ID_35, 0;
> ID_37 = 0, ID_36;
> ID_38 = ID_37 : select2;
> ID_39 = (ID_38 : \(x36).(x36,(x36 : floor) : -));
> ID_40 = ID_39 ~ _;
> ID_41 = _, 65536.0f;
> ID_42 = ID_41 : *;
> ID_43 = ID_40 : ID_42;
> ID_44 = (ID_43 : int);
> ID_45 = ID_22, ID_44;
> ID_46 = 65536, ID_45;
> ID_47 = (ID_46 : rdtable);
> ID_48 = checkbox("h: Main Controls /On/Off");
> ID_49 = ID_48, 0;
> ID_50 = (ID_49 : >);
> ID_51 = _, ID_50;
> ID_52 = (ID_51 : *);
> ID_53 = + ~ ID_52;
> ID_54 = (ID_50 : ID_53);
> ID_55 = hslider("h:Modulator 1 /1 attack", 1.0f, 1.0f, 1e+01f, 0.1f);
> ID_56 = ID_55, ID_31;
> ID_57 = ID_56 : *;
> ID_58 = (ID_57 : int);
> ID_59 = ID_54, ID_58;
> ID_60 = (ID_59 : <);
> ID_61 = _, mem;
> ID_62 = ID_61 : -;
> ID_63 = _, 0;
> ID_64 = (ID_63 : >);
> ID_65 = ID_64, _;
> ID_66 = ID_65 : *;
> ID_67 = ID_62 <: ID_66;
> ID_68 = _ <: ID_67;
> ID_69 = (ID_50 : ID_68);
> ID_70 = ID_60, ID_69;
> ID_71 = (ID_70 : |);
> ID_72 = hslider("h:Modulator 1 /3 sustain", 1.0f, 1.0f, 1e+01f, 0.1f);
> ID_73 = (ID_50 : float);
> ID_74 = ID_72, ID_73;
> ID_75 = (ID_74 : *);
> ID_76 = ID_75, ID_50;
> ID_77 = ID_71, ID_76;
> ID_78 = (ID_77 : select2);
> ID_79 = 0.0f, ID_78;
> ID_80 = ID_50, ID_79;
> ID_81 = ID_80 : select2;
> ID_82 = (ID_81 : \(x37).(\(x38).(((1.0f,(checkbox("h: Main Controls 
> /On/Off"),0 : >),hslider("h:Modulator 1 /4 release", 1.0f, 1.0f, 1e+01f, 
> 0.1f),checkbox("h: Main Controls /On/Off"),0