RunestoneServer icon indicating copy to clipboard operation
RunestoneServer copied to clipboard

Implementing a Sound Library in Skulpt

Open bryantal opened this issue 6 years ago • 13 comments

We are a team of Berea students working to implement a sound library in Skulpt.

bryantal avatar Oct 30 '19 18:10 bryantal

We have been attempting to understand the overall working of skulpt through the documentation and your blog post. We added a file to simply print "Hello World!" from your example to make sure that we could run that. We were able to perform the npm run dist command, but we encountered errors when running npm run docbi. It stated "missing script: docbi."

jennahughes15 avatar Oct 30 '19 18:10 jennahughes15

That blog post was written years before skulpt moved to using the npm based scripts.

All dockbi did was copy the latest build of skulpt -- now found in the dist folder into the docs folder. For testing and development purposes you could put your html test page directly into the dist folder and just include the skulptxxx.js files directly from there.

bnmnetp avatar Oct 30 '19 18:10 bnmnetp

Great, thank you! Is there a particular sound library that you would like us to implement? Here is a link to the one that we seemed most likely to be helpful: https://docs.python.org/3/library/winsound.html?fbclid=IwAR1iBOSaiHmd7jmsycFy5exOwroQ2hdbo2zAc_S7TmNJ_HoSbWOx46j1ZFk.

jennahughes15 avatar Nov 04 '19 18:11 jennahughes15

It is important that the solution be cross platform. It looks like winsound only works on windows.

The simpler the better, for this really. If can can just allow students to manipulate a tone play frequency 440 for 3 seconds for example. would be a great start. The idea for the sound library is to let students manipulate a linear media stream. If Dr. Pearce or your library has a copy of Guzdial's media computation book, we would like to be able to replicate some of the examples in that book.

bnmnetp avatar Nov 04 '19 22:11 bnmnetp

We tried to run a Python file using ./skulpt.py run to generate the compiled program to look through like the HACKING.md file suggested. We are having trouble understanding what it actually did and where the compiled program is. It gives us a list of commands and options after we run it, and we are not sure what to do next.

bryantal avatar Nov 13 '19 18:11 bryantal

We made some progress that we would like to test to see how things are going so far. We tried to test it the way we described above with no luck, and we also tried to run it by uploading it through fopp to test it that way. Is there another way that would make testing possible? We are also in the process of submitting a draft pull request so you can see what we have so far.

jennahughes15 avatar Nov 20 '19 19:11 jennahughes15

Stale issue message

github-actions[bot] avatar Dec 22 '20 20:12 github-actions[bot]

I don't know if anyone still cares about this. A student at Virginia Tech got most of Media Computation running in Skulpt for their Pythy implementation. https://vtechworks.lib.vt.edu/bitstream/handle/10919/56564/Athri_A_T_2015.pdf?sequence=1&isAllowed=y

mjguzdial avatar Oct 25 '21 13:10 mjguzdial

Thanks Mark. I would definitely like to see if this code could be merged into the mainline of skulpt so we could incorporate it into Runestone textbooks. @ashimaathri Can you point me to where the code for your thesis lives?

bnmnetp avatar Oct 25 '21 14:10 bnmnetp

@bnmnetp Hello! Here's the repository https://github.com/web-cat/skulpt (although it's been several years since the changes and it's not up to date with the latest skulpt version)

ashimaathri avatar Nov 17 '21 03:11 ashimaathri

Stale issue message

github-actions[bot] avatar Feb 16 '22 02:02 github-actions[bot]

Stale issue message

github-actions[bot] avatar May 26 '22 02:05 github-actions[bot]

Stale issue message

github-actions[bot] avatar Aug 25 '22 02:08 github-actions[bot]