semvec/pypi-packages huggingface dataset:
jc3000 0.0.7
A small python package for generating music.
Requires Python: >=3.6

# jc3000
A small python package for generating music. Inspired by [this](https://walkerart.org/collections/artworks/wind-chime-after-dream) which was inspired by [this](https://en.wikipedia.org/wiki/John_Cage) (that's why it's called jc3000).

You can generate any notes you want based on any [fundamental](https://en.wikipedia.org/wiki/Fundamental_frequency) _(the frequency of concert A in this case, fundamental as a term is used kind of loosely)_. You can also use either just or equal [temperament](https://pages.mtu.edu/~suits/scales.html). 

## More reading
[This page](https://pages.mtu.edu/~suits/Physicsofmusic.html) has really good information on how music and scales work at the physical level. 

Default sample rate is [44,100 Hz](https://en.wikipedia.org/wiki/44,100_Hz#Origin).  
Default concert A is [440 Hz](https://en.wikipedia.org/wiki/A440_(pitch_standard)).  

## Installation
You can install it via pip. It requires numpy. Probably not compatible with python <= 3.6.  

```
python3 -m pip install jc3000
```

## Examples

* Play the licc
```
from jc3000 import Sequence

s = Sequence(fs=44100, fundamental=440, equal=True)
s.add_note('d', duration=.125)
s.add_note('e', .125)
s.add_note('f', .125)
s.add_note('g', .125)
s.add_note('e', .257)  # .257 for ~swing-iness~
s.add_note('c', .125)
s.add_note('d', .25)

s.write_file('the_licc.wav')
```

* Play the C major scale with concert A set to 432 Hz.
```
from jc3000 import Sequence

s = Sequence(fundamental=432)

notes = ['cdefgabc']

for i, note in enumerate(notes):
    if i < 5:
        s.add_note(note)
    else:
        s.add_note(note, octave=1)
        
s.write_file('cmajor_432hz.wav')
```
comic-html-view-generator 0.2.3
HTML generator to view comic books
Requires Python: >=3.8,<4.0

comic_html_view_generator
=========================

comic_html_view_generator is a command-line tool and library for creating
static HTML files for viewing comic books. Given a directory with images or
.cbz files in it, it'll create HTML files which embed those images in order,
and an overall "browse all the comics here" HTML page which will list all the
comics books which have had a readable HTML file generated from them.

Installation
------------

Install this library via Pip: ::

    pip install comic-html-view-generator

Use with: ::

    python -m comic_html_view_generator --source <SOURCE_PATH> --destination <DESTINATION_PATH>

Assumptions
-----------

This tool makes many assumptions about your directory structure. It assumes
that in the directory tree provided, that all the images comprising a single
"comic book" will be collected into a single folder with all the images in it,
with no sub-folders. It's assumed that each image in an "image folder" is a
single "page" of that comic book. Additionally, it further assumes that the
alpha-numeric order (`00` comes before `01` comes before `0a`) of the names of
the images in each folder represent the "order" of each page in the comic book.

Usage
-----
Usage of the script is as follows: ::

    $ python -m comic_html_view_generator
    usage: comic_html_view_generator.py [-h] [-v] --source SOURCE --destination DESTINATION
                                        [--embed-images] [--maintain-existing-images]

    Create HTML files for browsing directories of images as though those directories
    represent comic books. Will also automatically expand .cbz files.

    optional arguments:
      -h, --help            show this help message and exit
      -v, --verbose         If set, logs additional information to stderr during execution
      --source SOURCE       The source directory of images/cbz files, which will be used as
                            the basis for the all-new directory with images and HTML files
                            for viewing those images.
      --destination DESTINATION
                            The destination directory to be filled with images and HTML
                            files for viewing those images.
      --embed-images        If specified, causes all images to be embedded into the
                            generated HTML files as base64 encoded data URIs. Grows page
                            size, but improves portability.
      --maintain-existing-images
                            If provided, then images (in folders and CBZ files) will only be
                            copied into the 'destination' directory if there isn't already a
                            file with the same name in the destination directory. If an
                            image file would be copied from source to destination, but it
                            exists in destination already, then it is not copied if this
                            argument is provided.