Csound Csound-dev Csound-tekno Search About

[Csnd-dev] question about csound.js

Date2022-11-14 16:58
Fromjoachim heintz
Subject[Csnd-dev] question about csound.js
i am working on updating the floss manual chapter about webaudio csound, 
based on steven's workshop in athlone, and victor's "vanilla" introduction.

what is the best way to get csound.js and link to it?

i see three possibilities:

1. victor includes it in his repository.  where is it from?
2. steven gets it via ```npm install @csound/browser```.  but this 
requires npm, which i would like to avoid.
3. if i get it right, flossmanual.csound.com or ide.csound.com get it at 
first call to csoundObk.js, if it is not installed.  how is it done?  is 
it complicated?  otherwise, this might be the best method.

by the way, i tried the "Web v6.18.0" button on 
https://csound.com/download.html
the link is: 
https://github.com/csound/csound/suites/8872167049/artifacts/405267388
and this gives me a 404 error.  perhaps something wrong here?

thanks for help in advance, best -
	joachim

Date2022-11-14 17:09
FromSteven Yi
SubjectRe: [Csnd-dev] question about csound.js
I think you can use a link to this one on jsdelivr:

https://www.jsdelivr.com/package/npm/@csound/browser?path=dist

e.g.:

https://cdn.jsdelivr.net/npm/@csound/browser@6.18.0/dist/csound.js

On Mon, Nov 14, 2022 at 11:58 AM joachim heintz  wrote:
>
> i am working on updating the floss manual chapter about webaudio csound,
> based on steven's workshop in athlone, and victor's "vanilla" introduction.
>
> what is the best way to get csound.js and link to it?
>
> i see three possibilities:
>
> 1. victor includes it in his repository.  where is it from?
> 2. steven gets it via ```npm install @csound/browser```.  but this
> requires npm, which i would like to avoid.
> 3. if i get it right, flossmanual.csound.com or ide.csound.com get it at
> first call to csoundObk.js, if it is not installed.  how is it done?  is
> it complicated?  otherwise, this might be the best method.
>
> by the way, i tried the "Web v6.18.0" button on
> https://csound.com/download.html
> the link is:
> https://github.com/csound/csound/suites/8872167049/artifacts/405267388
> and this gives me a 404 error.  perhaps something wrong here?
>
> thanks for help in advance, best -
>         joachim

Date2022-11-14 17:35
Fromjoachim heintz
SubjectRe: [Csnd-dev] question about csound.js
ah yes that works.
thanks!


On 14/11/2022 18:09, Steven Yi wrote:
> I think you can use a link to this one on jsdelivr:
> 
> https://www.jsdelivr.com/package/npm/@csound/browser?path=dist
> 
> e.g.:
> 
> https://cdn.jsdelivr.net/npm/@csound/browser@6.18.0/dist/csound.js
> 
> On Mon, Nov 14, 2022 at 11:58 AM joachim heintz  wrote:
>>
>> i am working on updating the floss manual chapter about webaudio csound,
>> based on steven's workshop in athlone, and victor's "vanilla" introduction.
>>
>> what is the best way to get csound.js and link to it?
>>
>> i see three possibilities:
>>
>> 1. victor includes it in his repository.  where is it from?
>> 2. steven gets it via ```npm install @csound/browser```.  but this
>> requires npm, which i would like to avoid.
>> 3. if i get it right, flossmanual.csound.com or ide.csound.com get it at
>> first call to csoundObk.js, if it is not installed.  how is it done?  is
>> it complicated?  otherwise, this might be the best method.
>>
>> by the way, i tried the "Web v6.18.0" button on
>> https://csound.com/download.html
>> the link is:
>> https://github.com/csound/csound/suites/8872167049/artifacts/405267388
>> and this gives me a 404 error.  perhaps something wrong here?
>>
>> thanks for help in advance, best -
>>          joachim

Date2022-11-14 17:39
FromVictor Lazzarini
SubjectRe: [Csnd-dev] [EXTERNAL] Re: [Csnd-dev] question about csound.js
I got mine from 

npm install @csound/browser

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 14 Nov 2022, at 17:35, joachim heintz  wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> ah yes that works.
> thanks!
> 
> 
>> On 14/11/2022 18:09, Steven Yi wrote:
>> I think you can use a link to this one on jsdelivr:
>> 
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.jsdelivr.com%2Fpackage%2Fnpm%2F%40csound%2Fbrowser%3Fpath%3Ddist&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca137b34be87b45836ab608dac666ac1b%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638040441514898933%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2lHHvZAXFvlWFUX5OUwpLDByxRZCDwqKWqOc%2Fa%2FOgTo%3D&reserved=0
>> 
>> e.g.:
>> 
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2F%40csound%2Fbrowser%406.18.0%2Fdist%2Fcsound.js&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca137b34be87b45836ab608dac666ac1b%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638040441514898933%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IKtuwXSZgNpVokDc0BWt8hh3WGGM2j3diQUfu9gYfAI%3D&reserved=0
>> 
>>> On Mon, Nov 14, 2022 at 11:58 AM joachim heintz  wrote:
>>> 
>>> i am working on updating the floss manual chapter about webaudio csound,
>>> based on steven's workshop in athlone, and victor's "vanilla" introduction.
>>> 
>>> what is the best way to get csound.js and link to it?
>>> 
>>> i see three possibilities:
>>> 
>>> 1. victor includes it in his repository.  where is it from?
>>> 2. steven gets it via ```npm install @csound/browser```.  but this
>>> requires npm, which i would like to avoid.
>>> 3. if i get it right, flossmanual.csound.com or ide.csound.com get it at
>>> first call to csoundObk.js, if it is not installed.  how is it done?  is
>>> it complicated?  otherwise, this might be the best method.
>>> 
>>> by the way, i tried the "Web v6.18.0" button on
>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcsound.com%2Fdownload.html&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca137b34be87b45836ab608dac666ac1b%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638040441514898933%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BH%2B1qG5wibVn8C3rlcc4j13EYI3yz2PE4mJrESrfkR8%3D&reserved=0
>>> the link is:
>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fsuites%2F8872167049%2Fartifacts%2F405267388&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca137b34be87b45836ab608dac666ac1b%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638040441514898933%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DjJ0qTNJRatpnGH401n%2Bdn575GvjixWwiJfk%2Bed0wrE%3D&reserved=0
>>> and this gives me a 404 error.  perhaps something wrong here?
>>> 
>>> thanks for help in advance, best -
>>>         joachim