Category:Wren-sound: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page for 'Wren-sound' module.)
 
m (Now using internal links to related pages)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
'''Wren-sound''' is a module which enables simple audio files to be created using the Wren programming language so that they can be played by external utilities. It currently consists of a single class, Wav, for creating .wav files.
'''Wren-sound''' is a module which enables simple audio files to be created using the Wren programming language so that they can be played by external utilities. It currently consists of a single class, Wav, for creating .wav files.


It is the twenty-first in a series of modules (listed on the language's [[https://rosettacode.org/wiki/Category:Wren main page]]) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily.
It is the twenty-first in a series of modules (listed on the language's [[:Category:Wren|main page]]) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily.


To use it you need to copy the source code (in the [[https://rosettacode.org/wiki/Category_talk:Wren-sound talk page]]) to a text file called ''sound.wren'' and place this in the same directory as the importing script so the command line interpreter can find it.
To use it you need to copy the source code (in the [[:Category_talk:Wren-sound|talk page]]) to a text file called ''sound.wren'' and place this in the same directory as the importing script so the command line interpreter can find it.


Wren-sound depends on the IO module which is part of Wren-cli's standard library. As such it can only be used in a Wren-cli script.
Wren-sound depends on the IO module which is part of Wren-cli's standard library. As such it can only be used in a Wren-cli script.

Latest revision as of 15:07, 9 May 2023

Library
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

Wren-sound is a module which enables simple audio files to be created using the Wren programming language so that they can be played by external utilities. It currently consists of a single class, Wav, for creating .wav files.

It is the twenty-first in a series of modules (listed on the language's main page) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily.

To use it you need to copy the source code (in the talk page) to a text file called sound.wren and place this in the same directory as the importing script so the command line interpreter can find it.

Wren-sound depends on the IO module which is part of Wren-cli's standard library. As such it can only be used in a Wren-cli script.

Pages in category "Wren-sound"

The following 3 pages are in this category, out of 3 total.